Creates an Edge Load Balancer (ELB) instance.
Operation description
- You can call this operation up to 100 times per second per account.
- You can call this operation up to 5 times per second per user.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ens:CreateLoadBalancer | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
EnsRegionId | string | Yes | The ID of the Edge Node Service (ENS) node. | cn-chengdu-telecom |
LoadBalancerSpec | string | Yes | The specification of the ELB instance. | elb.s2.medium |
LoadBalancerName | string | No | The name of the ELB instance. The name must be 1 to 80 characters in length. If you leave this parameter empty, the system randomly allocates a name as the value of this parameter. Note
The value cannot start with http:// or https:// .
| gcs-pre-websocket-eslb-telecom |
PayType | string | Yes | The billing method of the instance. Valid value: PostPaid. PostPaid specifies the pay-as-you-go billing method. | PostPaid |
NetworkId | string | Yes | The network ID of the created ELB instance. | n-5sax03dh2eyagujgsn7z9**** |
VSwitchId | string | Yes | The ID of the vSwitch to which the internal-facing ELB instance belongs. | vsw-5s78haoys9oylle6ln71m**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1ECC937A-AE0E-4626-BE51-DED1D6D1C888",
"LoadBalancerId": "lb-5s7crik3yo3bp03gqrbp5****",
"VSwitchId": "vsw-5savh5ngxh8sbj14bu7n****",
"LoadBalancerName": "gcs-pre-websocket-****",
"NetworkId": "n-5sax03dh2eyagujgsn7z9****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
400 | NoPermission | Permission denied. | - |
400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | Failed to pass the sales constraint verification when you create the resource. |
400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-21 | The Error code has changed | View Change Details |