AllocateAnycastEipAddress

Updated at:
Copy as MD

Creates an Anycast EIP instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eipanycast:AllocateAnycastEipAddress

create

*AnycastEipAddress

acs:eipanycast:{#regionId}:{#accountId}:anycast/*

None None

Request parameters

Parameter

Type

Required

Description

Example

Bandwidth

string

No

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

Valid values: 200 to 1000.

Default value: 1000.

Note

The maximum bandwidth is not a committed service metric. It is provided for reference only and serves as the upper limit.

Valid values:

  • 1000 :

    1000

200

ServiceLocation

string

Yes

The access area of the Anycast EIP instance.

Valid values: international, which indicates regions outside the Chinese mainland.

Valid values:

  • international :

    international

international

InstanceChargeType

string

No

The billing method of the Anycast EIP instance.

Valid values: PostPaid, which indicates pay-as-you-go.

PostPaid

InternetChargeType

string

No

The billable methods for Internet access of the Anycast EIP instance.

Valid values: PayByTraffic, which indicates billing by data transfer.

PayByTraffic

ClientToken

string

No

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

You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can be up to 64 ASCII characters in length.

Note

If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request is unique.

02fb3da4-130e-11e9-8e44-001****

Name

string

No

The name of the Anycast EIP instance.

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

doctest

Description

string

No

The description of the Anycast EIP instance.

The description must be 0 to 256 characters in length, and cannot start with http:// or https://.

docdesc

ResourceGroupId

string

No

The ID of the resource group to which the instance belongs.

rg-acfm3obzjuk****

Tag

array<object>

No

The tags of the resource.

object

No

The tag information.

You can specify up to 20 tags at a time.

Key

string

No

The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.

The tag key can be up to 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

tag-key

Value

string

No

The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string.

The tag value can be up to 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

tag-value

Response elements

Element

Type

Description

Example

object

The response information.

RequestId

string

The request ID.

FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

AnycastId

string

The Anycast EIP instance ID.

aeip-bp1ix34fralt4ykf3****

OrderId

string

The order ID.

1422000****

Examples

Success response

JSON format

{
  "RequestId": "FBDB18D8-E91E-4978-8D6C-6E2E3EE10133",
  "AnycastId": "aeip-bp1ix34fralt4ykf3****",
  "OrderId": "1422000****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 OperationFailed.CdtNotOpened Operation failed because cdt not opened. Please activate CDT service before performing the current operation.
400 QuotaExceeded.AnycastEIP Quota exceeded: The number of Anycast Elastic IP addresses has reached the limit. Please request a quota increase or release unused resources. Quota Excess: The Anycast Elastic IP address has reached the upper limit and cannot be created. Apply for a quota increase or release useless resources.
400 IllegalParameter.Name The specified Name is invalid.
400 COMMODITY.INVALID_COMPONENT The order configuration parameters do not meet the validation criteria. Please reselect the products. Order configuration parameters do not meet the verification conditions, please re-match the goods!

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.