All Products
Search
Document Center

ENS:CreateLoadBalancer

Last Updated:Mar 12, 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

There is currently no authorization information disclosed in the API.

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 changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change