status
dpsctl resource-group status Usage Guide
Get the status of a resource group operation.
Usage
dpsctl resource-group statusFlags
Includes global dpsctl options.
There are two mutually exclusive ways to query operation status:
Query by Resource Group:
--resource-group string resource group name (required)
--operation-type string operation type: 'activate' or 'update' (required)Query by Operation ID:
--operation-id string operation ID --help, -h show helpExamples
Query by Resource Group
$ dpsctl resource-group status --resource-group example1 --operation-type activate
{
"Status": {
"Activate": {
"status": {
"diag_msg": "resource group example1 is already active"
}
}
},
"completed": true,
"operation_id": "08041263-b152-4743-b1b4-09c202229139"
}Query by Operation ID
$ dpsctl resource-group status --operation-id 08041263-b152-4743-b1b4-09c202229139
{
"Status": {
"Activate": {
"status": {
"diag_msg": "resource group example1 is already active"
}
}
},
"completed": true,
"operation_id": "08041263-b152-4743-b1b4-09c202229139"
}Notes
- Use
--resource-groupwith--operation-typeto query the latest operation for a given resource group, or use--operation-idto query a specific operation directly - The
completedfield indicates whether the operation has finished