Adds IP addresses to an Anti-DDoS Origin Enterprise instance.

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 AddIp

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

InstanceId String Yes ddosbgp-cn-12345678

The ID of the Anti-DDoS Origin Enterprise instance.

IpList String Yes [{"ip":"1.1.1.1"},{"ip":"2.2.2.2"}]

The list of IP addresses that you want to add. You can specify multiple IP addresses.

ResourceGroupId String No test

The ID of the resource group.

ResourceRegionId String No cn-hangzhou

The ID of the region where the resource group resides.

Response parameters

Parameter Type Example Description 
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=AddIp
&InstanceId=ddosbgp-cn-12345678
&IpList=[{"ip":"1.1.1.1"},{"ip":"2.2.2.2"}]
& <Common request parameters>

Sample success responses

XML format

<AddIpResponse>
      <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
</AddIpResponse>

JSON format

{
	"RequestId":"4C467B38-3910-447D-87BC-AC049166F216"
}

Error codes

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