github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/cdm/v1/clusters/urls.go (about) 1 package clusters 2 3 import "github.com/chnsz/golangsdk" 4 5 // POST /v1.1/{project_id}/clusters 6 func createURL(c *golangsdk.ServiceClient) string { 7 return c.ServiceURL("clusters") 8 } 9 10 // DELETE /v1.1/{project_id}/clusters/{cluster_id} 11 func deleteURL(c *golangsdk.ServiceClient, clusterId string) string { 12 return c.ServiceURL("clusters", clusterId) 13 } 14 15 // GET /v1.1/{project_id}/clusters 16 func listURL(c *golangsdk.ServiceClient) string { 17 return c.ServiceURL("clusters") 18 } 19 20 // POST /v1.1/{project_id}/clusters/{cluster_id}/action 21 func restartURL(c *golangsdk.ServiceClient, clusterId string) string { 22 return c.ServiceURL("clusters", clusterId, "action") 23 } 24 25 // GET /v1.1/{project_id}/clusters/{cluster_id} 26 func getURL(c *golangsdk.ServiceClient, clusterId string) string { 27 return c.ServiceURL("clusters", clusterId) 28 } 29 30 // POST /v1.1/{project_id}/clusters/{cluster_id}/action 31 func actionURL(c *golangsdk.ServiceClient, clusterId string) string { 32 return c.ServiceURL("clusters", clusterId, "action") 33 }