Checks whether Anti-DDoS Origin Enterprise is authorized to query information about Elastic Compute Service (ECS) instances.
Note Anti-DDoS Origin API operations are available for only Anti-DDoS Origin Enterprise
users.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CheckGrant |
The operation that you want to perform. Set the value to CheckGrant. |
ResourceGroupId | String | No | xx |
The ID of the resource group. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E76E316C-697F-42D8-883A-D99864D2E77F |
The ID of the request. |
Status | Integer | 1 |
The authorization status. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=CheckGrant
& <Common request parameters>
Sample success responses
XML
format
<CheckGrantResponse>
<RequestId>E76E316C-697F-42D8-883A-D99864D2E77F</RequestId>
<Status>1</Status>
</CheckGrantResponse>
JSON
format
{
"Status":1,
"RequestId":"E76E316C-697F-42D8-883A-D99864D2E77F"
}
Error codes
For a list of error codes, visit the API Error Center.