Snapservice. Clusters. Protection Groups Demote$ Task
Demote the specified protection group. This operation demotes a protection group into a demoted state.
When the protection group goes from an Active state to demoted, all local protection and remote rpelication operations will be paused.
While in this state, there will be no local protection or remote replication operations performed by the system. The protection group goes into a dormant state once the user activates the dormant PG in the remote site.
This operation was added in vSphere API 9.0.0.0.
Identifier of the cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.
Identifier of the protection group
The parameter must be an identifier for the resource type: com.vmware.snapservice.protection_group
.
Success!
Vapi.Std.Errors.AlreadyInDesiredState If the protection group is already in demoted state.
Vapi.Std.Errors.NotAllowedInCurrentState If the specified protection group is not in a valid state for the transition or if there is another operation in progress.
Vapi.Std.Errors.Unsupported If the protection group is not configured for replication.
"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 no cluster associated with cluster or protection group associated with pg in the system.
"Vapi.Std.Errors.NotFound Object"
If there is unknown internal error.
"Vapi.Std.Errors.Error Object"
If the service is not available.
"Vapi.Std.Errors.ServiceUnavailable Object"
curl -X POST -H 'Authorization: <value>' https://{api_host}/api/snapservice/clusters/{cluster}/protection-groups/{pg}?action=demote&vmw-task=true