github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/dataarts/v1.1/cluster/Start.go (about) 1 package cluster 2 3 import ( 4 golangsdk "github.com/opentelekomcloud/gophertelekomcloud" 5 ) 6 7 func Start(client *golangsdk.ServiceClient, id string) (*JobId, error) { 8 type Start struct { 9 Start *EmptyObj `json:"start"` 10 } 11 12 // POST /v1.1/{project_id}/clusters/{cluster_id}/action 13 raw, err := client.Post(client.ServiceURL("clusters", id, "action"), Start{}, nil, &golangsdk.RequestOpts{ 14 MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en"}, 15 }) 16 return extraJob(err, raw) 17 } 18 19 type EmptyObj struct { 20 Obj *string `json:"-"` 21 }