Applies for contiguous elastic IP addresses (EIPs).
Usage notes
AllocateEipSegmentAddress is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the DescribeEipSegment operation to query the status of the task.
- If the contiguous EIP group is in the Allocating state, the contiguous EIP group is being allocated. In this case, you can perform only query operations and cannot perform other operations.
- If the contiguous EIP group is in the Allocated state, the contiguous EIP group is allocated.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
ClientToken | 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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request. |
Action | String | Yes | AllocateEipSegmentAddress | The operation that you want to perform. Set the value to AllocateEipSegmentAddress. |
Bandwidth | String | No | 5 | The maximum bandwidth of the EIP. Unit: Mbit/s.
Default value: 5 Mbit/s. |
RegionId | String | Yes | cn-hangzhou | The region ID of the contiguous EIPs. You can call the DescribeRegions operation to query the most recent region list. |
EipMask | String | Yes | 28 | The subnet mask length of the contiguous EIPs. Valid values:
Note The number of contiguous EIPs allocated by the system may be less than the requested number because one, three, or four EIPs may be reserved. |
Netmode | String | No | public | The network type. Set the value to public. |
InternetChargeType | String | No | PayByBandwidth | The metering method of the contiguous EIPs. Valid values:
|
ResourceGroupId | String | No | rg-bp67acfmxazb4ph**** | The ID of the resource group. |
Isp | String | No | BGP | The line type. Valid values:
For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see EIP line types. If you are allowed to use single-ISP bandwidth, you can also use one of the following values:
If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to BGP_FinanceCloud. |
Zone | String | No | cn-hangzhou-a | The zone of the contiguous EIP group. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | F7A6301A-64BA-41EC-8284-8F4838C15D1F | The request ID. |
EipSegmentInstanceId | String | eipsg-2zett8ba055tbsxme**** | The ID of the contiguous EIP group. |
Examples
Sample requests
http(s)://[Endpoint]/?ClientToken=02fb3da4-130e-11e9-8e44-001****
&Action=AllocateEipSegmentAddress
&Bandwidth=5
&RegionId=cn-hangzhou
&EipMask=28
&Netmode=public
&InternetChargeType=PayByBandwidth
&ResourceGroupId=rg-bp67acfmxazb4ph****
&Isp=BGP
&Zone=cn-hangzhou-a
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<AllocateEipSegmentAddressResponse>
<RequestId>F7A6301A-64BA-41EC-8284-8F4838C15D1F </RequestId>
<EipSegmentInstanceId>eipsg-2zett8ba055tbsxme****</EipSegmentInstanceId>
</AllocateEipSegmentAddressResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "F7A6301A-64BA-41EC-8284-8F4838C15D1F\t",
"EipSegmentInstanceId" : "eipsg-2zett8ba055tbsxme****"
}
Error codes
HttpCode | Error code | Error message | Description |
400 | InvalidParameter | Specified value of "Bandwidth" is not valid. | The specified bandwidth value is invalid. |
400 | InsufficientBalance | Your account does not have enough balance. | You do not have sufficient balance within your Alibaba Cloud account. Top up your Alibaba Cloud account and try again. |
400 | QuotaExceeded.Eip | Elastic IP address quota exceeded. | The number of EIPs has reached the upper limit. We recommend that you use NAT gateways if you want to use more EIPs. |
400 | ReserveIpFail | Reserve eip failed. | The operation is not supported in the specified region. |
400 | InvalidRegion.NotSupport | The specified region does not support. | The operation is not supported in the specified region. |
400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | The resource group ID is not found. |
400 | OperationFailed.RiskControl | Risk control check failed. | Security risks are detected in your payment method. Click the link in the email that is sent to you or in the ApsaraDB RDS console to continue with the verification. After you complete the verification, submit the order again. |
400 | ORDER.QUANTITY_INVALID | User quota has exceeded the limit. | The number of EIPs that you have created has reached the upper limit. Go to the Quota Management page to request a quota increase. |
400 | OrderError.EIP | The Account failed to create order. | The system failed to generate the order. |
400 | OperationConflict | Request was denied due to conflict with a previous request. | Your request is conflicting with another request. Try again later. |
400 | Forbidden | User not authorized to operate on the specified resource. | You do not have permissions to perform the operation on the specified resource. Acquire the required permissions and try again. |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error has occurred. |
For a list of error codes, see Service error codes.