@huaweicloud/huaweicloud-sdk-vpc 3.1.22 → 3.1.23
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/package.json +2 -2
- package/v2/VpcClient.d.ts +151 -0
- package/v2/VpcClient.js +344 -0
- package/v2/model/CreateFlowLogReq.d.ts +49 -0
- package/v2/model/CreateFlowLogReq.js +126 -0
- package/v2/model/CreateFlowLogReqBody.d.ts +8 -0
- package/v2/model/CreateFlowLogReqBody.js +24 -0
- package/v2/model/CreateFlowLogRequest.d.ts +6 -0
- package/v2/model/CreateFlowLogRequest.js +13 -0
- package/v2/model/CreateFlowLogResponse.d.ts +9 -0
- package/v2/model/CreateFlowLogResponse.js +41 -0
- package/v2/model/DeleteFlowLogRequest.d.ts +7 -0
- package/v2/model/DeleteFlowLogRequest.js +24 -0
- package/v2/model/DeleteFlowLogResponse.d.ts +4 -0
- package/v2/model/DeleteFlowLogResponse.js +27 -0
- package/v2/model/FlowLogResp.d.ts +85 -0
- package/v2/model/FlowLogResp.js +217 -0
- package/v2/model/ListFlowLogsRequest.d.ts +77 -0
- package/v2/model/ListFlowLogsRequest.js +169 -0
- package/v2/model/ListFlowLogsResponse.d.ts +9 -0
- package/v2/model/ListFlowLogsResponse.js +41 -0
- package/v2/model/ShowFlowLogRequest.d.ts +7 -0
- package/v2/model/ShowFlowLogRequest.js +24 -0
- package/v2/model/ShowFlowLogResponse.d.ts +9 -0
- package/v2/model/ShowFlowLogResponse.js +41 -0
- package/v2/model/UpdateFlowLogReq.d.ts +11 -0
- package/v2/model/UpdateFlowLogReq.js +31 -0
- package/v2/model/UpdateFlowLogReqBody.d.ts +8 -0
- package/v2/model/UpdateFlowLogReqBody.js +24 -0
- package/v2/model/UpdateFlowLogRequest.d.ts +10 -0
- package/v2/model/UpdateFlowLogRequest.js +28 -0
- package/v2/model/UpdateFlowLogResponse.d.ts +9 -0
- package/v2/model/UpdateFlowLogResponse.js +41 -0
- package/v2/public-api.d.ts +15 -0
- package/v2/public-api.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-vpc",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.23",
|
|
4
4
|
"description": "Huaweicloud SDK for vpc",
|
|
5
5
|
"main": "huaweicloud-sdk-vpc.js",
|
|
6
6
|
"typings": "huaweicloud-sdk-vpc.d.ts",
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
"author": "HuaweiCloud_SDK",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@huaweicloud/huaweicloud-sdk-core": "^3.1.
|
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.23"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/v2/VpcClient.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import { BatchCreateSubnetTagsRequest } from './model/BatchCreateSubnetTagsReque
|
|
|
8
8
|
import { BatchCreateVpcTagsRequest } from './model/BatchCreateVpcTagsRequest';
|
|
9
9
|
import { BatchDeleteSubnetTagsRequest } from './model/BatchDeleteSubnetTagsRequest';
|
|
10
10
|
import { BatchDeleteVpcTagsRequest } from './model/BatchDeleteVpcTagsRequest';
|
|
11
|
+
import { CreateFlowLogRequest } from './model/CreateFlowLogRequest';
|
|
12
|
+
import { CreateFlowLogResponse } from './model/CreateFlowLogResponse';
|
|
11
13
|
import { CreatePortRequest } from './model/CreatePortRequest';
|
|
12
14
|
import { CreatePortResponse } from './model/CreatePortResponse';
|
|
13
15
|
import { CreatePrivateipRequest } from './model/CreatePrivateipRequest';
|
|
@@ -28,6 +30,7 @@ import { CreateVpcResourceTagRequest } from './model/CreateVpcResourceTagRequest
|
|
|
28
30
|
import { CreateVpcResponse } from './model/CreateVpcResponse';
|
|
29
31
|
import { CreateVpcRouteRequest } from './model/CreateVpcRouteRequest';
|
|
30
32
|
import { CreateVpcRouteResponse } from './model/CreateVpcRouteResponse';
|
|
33
|
+
import { DeleteFlowLogRequest } from './model/DeleteFlowLogRequest';
|
|
31
34
|
import { DeletePortRequest } from './model/DeletePortRequest';
|
|
32
35
|
import { DeletePrivateipRequest } from './model/DeletePrivateipRequest';
|
|
33
36
|
import { DeleteRouteTableRequest } from './model/DeleteRouteTableRequest';
|
|
@@ -41,6 +44,8 @@ import { DeleteVpcRouteRequest } from './model/DeleteVpcRouteRequest';
|
|
|
41
44
|
import { DeleteVpcTagRequest } from './model/DeleteVpcTagRequest';
|
|
42
45
|
import { DisassociateRouteTableRequest } from './model/DisassociateRouteTableRequest';
|
|
43
46
|
import { DisassociateRouteTableResponse } from './model/DisassociateRouteTableResponse';
|
|
47
|
+
import { ListFlowLogsRequest } from './model/ListFlowLogsRequest';
|
|
48
|
+
import { ListFlowLogsResponse } from './model/ListFlowLogsResponse';
|
|
44
49
|
import { ListPortsRequest } from './model/ListPortsRequest';
|
|
45
50
|
import { ListPortsResponse } from './model/ListPortsResponse';
|
|
46
51
|
import { ListPrivateipsRequest } from './model/ListPrivateipsRequest';
|
|
@@ -114,6 +119,8 @@ import { NeutronUpdateSecurityGroupRequest } from './model/NeutronUpdateSecurity
|
|
|
114
119
|
import { NeutronUpdateSecurityGroupResponse } from './model/NeutronUpdateSecurityGroupResponse';
|
|
115
120
|
import { RejectVpcPeeringRequest } from './model/RejectVpcPeeringRequest';
|
|
116
121
|
import { RejectVpcPeeringResponse } from './model/RejectVpcPeeringResponse';
|
|
122
|
+
import { ShowFlowLogRequest } from './model/ShowFlowLogRequest';
|
|
123
|
+
import { ShowFlowLogResponse } from './model/ShowFlowLogResponse';
|
|
117
124
|
import { ShowNetworkIpAvailabilitiesRequest } from './model/ShowNetworkIpAvailabilitiesRequest';
|
|
118
125
|
import { ShowNetworkIpAvailabilitiesResponse } from './model/ShowNetworkIpAvailabilitiesResponse';
|
|
119
126
|
import { ShowPortRequest } from './model/ShowPortRequest';
|
|
@@ -140,6 +147,8 @@ import { ShowVpcRouteRequest } from './model/ShowVpcRouteRequest';
|
|
|
140
147
|
import { ShowVpcRouteResponse } from './model/ShowVpcRouteResponse';
|
|
141
148
|
import { ShowVpcTagsRequest } from './model/ShowVpcTagsRequest';
|
|
142
149
|
import { ShowVpcTagsResponse } from './model/ShowVpcTagsResponse';
|
|
150
|
+
import { UpdateFlowLogRequest } from './model/UpdateFlowLogRequest';
|
|
151
|
+
import { UpdateFlowLogResponse } from './model/UpdateFlowLogResponse';
|
|
143
152
|
import { UpdatePortRequest } from './model/UpdatePortRequest';
|
|
144
153
|
import { UpdatePortResponse } from './model/UpdatePortResponse';
|
|
145
154
|
import { UpdateRouteTableRequest } from './model/UpdateRouteTableRequest';
|
|
@@ -204,6 +213,19 @@ export declare class VpcClient {
|
|
|
204
213
|
* @throws {RequiredError}
|
|
205
214
|
*/
|
|
206
215
|
batchDeleteSubnetTags(batchDeleteSubnetTagsRequest?: BatchDeleteSubnetTagsRequest): Promise<void>;
|
|
216
|
+
/**
|
|
217
|
+
* 创建流日志。
|
|
218
|
+
* 流日志功能可以记录虚拟私有云中的流量信息,帮助您检查和优化安全组和网络ACL防火墙控制规则、监控网络流量、进行网络攻击分析等。
|
|
219
|
+
* VPC流日志功能需要与云日志服务LTS结合使用,请先在云日志服务中创建日志组和日志主题,然后再创建VPC流日志。
|
|
220
|
+
*
|
|
221
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
222
|
+
*
|
|
223
|
+
* @summary 创建流日志
|
|
224
|
+
* @param {CreateFlowLogReqBody} flowLog 创建流日志的请求体,参见CreateFlowLogReq对象。
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
*/
|
|
228
|
+
createFlowLog(createFlowLogRequest?: CreateFlowLogRequest): Promise<CreateFlowLogResponse>;
|
|
207
229
|
/**
|
|
208
230
|
* 创建端口。
|
|
209
231
|
*
|
|
@@ -283,6 +305,17 @@ export declare class VpcClient {
|
|
|
283
305
|
* @throws {RequiredError}
|
|
284
306
|
*/
|
|
285
307
|
createVpcPeering(createVpcPeeringRequest?: CreateVpcPeeringRequest): Promise<CreateVpcPeeringResponse>;
|
|
308
|
+
/**
|
|
309
|
+
* 删除流日志
|
|
310
|
+
*
|
|
311
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
312
|
+
*
|
|
313
|
+
* @summary 删除流日志
|
|
314
|
+
* @param {string} flowlogId 流日志资源唯一标识
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
deleteFlowLog(deleteFlowLogRequest?: DeleteFlowLogRequest): Promise<void>;
|
|
286
319
|
/**
|
|
287
320
|
* 删除端口。
|
|
288
321
|
*
|
|
@@ -376,6 +409,29 @@ export declare class VpcClient {
|
|
|
376
409
|
* @throws {RequiredError}
|
|
377
410
|
*/
|
|
378
411
|
disassociateRouteTable(disassociateRouteTableRequest?: DisassociateRouteTableRequest): Promise<DisassociateRouteTableResponse>;
|
|
412
|
+
/**
|
|
413
|
+
* 查询提交请求的租户的所有流日志列表,并根据过滤条件进行过滤
|
|
414
|
+
*
|
|
415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
416
|
+
*
|
|
417
|
+
* @summary 查询流日志列表
|
|
418
|
+
* @param {string} [id] 流日志资源唯一标识
|
|
419
|
+
* @param {string} [name] 功能说明:流日志名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
420
|
+
* @param {string} [tenantId] 项目ID
|
|
421
|
+
* @param {string} [description] 功能说明:流日志描述 取值范围:0-255个字符,不能包含“<”和“>”
|
|
422
|
+
* @param {'port' | 'network' | 'vpc'} [resourceType] 功能说明:流日志所属资源类型 取值范围:支持port、network、vpc 3种类型。
|
|
423
|
+
* @param {string} [resourceId] resource_type对应资源的唯一ID
|
|
424
|
+
* @param {'all' | 'reject' | 'accept'} [trafficType] 功能说明:流日志采集类型 取值范围: 1)all:采集指定资源的全部流量。 2)accept:采集指定资源允许传入、传出的流量。 3)reject:采集指定资源拒绝传入、传出的流量。
|
|
425
|
+
* @param {string} [logGroupId] 日志组ID 请在云日志服务中获取,详情请参见《云日志服务用户指南》。
|
|
426
|
+
* @param {string} [logTopicId] 日志主题ID 请在云日志服务中获取,详情请参见《云日志服务用户指南》。
|
|
427
|
+
* @param {'lts'} [logStoreType] 功能说明:流日志存储类型 取值范围: lts:存储类型为云日志服务(LTS)。
|
|
428
|
+
* @param {'ACTIVE' | 'DOWN' | 'ERROR'} [status] 功能说明:流日志状态 取值范围: ACTIVE:开启 DOWN:关闭 ERROR:异常故障
|
|
429
|
+
* @param {string} [limit] 功能说明:每页返回的个数 取值范围:0 ~ intmax
|
|
430
|
+
* @param {string} [marker] 分页查询起始的资源ID,为空时为查询第一页
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
listFlowLogs(listFlowLogsRequest?: ListFlowLogsRequest): Promise<ListFlowLogsResponse>;
|
|
379
435
|
/**
|
|
380
436
|
* 查询提交请求的租户的所有端口,单次查询最多返回2000条数据。
|
|
381
437
|
*
|
|
@@ -503,6 +559,17 @@ export declare class VpcClient {
|
|
|
503
559
|
* @throws {RequiredError}
|
|
504
560
|
*/
|
|
505
561
|
rejectVpcPeering(rejectVpcPeeringRequest?: RejectVpcPeeringRequest): Promise<RejectVpcPeeringResponse>;
|
|
562
|
+
/**
|
|
563
|
+
* 查询流日志详情
|
|
564
|
+
*
|
|
565
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
566
|
+
*
|
|
567
|
+
* @summary 查询流日志
|
|
568
|
+
* @param {string} flowlogId 流日志资源唯一标识
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
showFlowLog(showFlowLogRequest?: ShowFlowLogRequest): Promise<ShowFlowLogResponse>;
|
|
506
573
|
/**
|
|
507
574
|
* 查询单个端口详情。
|
|
508
575
|
*
|
|
@@ -591,6 +658,18 @@ export declare class VpcClient {
|
|
|
591
658
|
* @throws {RequiredError}
|
|
592
659
|
*/
|
|
593
660
|
showVpcPeering(showVpcPeeringRequest?: ShowVpcPeeringRequest): Promise<ShowVpcPeeringResponse>;
|
|
661
|
+
/**
|
|
662
|
+
* 更新流日志
|
|
663
|
+
*
|
|
664
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
665
|
+
*
|
|
666
|
+
* @summary 更新流日志
|
|
667
|
+
* @param {string} flowlogId 流日志资源唯一标识
|
|
668
|
+
* @param {UpdateFlowLogReqBody} flowLog 更新流日志的请求体,参见UpdateFlowLogReq对象。
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
updateFlowLog(updateFlowLogRequest?: UpdateFlowLogRequest): Promise<UpdateFlowLogResponse>;
|
|
594
673
|
/**
|
|
595
674
|
* 更新端口。
|
|
596
675
|
*
|
|
@@ -1283,6 +1362,22 @@ export declare const ParamCreater: () => {
|
|
|
1283
1362
|
headers: {};
|
|
1284
1363
|
data: {};
|
|
1285
1364
|
};
|
|
1365
|
+
/**
|
|
1366
|
+
* 创建流日志。
|
|
1367
|
+
* 流日志功能可以记录虚拟私有云中的流量信息,帮助您检查和优化安全组和网络ACL防火墙控制规则、监控网络流量、进行网络攻击分析等。
|
|
1368
|
+
* VPC流日志功能需要与云日志服务LTS结合使用,请先在云日志服务中创建日志组和日志主题,然后再创建VPC流日志。
|
|
1369
|
+
*
|
|
1370
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1371
|
+
*/
|
|
1372
|
+
createFlowLog(createFlowLogRequest?: CreateFlowLogRequest): {
|
|
1373
|
+
method: string;
|
|
1374
|
+
url: string;
|
|
1375
|
+
contentType: string;
|
|
1376
|
+
queryParams: {};
|
|
1377
|
+
pathParams: {};
|
|
1378
|
+
headers: {};
|
|
1379
|
+
data: {};
|
|
1380
|
+
};
|
|
1286
1381
|
/**
|
|
1287
1382
|
* 创建端口。
|
|
1288
1383
|
*
|
|
@@ -1382,6 +1477,20 @@ export declare const ParamCreater: () => {
|
|
|
1382
1477
|
headers: {};
|
|
1383
1478
|
data: {};
|
|
1384
1479
|
};
|
|
1480
|
+
/**
|
|
1481
|
+
* 删除流日志
|
|
1482
|
+
*
|
|
1483
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1484
|
+
*/
|
|
1485
|
+
deleteFlowLog(deleteFlowLogRequest?: DeleteFlowLogRequest): {
|
|
1486
|
+
method: string;
|
|
1487
|
+
url: string;
|
|
1488
|
+
contentType: string;
|
|
1489
|
+
queryParams: {};
|
|
1490
|
+
pathParams: {};
|
|
1491
|
+
headers: {};
|
|
1492
|
+
data: {};
|
|
1493
|
+
};
|
|
1385
1494
|
/**
|
|
1386
1495
|
* 删除端口。
|
|
1387
1496
|
*
|
|
@@ -1496,6 +1605,20 @@ export declare const ParamCreater: () => {
|
|
|
1496
1605
|
headers: {};
|
|
1497
1606
|
data: {};
|
|
1498
1607
|
};
|
|
1608
|
+
/**
|
|
1609
|
+
* 查询提交请求的租户的所有流日志列表,并根据过滤条件进行过滤
|
|
1610
|
+
*
|
|
1611
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1612
|
+
*/
|
|
1613
|
+
listFlowLogs(listFlowLogsRequest?: ListFlowLogsRequest): {
|
|
1614
|
+
method: string;
|
|
1615
|
+
url: string;
|
|
1616
|
+
contentType: string;
|
|
1617
|
+
queryParams: {};
|
|
1618
|
+
pathParams: {};
|
|
1619
|
+
headers: {};
|
|
1620
|
+
data: {};
|
|
1621
|
+
};
|
|
1499
1622
|
/**
|
|
1500
1623
|
* 查询提交请求的租户的所有端口,单次查询最多返回2000条数据。
|
|
1501
1624
|
*
|
|
@@ -1622,6 +1745,20 @@ export declare const ParamCreater: () => {
|
|
|
1622
1745
|
headers: {};
|
|
1623
1746
|
data: {};
|
|
1624
1747
|
};
|
|
1748
|
+
/**
|
|
1749
|
+
* 查询流日志详情
|
|
1750
|
+
*
|
|
1751
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1752
|
+
*/
|
|
1753
|
+
showFlowLog(showFlowLogRequest?: ShowFlowLogRequest): {
|
|
1754
|
+
method: string;
|
|
1755
|
+
url: string;
|
|
1756
|
+
contentType: string;
|
|
1757
|
+
queryParams: {};
|
|
1758
|
+
pathParams: {};
|
|
1759
|
+
headers: {};
|
|
1760
|
+
data: {};
|
|
1761
|
+
};
|
|
1625
1762
|
/**
|
|
1626
1763
|
* 查询单个端口详情。
|
|
1627
1764
|
*
|
|
@@ -1734,6 +1871,20 @@ export declare const ParamCreater: () => {
|
|
|
1734
1871
|
headers: {};
|
|
1735
1872
|
data: {};
|
|
1736
1873
|
};
|
|
1874
|
+
/**
|
|
1875
|
+
* 更新流日志
|
|
1876
|
+
*
|
|
1877
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1878
|
+
*/
|
|
1879
|
+
updateFlowLog(updateFlowLogRequest?: UpdateFlowLogRequest): {
|
|
1880
|
+
method: string;
|
|
1881
|
+
url: string;
|
|
1882
|
+
contentType: string;
|
|
1883
|
+
queryParams: {};
|
|
1884
|
+
pathParams: {};
|
|
1885
|
+
headers: {};
|
|
1886
|
+
data: {};
|
|
1887
|
+
};
|
|
1737
1888
|
/**
|
|
1738
1889
|
* 更新端口。
|
|
1739
1890
|
*
|