CreateEips
CreateEips
1. API Description
This API is used to create one or more elastic IPs.
Prerequisites
Query regions: call DescribeEipRegions to check the available regions supporting the sale of elastic IPs.
Query network billing methods: call DescribeEipInternetChargeTypes to check the available network billing methods.
2. Input Parameters
The following request parameter list only provides API request parameters.
regionId
Yes
String
Region ID.
amount
No
Integer
Quantity.
name
Yes
String
Name of the elastic IP.
primaryIsp
No
String
If the eipV4Type
field is set to ThreeLine
, this field is required and must include:
CHINA_TELECOM
CHINA_UNICOM
CHINA_MOBILE
bandwidth
No
Integer
Bandwidth.
flowPackage
No
BigDecimal
Data transfer package.
resourceGroupId
No
String
Resource group.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
eipIds
Array of String
ID list of elastic IPs.
orderNumber
String
Order No.
4. Code Example
Create one or more elastic IPs.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
INVALID_REGION_NOT_FOUND
Region not found.
400
INVALID_PARAMETER_TYPE
Parameter error.
400
INVALID_PARAMETER_BANDWIDTH_EXCEED
The bandwidth exceeds the limit.
Last updated