Creates an Anycast elastic IP address (Anycast EIP).

Debugging

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

Request parameters

Parameter Position Type Required Example Description
Action Query String Yes AllocateAnycastEipAddress

The operation that you want to perform.

Set the value to AllocateAnycastEipAddress.

ServiceLocation Query String Yes international

The access area from which you use the Anycast EIP to communicate with the Internet.

Set the value to international. This value specifies regions outside mainland China.

Bandwidth Query String No 200

The maximum bandwidth of the Anycast EIP. Unit: Mbit/s.

Default value: 5.

Note The maximum bandwidth indicates the upper limit of the bandwidth and is for reference only. This upper limit is not a guaranteed value.
InstanceChargeType Query String No PostPaid

The billing method of the Anycast EIP.

Set the value to PostPaid. This value specifies the pay-as-you-go billing method.

InternetChargeType Query String No PayByTraffic

The metering method of the Anycast EIP.

Set the value to PayByTraffic. This value specifies the pay-by-data-transfer metering method.

ClientToken Query String No 02fb3da4-130e-11e9-8e44-001****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value. Make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Name Query String No doctest

The name of the Anycast EIP.

The name must be 2 to 128 characters in length, and can contain digits, underscores (_), and hyphens (-). It must start with a letter.

Description Query String No docdesc

The description of the Anycast EIP.

Response parameters

Parameter Type Example Description
AnycastId String aeip-bp1ix34fralt4ykf3****

The ID of the Anycast EIP.

OrderId String 1422000****

The ID of the order.

RequestId String FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<AllocateAnycastEipAddressResponse>
	  <AnycastId>aeip-bp1ix34fralt4ykf3****</AnycastId>
	  <OrderId>1422000****</OrderId>
	  <RequestId>A6B9EB0F-57DB-4843-A372-04678ABF490E</RequestId>
</AllocateAnycastEipAddressResponse>

JSON format

{
		"AnycastId":"aeip-bp1ix34fralt4ykf3****",
		"OrderId":"1422000****",
		"RequestId":"A6B9EB0F-57DB-4843-A372-04678ABF490E"
	}

Error codes

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