Load Balance Dedicated Cluster (LBDC)
Create LBDC
Create an LBDC instance.
You can create LBDC with the following code
Function declaration
1func (c *Client) CreateLbdc(args *CreateLbdcArgs) (*CreateLbdcResult, error)
Parameter Meaning
Refer to the OpenAPI documentation: Create LBDC
Response Value
Operation succeeded:
1{
2 "id": "bgw_group-a3t786p1",
3 "type": "4Layer",
4 "desc":""
5}
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_create_lbdc.go
Upgrade LBDC
Upgrade LBDC
You can upgrade an LBDC instance with the following code
Function declaration
1func (c *Client) UpgradeLbdc(args *UpgradeLbdcArgs) error
Parameter Meaning
Refer to the OpenAPI documentation: Upgrade LBDC
Response Value
Operation succeeded:
Respond with 200
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_upgrade_lbdc.go
Renew LBDC
Renew LBDC
You can renew an LBDC instance with the following code
Function declaration
1func (c *Client) RenewLbdc(args *RenewLbdcArgs) error
Parameter Meaning
Refer to the OpenAPI documentation: Renew LBDC
Response Value
Operation succeeded:
Respond with 200
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_renew_lbdc.go
LBDC list
Retrieve LBDC list
You can retrieve LBDC list with the following code
Function declaration
1func (c *Client) ListLbdc(args *ListLbdcArgs) (*ListLbdcResult, error)
Parameter Meaning
Refer to the OpenAPI documentation: LBDC List
Response Value
Operation succeeded:
1{
2 "clusterList": [{
3 "id": "bgw_group-a3t786p1",
4 "name": "abc",
5 "type": "4Layer",
6 "status": "available",
7 "ccuCount": 1,
8 "createTime": "2021-08-25T06:13:09Z",
9 "expireTime": "2021-09-25T06:13:09Z",
10 "desc": ""
11 }
12 ],
13 "marker": "bgw_group-a3t786p1",
14 "nextMarker": null,
15 "isTruncated": false,
16 "maxKeys": 1000
17}
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_list_lbdc.go
LBDC details
Retrieve LBDC details
You can retrieve LBDC details with the following code
Function declaration
1func (c *Client) GetLbdcDetail(lbdcId string) (*GetLbdcDetailResult, error)
Parameter Meaning
Refer to the OpenAPI documentation: LBDC Details
Response Value
Operation succeeded:
1{
2 "id": "bgw_group-a3t786p1",
3 "name": "abc",
4 "type": "4Layer",
5 "status": "available",
6 "ccuCount": 1,
7 "createTime": "2021-08-25T06:13:09Z",
8 "expireTime": "2021-09-25T06:13:09Z",
9 "desc": "",
10 "totalConnectCount":100,
11 "newConnectCps":100,
12 "networkInBps":100,
13 "networkOutBps":100
14}
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_get_lbdc_detail.go
Update LBDC
Update LBDC
You can update LBDC with the following code
Function declaration
1func (c *Client) UpdateLbdc(args *UpdateLbdcArgs) error
Parameter Meaning
Refer to the OpenAPI documentation: Update LBDC
Response Value Operation succeeded:
Respond with 200
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_update_lbdc.go
List of BLBs associated with LBDC
Retrieve list of BLBs associated with LBDC
You can retrieve list of BLBs associated with LBDC with the following code
Function declaration
1func (c *Client) GetBoundBlBListOfLbdc(lbdcId string) (*GetBoundBlBListOfLbdcResult, error)
Parameter Meaning
Refer to the OpenAPI documentation: List of BLBs Associated with LBDC
Response Value
Operation succeeded:
1{
2 "blbList": [
3 {
4 "blbId": "lb-1c791997",
5 "name": "abc",
6 "status": "available",
7 "blbType": "normal",
8 "publicIp": "10.10.10.10",
9 "eipRouteType": "bgp",
10 "bandwidth": 20,
11 "address": "192.168.0.7",
12 "ipv6": "2400:da00:e003:1820::4",
13 "vpcId": "vpc-0n1hhh8759b0",
14 "subnetId": "sbn-p09p0ihp7498"
15 }
16 ]
17}
Operation failed:
Throw an exception. For the exception list, refer to: Exception List
Code example
For specific code examples, refer to: example_get_bound_blb_list_of_lbdc.go
