REST API - get

vcenter vcha operations: get

Retrieves the current active and disabled operations of a VCHA cluster. This operation was added in vSphere API 6.7.1.

Request:

HTTP request

GET https://{server}/rest/vcenter/vcha/operations
No request parameters

Response:

HTTP Status Code: 200

Representation:

{
    "value"{
        "active"[
            "obj-103",
            "obj-103"
        ],
        "disabled"[
            "obj-103",
            "obj-103"
        ]
    }
}

Response Type:

Name Type Description
bold = required
value info Info structure containing the current running and disabled operations of a VCHA cluster.
value.disabled string[] Identifiers of the operations that are current disabled. These operation strings are one of CLUSTER_DEPLOY_OP, CLUSTER_FAILOVER_OP, PASSIVE_REDEPLOY_OP, WITNESS_REDEPLOY_OP, MODE_SET_OP, CLUSTER_UNDEPLOY_OP and CLUSTER_GET_OP. This attribute was added in vSphere API 6.7.1.

When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.vapi.operation. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.vapi.operation.

value.active string[] Identifiers of the operations that are currently running. These operation strings are one of CLUSTER_DEPLOY_OP, CLUSTER_FAILOVER_OP, PASSIVE_REDEPLOY_OP, WITNESS_REDEPLOY_OP, MODE_SET_OP, and CLUSTER_UNDEPLOY_OP. This attribute was added in vSphere API 6.7.1.

When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.vapi.operation. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.vapi.operation.

Errors:

HTTP Status Code Type Description
403 unauthorized If the user has insufficient privilege to perform the operation. Operation execution requires the System.Read privilege.
500 error If any other error occurs.