github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/gaussdb/v3/instance/DeleteReadonlyNode.go (about)

     1  package instance
     2  
     3  import (
     4  	golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     5  )
     6  
     7  func DeleteReplica(client *golangsdk.ServiceClient, instanceId string, nodeId string) (*string, error) {
     8  	// DELETE https://{Endpoint}/mysql/v3/{project_id}/instances/{instance_id}/nodes/{node_id}
     9  	raw, err := client.Delete(client.ServiceURL("instances", instanceId, "nodes", nodeId), &golangsdk.RequestOpts{
    10  		OkCodes:     []int{200, 202},
    11  		MoreHeaders: map[string]string{"Content-Type": "application/json"},
    12  	})
    13  	return extraJob(err, raw)
    14  }