github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/css/v1/snapshots/Disable.go (about)

     1  package snapshots
     2  
     3  import "github.com/opentelekomcloud/gophertelekomcloud"
     4  
     5  // Disable will disable the Snapshot function with the provided ID.
     6  func Disable(client *golangsdk.ServiceClient, clusterId string) (err error) {
     7  	_, err = client.Delete(client.ServiceURL("clusters", clusterId, "index_snapshots"), &golangsdk.RequestOpts{
     8  		OkCodes: []int{200},
     9  		MoreHeaders: map[string]string{
    10  			"content-type": "application/json",
    11  		},
    12  	})
    13  	return
    14  }