tencentcloud-sdk-nodejs-gwlb 4.0.1046 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/gwlb/index.js +4 -0
- package/es/services/gwlb/v20240906/gwlb_client.js +60 -0
- package/es/services/gwlb/v20240906/gwlb_models.js +0 -0
- package/es/services/gwlb/v20240906/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +24 -8
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.js +2 -1
- package/tencentcloud/services/gwlb/v20240906/gwlb_models.d.ts +2 -2
- package/tencentcloud/services/gwlb/v20240906/index.js +2 -1
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/gwlb/index.ts +0 -5
- package/src/services/gwlb/v20240906/gwlb_client.ts +0 -266
- package/src/services/gwlb/v20240906/gwlb_models.ts +0 -969
- package/src/services/gwlb/v20240906/index.ts +0 -6
- package/src/services/index.ts +0 -1
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
|
|
|
52
52
|
|
|
53
53
|
## 通过源码包安装
|
|
54
54
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
1. clone 代码到本地:
|
|
56
|
+
```
|
|
57
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
58
|
+
# 或者
|
|
59
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
60
|
+
```
|
|
61
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
62
|
+
```
|
|
63
|
+
npm install && npm run build
|
|
64
|
+
```
|
|
65
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
66
|
+
```
|
|
67
|
+
npm pack
|
|
68
|
+
```
|
|
69
|
+
4. 安装包到你的项目里:
|
|
70
|
+
```
|
|
71
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
72
|
+
```
|
|
59
73
|
|
|
60
74
|
# 示例
|
|
61
75
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("gwlb.tencentcloudapi.com", "2024-09-06", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DeleteTargetGroups(req, cb) {
|
|
7
|
+
return this.request("DeleteTargetGroups", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DeleteGatewayLoadBalancer(req, cb) {
|
|
10
|
+
return this.request("DeleteGatewayLoadBalancer", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async RegisterTargetGroupInstances(req, cb) {
|
|
13
|
+
return this.request("RegisterTargetGroupInstances", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async DescribeTargetGroups(req, cb) {
|
|
16
|
+
return this.request("DescribeTargetGroups", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async ModifyTargetGroupAttribute(req, cb) {
|
|
19
|
+
return this.request("ModifyTargetGroupAttribute", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeTaskStatus(req, cb) {
|
|
22
|
+
return this.request("DescribeTaskStatus", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async CreateGatewayLoadBalancer(req, cb) {
|
|
25
|
+
return this.request("CreateGatewayLoadBalancer", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async DisassociateTargetGroups(req, cb) {
|
|
28
|
+
return this.request("DisassociateTargetGroups", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async ModifyTargetGroupInstancesWeight(req, cb) {
|
|
31
|
+
return this.request("ModifyTargetGroupInstancesWeight", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DescribeTargetGroupInstanceStatus(req, cb) {
|
|
34
|
+
return this.request("DescribeTargetGroupInstanceStatus", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async AssociateTargetGroups(req, cb) {
|
|
37
|
+
return this.request("AssociateTargetGroups", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async DescribeGatewayLoadBalancers(req, cb) {
|
|
40
|
+
return this.request("DescribeGatewayLoadBalancers", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async ModifyGatewayLoadBalancerAttribute(req, cb) {
|
|
43
|
+
return this.request("ModifyGatewayLoadBalancerAttribute", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeTargetGroupList(req, cb) {
|
|
46
|
+
return this.request("DescribeTargetGroupList", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async InquirePriceCreateGatewayLoadBalancer(req, cb) {
|
|
49
|
+
return this.request("InquirePriceCreateGatewayLoadBalancer", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async DeregisterTargetGroupInstances(req, cb) {
|
|
52
|
+
return this.request("DeregisterTargetGroupInstances", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async CreateTargetGroup(req, cb) {
|
|
55
|
+
return this.request("CreateTargetGroup", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeTargetGroupInstances(req, cb) {
|
|
58
|
+
return this.request("DescribeTargetGroupInstances", req, cb);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { gwlb } from "./gwlb";
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-gwlb",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.1",
|
|
4
|
+
"description": "腾讯云 API NODEJS SDK",
|
|
5
|
+
"main": "./tencentcloud/index.js",
|
|
6
|
+
"module": "./es/index.js",
|
|
7
|
+
"types": "./tencentcloud/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "mocha -t 10000",
|
|
8
|
-
"build": "
|
|
9
|
-
"
|
|
10
|
+
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
14
|
+
"clean": "rimraf tencentcloud es"
|
|
10
15
|
},
|
|
11
16
|
"engines": {
|
|
12
17
|
"node": ">=10"
|
|
13
18
|
},
|
|
19
|
+
"files": [
|
|
20
|
+
"tencentcloud",
|
|
21
|
+
"es"
|
|
22
|
+
],
|
|
14
23
|
"keywords": [
|
|
15
24
|
"tencentcloudapi",
|
|
16
25
|
"tencentcloud",
|
|
@@ -22,7 +31,7 @@
|
|
|
22
31
|
"author": "tencentcloudapi",
|
|
23
32
|
"license": "Apache-2.0",
|
|
24
33
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
34
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
|
26
35
|
"tslib": "1.13.0"
|
|
27
36
|
},
|
|
28
37
|
"directories": {
|
|
@@ -35,14 +44,21 @@
|
|
|
35
44
|
},
|
|
36
45
|
"devDependencies": {
|
|
37
46
|
"@types/form-data": "^2.5.0",
|
|
47
|
+
"@types/json-bigint": "^1.0.1",
|
|
38
48
|
"@types/node": "^14.0.26",
|
|
39
49
|
"@types/node-fetch": "^2.5.7",
|
|
50
|
+
"@types/uuid": "^9.0.8",
|
|
40
51
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
52
|
"@typescript-eslint/parser": "^2.34.0",
|
|
53
|
+
"babel-eslint": "^10.0.2",
|
|
42
54
|
"chai": "^4.2.0",
|
|
55
|
+
"concurrently": "^6.5.1",
|
|
43
56
|
"eslint": "^6.8.0",
|
|
44
|
-
"
|
|
57
|
+
"eslint-plugin-react": "^7.17.0",
|
|
58
|
+
"mocha": "^8.4.0",
|
|
59
|
+
"prettier": "^2.3.0",
|
|
60
|
+
"rimraf": "^5.0.10",
|
|
45
61
|
"ts-node": "^8.10.2",
|
|
46
62
|
"typescript": "^3.9.7"
|
|
47
63
|
}
|
|
48
|
-
}
|
|
64
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
@@ -18,7 +19,7 @@ exports.Client = void 0;
|
|
|
18
19
|
* specific language governing permissions and limitations
|
|
19
20
|
* under the License.
|
|
20
21
|
*/
|
|
21
|
-
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
22
23
|
/**
|
|
23
24
|
* gwlb client
|
|
24
25
|
* @class
|
|
@@ -611,8 +611,8 @@ export interface DescribeTargetGroupInstancesRequest {
|
|
|
611
611
|
* 过滤条件,当前仅支持TargetGroupId,BindIP,InstanceId过滤。
|
|
612
612
|
|
|
613
613
|
- TargetGroupId - String - 是否必填:否 - (过滤条件)目标组ID,如“lbtg-5xunivs0”。
|
|
614
|
-
- BindIP - String - 是否必填:否 -
|
|
615
|
-
- InstanceId - String - 是否必填:否 - (过滤条件)目标组绑定实例的名称,如“
|
|
614
|
+
- BindIP - String - 是否必填:否 - (过滤条件)目标组绑定实例的内网IP地址,如“10.1.1.1”
|
|
615
|
+
- InstanceId - String - 是否必填:否 - (过滤条件)目标组绑定实例的名称,如“ins-mxzlf9ke”
|
|
616
616
|
*/
|
|
617
617
|
Filters: Array<Filter>;
|
|
618
618
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20240906 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./gwlb_models"));
|
|
5
6
|
const gwlb_client_1 = require("./gwlb_client");
|
|
6
7
|
exports.v20240906 = {
|
|
7
8
|
Client: gwlb_client_1.Client,
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// prettier.config.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
// 一行最多 100 字符
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
// 使用 4 个空格缩进
|
|
6
|
-
tabWidth: 2,
|
|
7
|
-
// 不使用缩进符,而使用空格
|
|
8
|
-
useTabs: false,
|
|
9
|
-
// 行尾需要有分号
|
|
10
|
-
semi: false,
|
|
11
|
-
// 使用单引号
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
// 对象的 key 仅在必要时用引号
|
|
14
|
-
quoteProps: "as-needed",
|
|
15
|
-
// jsx 不使用单引号,而使用双引号
|
|
16
|
-
jsxSingleQuote: false,
|
|
17
|
-
// 末尾不需要逗号
|
|
18
|
-
trailingComma: "es5",
|
|
19
|
-
// 大括号内的首尾需要空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// jsx 标签的反尖括号需要换行
|
|
22
|
-
jsxBracketSameLine: false,
|
|
23
|
-
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
-
arrowParens: "always",
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
rangeEnd: Infinity,
|
|
28
|
-
// 不需要写文件开头的 @prettier
|
|
29
|
-
requirePragma: false,
|
|
30
|
-
// 不需要自动在文件开头插入 @prettier
|
|
31
|
-
insertPragma: false,
|
|
32
|
-
// 使用默认的折行标准
|
|
33
|
-
proseWrap: "preserve",
|
|
34
|
-
// 根据显示样式决定 html 要不要折行
|
|
35
|
-
htmlWhitespaceSensitivity: "css",
|
|
36
|
-
// 换行符使用 lf
|
|
37
|
-
endOfLine: "lf",
|
|
38
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./services"
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
|
-
import {
|
|
20
|
-
DescribeTargetGroupInstanceStatusRequest,
|
|
21
|
-
DescribeTargetGroupListResponse,
|
|
22
|
-
DisassociateTargetGroupsResponse,
|
|
23
|
-
DescribeTargetGroupListRequest,
|
|
24
|
-
ModifyGatewayLoadBalancerAttributeRequest,
|
|
25
|
-
ModifyTargetGroupInstancesWeightResponse,
|
|
26
|
-
DescribeTargetGroupsRequest,
|
|
27
|
-
DescribeTaskStatusResponse,
|
|
28
|
-
InquirePriceCreateGatewayLoadBalancerResponse,
|
|
29
|
-
CreateTargetGroupResponse,
|
|
30
|
-
TargetGroupBackend,
|
|
31
|
-
TargetGroupHealthCheck,
|
|
32
|
-
ModifyTargetGroupInstancesWeightRequest,
|
|
33
|
-
DeleteTargetGroupsResponse,
|
|
34
|
-
Price,
|
|
35
|
-
ModifyGatewayLoadBalancerAttributeResponse,
|
|
36
|
-
DeleteGatewayLoadBalancerRequest,
|
|
37
|
-
TagInfo,
|
|
38
|
-
AssociateTargetGroupsRequest,
|
|
39
|
-
DeregisterTargetGroupInstancesRequest,
|
|
40
|
-
GatewayLoadBalancer,
|
|
41
|
-
DescribeGatewayLoadBalancersRequest,
|
|
42
|
-
DeregisterTargetGroupInstancesResponse,
|
|
43
|
-
DescribeTargetGroupInstancesResponse,
|
|
44
|
-
CreateTargetGroupRequest,
|
|
45
|
-
CreateGatewayLoadBalancerRequest,
|
|
46
|
-
AssociateTargetGroupsResponse,
|
|
47
|
-
InquirePriceCreateGatewayLoadBalancerRequest,
|
|
48
|
-
DisassociateTargetGroupsRequest,
|
|
49
|
-
Filter,
|
|
50
|
-
TargetGroupInstanceStatus,
|
|
51
|
-
DescribeTargetGroupInstanceStatusResponse,
|
|
52
|
-
DescribeTargetGroupInstancesRequest,
|
|
53
|
-
DescribeTaskStatusRequest,
|
|
54
|
-
RegisterTargetGroupInstancesResponse,
|
|
55
|
-
CreateGatewayLoadBalancerResponse,
|
|
56
|
-
DescribeTargetGroupsResponse,
|
|
57
|
-
RegisterTargetGroupInstancesRequest,
|
|
58
|
-
DeleteTargetGroupsRequest,
|
|
59
|
-
ItemPrice,
|
|
60
|
-
TargetGroupAssociation,
|
|
61
|
-
TargetGroupInstance,
|
|
62
|
-
ModifyTargetGroupAttributeResponse,
|
|
63
|
-
AssociationItem,
|
|
64
|
-
ModifyTargetGroupAttributeRequest,
|
|
65
|
-
TargetGroupInfo,
|
|
66
|
-
DescribeGatewayLoadBalancersResponse,
|
|
67
|
-
DeleteGatewayLoadBalancerResponse,
|
|
68
|
-
} from "./gwlb_models"
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* gwlb client
|
|
72
|
-
* @class
|
|
73
|
-
*/
|
|
74
|
-
export class Client extends TencentCloudCommon.AbstractClient {
|
|
75
|
-
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
76
|
-
super("gwlb.tencentcloudapi.com", "2024-09-06", clientConfig)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 删除目标组
|
|
81
|
-
*/
|
|
82
|
-
async DeleteTargetGroups(
|
|
83
|
-
req: DeleteTargetGroupsRequest,
|
|
84
|
-
cb?: (error: string, rep: DeleteTargetGroupsResponse) => void
|
|
85
|
-
): Promise<DeleteTargetGroupsResponse> {
|
|
86
|
-
return this.request("DeleteTargetGroups", req, cb)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* DeleteGatewayLoadBalancer 接口用以删除指定的一个或多个网关负载均衡实例。成功删除后,会把网关负载均衡实例与后端服务解绑。
|
|
91
|
-
本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
92
|
-
*/
|
|
93
|
-
async DeleteGatewayLoadBalancer(
|
|
94
|
-
req: DeleteGatewayLoadBalancerRequest,
|
|
95
|
-
cb?: (error: string, rep: DeleteGatewayLoadBalancerResponse) => void
|
|
96
|
-
): Promise<DeleteGatewayLoadBalancerResponse> {
|
|
97
|
-
return this.request("DeleteGatewayLoadBalancer", req, cb)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* 注册服务器到目标组。
|
|
102
|
-
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
103
|
-
*/
|
|
104
|
-
async RegisterTargetGroupInstances(
|
|
105
|
-
req: RegisterTargetGroupInstancesRequest,
|
|
106
|
-
cb?: (error: string, rep: RegisterTargetGroupInstancesResponse) => void
|
|
107
|
-
): Promise<RegisterTargetGroupInstancesResponse> {
|
|
108
|
-
return this.request("RegisterTargetGroupInstances", req, cb)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* 查询目标组信息
|
|
113
|
-
*/
|
|
114
|
-
async DescribeTargetGroups(
|
|
115
|
-
req: DescribeTargetGroupsRequest,
|
|
116
|
-
cb?: (error: string, rep: DescribeTargetGroupsResponse) => void
|
|
117
|
-
): Promise<DescribeTargetGroupsResponse> {
|
|
118
|
-
return this.request("DescribeTargetGroups", req, cb)
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* 修改目标组的名称、健康探测等属性。
|
|
123
|
-
*/
|
|
124
|
-
async ModifyTargetGroupAttribute(
|
|
125
|
-
req: ModifyTargetGroupAttributeRequest,
|
|
126
|
-
cb?: (error: string, rep: ModifyTargetGroupAttributeResponse) => void
|
|
127
|
-
): Promise<ModifyTargetGroupAttributeResponse> {
|
|
128
|
-
return this.request("ModifyTargetGroupAttribute", req, cb)
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* 本接口用于查询异步任务的执行状态,对于非查询类的接口(创建/删除负载均衡实例等),在接口调用成功后,都需要使用本接口查询任务最终是否执行成功。
|
|
133
|
-
*/
|
|
134
|
-
async DescribeTaskStatus(
|
|
135
|
-
req: DescribeTaskStatusRequest,
|
|
136
|
-
cb?: (error: string, rep: DescribeTaskStatusResponse) => void
|
|
137
|
-
): Promise<DescribeTaskStatusResponse> {
|
|
138
|
-
return this.request("DescribeTaskStatus", req, cb)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 本接口(CreateGatewayLoadBalancer)用来创建网关负载均衡实例。为了使用网关负载均衡服务,您必须购买一个或多个网关负载均衡实例。成功调用该接口后,会返回网关负载均衡实例的唯一 ID。
|
|
143
|
-
注意:单个账号在每个地域的默认购买配额为:10个。
|
|
144
|
-
本接口为异步接口,接口成功返回后,可使用 DescribeGatewayLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
|
|
145
|
-
*/
|
|
146
|
-
async CreateGatewayLoadBalancer(
|
|
147
|
-
req: CreateGatewayLoadBalancerRequest,
|
|
148
|
-
cb?: (error: string, rep: CreateGatewayLoadBalancerResponse) => void
|
|
149
|
-
): Promise<CreateGatewayLoadBalancerResponse> {
|
|
150
|
-
return this.request("CreateGatewayLoadBalancer", req, cb)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* 解除负载均衡和目标组的关联关系。
|
|
155
|
-
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
156
|
-
*/
|
|
157
|
-
async DisassociateTargetGroups(
|
|
158
|
-
req: DisassociateTargetGroupsRequest,
|
|
159
|
-
cb?: (error: string, rep: DisassociateTargetGroupsResponse) => void
|
|
160
|
-
): Promise<DisassociateTargetGroupsResponse> {
|
|
161
|
-
return this.request("DisassociateTargetGroups", req, cb)
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* 修改目标组的服务器权重。
|
|
166
|
-
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
167
|
-
*/
|
|
168
|
-
async ModifyTargetGroupInstancesWeight(
|
|
169
|
-
req: ModifyTargetGroupInstancesWeightRequest,
|
|
170
|
-
cb?: (error: string, rep: ModifyTargetGroupInstancesWeightResponse) => void
|
|
171
|
-
): Promise<ModifyTargetGroupInstancesWeightResponse> {
|
|
172
|
-
return this.request("ModifyTargetGroupInstancesWeight", req, cb)
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* 查询目标组后端服务状态。目前仅支持网关负载均衡类型的目标组支持查询后端服务状态。
|
|
177
|
-
*/
|
|
178
|
-
async DescribeTargetGroupInstanceStatus(
|
|
179
|
-
req: DescribeTargetGroupInstanceStatusRequest,
|
|
180
|
-
cb?: (error: string, rep: DescribeTargetGroupInstanceStatusResponse) => void
|
|
181
|
-
): Promise<DescribeTargetGroupInstanceStatusResponse> {
|
|
182
|
-
return this.request("DescribeTargetGroupInstanceStatus", req, cb)
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* 本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡。
|
|
187
|
-
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
188
|
-
*/
|
|
189
|
-
async AssociateTargetGroups(
|
|
190
|
-
req: AssociateTargetGroupsRequest,
|
|
191
|
-
cb?: (error: string, rep: AssociateTargetGroupsResponse) => void
|
|
192
|
-
): Promise<AssociateTargetGroupsResponse> {
|
|
193
|
-
return this.request("AssociateTargetGroups", req, cb)
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* 查询一个地域的网关负载均衡实例列表。
|
|
198
|
-
*/
|
|
199
|
-
async DescribeGatewayLoadBalancers(
|
|
200
|
-
req: DescribeGatewayLoadBalancersRequest,
|
|
201
|
-
cb?: (error: string, rep: DescribeGatewayLoadBalancersResponse) => void
|
|
202
|
-
): Promise<DescribeGatewayLoadBalancersResponse> {
|
|
203
|
-
return this.request("DescribeGatewayLoadBalancers", req, cb)
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* ModifyGatewayLoadBalancerAttribute 接口用于修改负载均衡实例的属性。支持修改负载均衡实例的名称、带宽上限。
|
|
208
|
-
*/
|
|
209
|
-
async ModifyGatewayLoadBalancerAttribute(
|
|
210
|
-
req: ModifyGatewayLoadBalancerAttributeRequest,
|
|
211
|
-
cb?: (error: string, rep: ModifyGatewayLoadBalancerAttributeResponse) => void
|
|
212
|
-
): Promise<ModifyGatewayLoadBalancerAttributeResponse> {
|
|
213
|
-
return this.request("ModifyGatewayLoadBalancerAttribute", req, cb)
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* 获取目标组列表
|
|
218
|
-
*/
|
|
219
|
-
async DescribeTargetGroupList(
|
|
220
|
-
req: DescribeTargetGroupListRequest,
|
|
221
|
-
cb?: (error: string, rep: DescribeTargetGroupListResponse) => void
|
|
222
|
-
): Promise<DescribeTargetGroupListResponse> {
|
|
223
|
-
return this.request("DescribeTargetGroupList", req, cb)
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* InquirePriceCreateGatewayLoadBalancer接口查询创建网关负载均衡的价格。
|
|
228
|
-
*/
|
|
229
|
-
async InquirePriceCreateGatewayLoadBalancer(
|
|
230
|
-
req: InquirePriceCreateGatewayLoadBalancerRequest,
|
|
231
|
-
cb?: (error: string, rep: InquirePriceCreateGatewayLoadBalancerResponse) => void
|
|
232
|
-
): Promise<InquirePriceCreateGatewayLoadBalancerResponse> {
|
|
233
|
-
return this.request("InquirePriceCreateGatewayLoadBalancer", req, cb)
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* 从目标组中解绑服务器。
|
|
238
|
-
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
239
|
-
*/
|
|
240
|
-
async DeregisterTargetGroupInstances(
|
|
241
|
-
req: DeregisterTargetGroupInstancesRequest,
|
|
242
|
-
cb?: (error: string, rep: DeregisterTargetGroupInstancesResponse) => void
|
|
243
|
-
): Promise<DeregisterTargetGroupInstancesResponse> {
|
|
244
|
-
return this.request("DeregisterTargetGroupInstances", req, cb)
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* 创建目标组。该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
|
|
249
|
-
*/
|
|
250
|
-
async CreateTargetGroup(
|
|
251
|
-
req: CreateTargetGroupRequest,
|
|
252
|
-
cb?: (error: string, rep: CreateTargetGroupResponse) => void
|
|
253
|
-
): Promise<CreateTargetGroupResponse> {
|
|
254
|
-
return this.request("CreateTargetGroup", req, cb)
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* 获取目标组绑定的服务器信息。
|
|
259
|
-
*/
|
|
260
|
-
async DescribeTargetGroupInstances(
|
|
261
|
-
req: DescribeTargetGroupInstancesRequest,
|
|
262
|
-
cb?: (error: string, rep: DescribeTargetGroupInstancesResponse) => void
|
|
263
|
-
): Promise<DescribeTargetGroupInstancesResponse> {
|
|
264
|
-
return this.request("DescribeTargetGroupInstances", req, cb)
|
|
265
|
-
}
|
|
266
|
-
}
|