Queries the IDs of all Anti-DDoS Pro and Anti-DDoS Premium instances.

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 DescribeInstanceIds

The operation that you want to perform. Set the value to DescribeInstanceIds.

RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance
ResourceGroupId String No default

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

Edition Integer No 9

The mitigation plan of the instance that you want to query. Valid values:

  • 0: Anti-DDoS Premium Insurance Plan
  • 1: Anti-DDoS Premium Unlimited Plan
  • 2: Anti-DDoS Premium MCA Plan
  • 9: Anti-DDoS Pro Profession Plan
InstanceIds.N RepeatList No ddoscoo-cn-mp91j1ao****

The ID of instance N.

Response parameters

Parameter Type Example Description
InstanceIds Array

The ID of an instance.

Edition Integer 9

The mitigation plan of the instance. Valid values:

  • 0: Anti-DDoS Premium Insurance Plan
  • 1: Anti-DDoS Premium Unlimited Plan
  • 2: Anti-DDoS Premium MCA Plan
  • 9: Anti-DDoS Pro Profession Plan
InstanceId String ddoscoo-cn-v0h12g3z****

The ID of the instance.

Remark String test

The description of the instance.

RequestId String 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeInstanceIds
&<Common request parameters>

Sample success responses

XML format

<DescribeInstanceIdsResponse>
      <InstanceIds>
            <InstanceId>ddoscoo-cn-v0h12g3z****</InstanceId>
            <Edition>9</Edition>
            <Remark>test</Remark>
      </InstanceIds>
      <RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
</DescribeInstanceIdsResponse>

JSON format

{
  "InstanceIds": [{
      "InstanceId": "ddoscoo-cn-v0h12g3z****",
      "Edition":9,
      "Remark": "test"
  }],
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}

Error codes

For a list of error codes, visit the API Error Center.