Snapservice. Sites Add$ Task
Add the remote site. As part of this call, local and remote site will be paired. In other words, it will setup services on both local and remote sites to be able to connect to each other to perform replication in either direction.
The logged in interactive user must be a member of Administrators group on local site to execute the operation. The remote user must be a member of Administrators group on remote site too.
If vCenter and Data Protection Virtual appliance certificates returned by Probe API are not trusted yet, respective certificate has to be accepted by the user and supplied as an input to this API.
This operation was added in vSphere API 9.0.0.0.
Spec used to add site.
"Snapservice.Sites.AddSpec Object"
ID of the paired site.
The response will be an identifier for the resource type: com.vmware.snapservice.site
.
Vapi.Std.Errors.InvalidArgument If validation of the spec fails.
Vapi.Std.Errors.NotAllowedInCurrentState when the local site is already paired to a remote site.
Vapi.Std.Errors.Unsupported If the API is not supported.
Vapi.Std.Errors.UnverifiedPeer If vCenter or virtual appliance certificate is not trusted and has not been supplied in the request.
"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 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 POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/snapservice/sites?action=add&vmw-task=true