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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • 1: indicates that Anti-DDoS Origin Enterprise is authorized to query information about ECS instances
  • 0: indicates that Anti-DDoS Origin Enterprise is not authorized to query information about ECS instances

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.