Snapservice. Sites Delete$ Task
Delete the specified remote site. Deleting a site which is not added via SnapService is not supported.
The logged in interactive user must be a member of Administrators group on local site to execute the operation. If the remote site is not failed, the remote user must be a member of Administrators group on remote site too.
This operation was added in vSphere API 9.0.0.0.
Site identifier.
The parameter must be an identifier for the resource type: com.vmware.snapservice.site
.
Additional options to for deleting the site.
If missing or null
, additional options Snapservice.Sites.DeleteOptions for deleting site pair are skipped and default behavior for delete site is applied.
Specification used for breaking site pair.
"Snapservice.Sites.DeleteSpec Object"
Success!
Vapi.Std.Errors.InvalidArgument If validation of the spec fails.
Vapi.Std.Errors.Unsupported If the API is not supported.
Vapi.Std.Errors.NotAllowedInCurrentState If caller tries to delete site with active replications or a site which is not added via SnapService.
"Vapi.Std.Errors.Error Object"
If the caller is not authenticated.
"Vapi.Std.Errors.Unauthenticated Object"
If the caller is not authorized to perform the operation.
"Vapi.Std.Errors.Unauthorized Object"
If the site is not found.
"Vapi.Std.Errors.NotFound Object"
If there is unknown internal error.
"Vapi.Std.Errors.Error Object"
If the system is unable to communicate with a service to complete the request.
"Vapi.Std.Errors.ServiceUnavailable Object"
curl -X DELETE -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/snapservice/sites/{site}?vmw-task=true