github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/css/v1/cluster/urls.go (about) 1 package cluster 2 3 import "github.com/chnsz/golangsdk" 4 5 // createClusterURL /v1.0/{project_id}/clusters 6 func createURL(c *golangsdk.ServiceClient) string { 7 return c.ServiceURL("clusters") 8 } 9 10 // queryingClusterDetailURL GET /v1.0/{project_id}/clusters/{cluster_id} 11 func getURL(c *golangsdk.ServiceClient, clusterId string) string { 12 return c.ServiceURL("clusters", clusterId) 13 } 14 15 // deleteClusterURL DELETE /v1.0/{project_id}/clusters/{cluster_id} 16 func deleteURL(c *golangsdk.ServiceClient, clusterId string) string { 17 return c.ServiceURL("clusters", clusterId) 18 } 19 20 // listClustersDetailsURL /v1.0/{project_id}/clusters 21 func listURL(c *golangsdk.ServiceClient) string { 22 return c.ServiceURL("clusters") 23 } 24 25 // extendInstanceStorageURL /v1.0/{project_id}/clusters/{cluster_id}/role_extend 26 func extendInstanceStorageURL(c *golangsdk.ServiceClient, clusterId string) string { 27 return c.ServiceURL("clusters", clusterId, "role_extend") 28 } 29 30 // listFlavorsURL /v1.0/{project_id}/es-flavors 31 func listFlavorsURL(c *golangsdk.ServiceClient) string { 32 return c.ServiceURL("es-flavors") 33 } 34 35 // restartClusterURL /v1.0/{project_id}/clusters/{cluster_id}/restart 36 func restartURL(c *golangsdk.ServiceClient, clusterId string) string { 37 return c.ServiceURL("clusters", clusterId, "restart") 38 }