Create an Elastic IP address (EIP).

An available EIP is randomly allocated in the specified region after this API is called. EIP supports ICMP, TCP, and UDP protocols, but does not support IGMP and SCTP protocols.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:


RegionId String Yes

The region of the EIP.

You can obtain the region ID by calling the DescribeRegions API.

Bandwidth String No

The peak bandwidth in Mbps of the EIP. The default value is 5.

InternetChargeType String  No
The billing method of the EIP. Valid values:
  • PayByTraffic: EIP is charged by traffic.

InstanceChargeType String No

The payment method of the EIP. Valid values:

  • PostPaid (Default): Pay-As-You-Go

ClientToken String  No

A client token used to guarantee the idempotence of requests. 

This parameter value is generated by the client and must be unique. It cannot exceed 64 ASCII characters.

Response parameters

Name Type Description
RequestId String The ID of the request.
EipAddress String The allocated IP address.
AllocationId String The ID of the EIP.


Request example
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8" ? >
  • JSON format

      "AllocationId": "eip-25877c70x",
      "EipAddress": "",
      "RequestId": "B6B9F518-60F8-4D81-9242-1207B356754D"