All Products
Search
Document Center

ENS:CreateLoadBalancer

Last Updated:Jul 26, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
ens:CreateLoadBalancercreate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
EnsRegionIdstringYes

The ID of the Edge Node Service (ENS) node.

cn-chengdu-telecom
LoadBalancerSpecstringYes

The specification of the ELB instance.

elb.s2.medium
LoadBalancerNamestringNo

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
PayTypestringYes

The billing method of the instance. Valid value: PostPaid. PostPaid specifies the pay-as-you-go billing method.

PostPaid
NetworkIdstringYes

The network ID of the created ELB instance.

n-5sax03dh2eyagujgsn7z9****
VSwitchIdstringYes

The ID of the vSwitch to which the internal-facing ELB instance belongs.

vsw-5s78haoys9oylle6ln71m****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

1ECC937A-AE0E-4626-BE51-DED1D6D1C888
LoadBalancerIdstring

The ID of the ELB instance.

lb-5s7crik3yo3bp03gqrbp5****
VSwitchIdstring

The ID of the vSwitch to which the ELB instance belongs.

vsw-5savh5ngxh8sbj14bu7n****
LoadBalancerNamestring

The name of the ELB instance.

gcs-pre-websocket-****
NetworkIdstring

The ID of the network.

n-5sax03dh2eyagujgsn7z9****

Examples

Sample success responses

JSONformat

{
  "RequestId": "1ECC937A-AE0E-4626-BE51-DED1D6D1C888",
  "LoadBalancerId": "lb-5s7crik3yo3bp03gqrbp5****",
  "VSwitchId": "vsw-5savh5ngxh8sbj14bu7n****",
  "LoadBalancerName": "gcs-pre-websocket-****",
  "NetworkId": "n-5sax03dh2eyagujgsn7z9****"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
400NoPermissionPermission denied.-
400SaleControl.VerificationFailedYou did not pass the salecontrol verification.Please contact the product.Failed to pass the sales constraint verification when you create the resource.
400CallInterfaceCall 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 timeSummary of changesOperation
2023-12-21The Error code has changedView Change Details