@huaweicloud/huaweicloud-sdk-vpc 3.1.181 → 3.1.182
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/v3/VpcClient.d.ts +184 -20
- package/v3/VpcClient.d.ts.map +1 -1
- package/v3/VpcClient.js +455 -20
- package/v3/VpcClient.js.map +1 -1
- package/v3/model/AddressGroupDependency.d.ts +13 -0
- package/v3/model/AddressGroupDependency.d.ts.map +1 -0
- package/v3/model/AddressGroupDependency.js +30 -0
- package/v3/model/AddressGroupDependency.js.map +1 -0
- package/v3/model/Dependency.d.ts +14 -0
- package/v3/model/Dependency.d.ts.map +1 -0
- package/v3/model/Dependency.js +36 -0
- package/v3/model/Dependency.js.map +1 -0
- package/v3/model/ListAddressGroupsDependencyRequest.d.ts +10 -0
- package/v3/model/ListAddressGroupsDependencyRequest.d.ts.map +1 -0
- package/v3/model/ListAddressGroupsDependencyRequest.js +23 -0
- package/v3/model/ListAddressGroupsDependencyRequest.js.map +1 -0
- package/v3/model/ListAddressGroupsDependencyResponse.d.ts +19 -0
- package/v3/model/ListAddressGroupsDependencyResponse.d.ts.map +1 -0
- package/v3/model/ListAddressGroupsDependencyResponse.js +41 -0
- package/v3/model/ListAddressGroupsDependencyResponse.js.map +1 -0
- package/v3/model/ListPortsRequest.d.ts +64 -0
- package/v3/model/ListPortsRequest.d.ts.map +1 -0
- package/v3/model/ListPortsRequest.js +155 -0
- package/v3/model/ListPortsRequest.js.map +1 -0
- package/v3/model/ListPortsResponse.d.ts +17 -0
- package/v3/model/ListPortsResponse.d.ts.map +1 -0
- package/v3/model/ListPortsResponse.js +35 -0
- package/v3/model/ListPortsResponse.js.map +1 -0
- package/v3/model/ListVirsubnetsRequest.d.ts +26 -0
- package/v3/model/ListVirsubnetsRequest.d.ts.map +1 -0
- package/v3/model/ListVirsubnetsRequest.js +57 -0
- package/v3/model/ListVirsubnetsRequest.js.map +1 -0
- package/v3/model/ListVirsubnetsResponse.d.ts +17 -0
- package/v3/model/ListVirsubnetsResponse.d.ts.map +1 -0
- package/v3/model/ListVirsubnetsResponse.js +35 -0
- package/v3/model/ListVirsubnetsResponse.js.map +1 -0
- package/v3/model/Port.d.ts +8 -8
- package/v3/model/Port.d.ts.map +1 -1
- package/v3/model/Port.js.map +1 -1
- package/v3/model/PortExtraDhcpOpt.d.ts +12 -0
- package/v3/model/PortExtraDhcpOpt.d.ts.map +1 -0
- package/v3/model/{ExtraDhcpOpt.js → PortExtraDhcpOpt.js} +7 -5
- package/v3/model/PortExtraDhcpOpt.js.map +1 -0
- package/v3/model/ResponseTag.d.ts +8 -0
- package/v3/model/ResponseTag.d.ts.map +1 -0
- package/v3/model/ResponseTag.js +19 -0
- package/v3/model/ResponseTag.js.map +1 -0
- package/v3/model/ShowPortRequest.d.ts +8 -0
- package/v3/model/ShowPortRequest.d.ts.map +1 -0
- package/v3/model/ShowPortRequest.js +20 -0
- package/v3/model/ShowPortRequest.js.map +1 -0
- package/v3/model/ShowPortResponse.d.ts +12 -0
- package/v3/model/ShowPortResponse.d.ts.map +1 -0
- package/v3/model/ShowPortResponse.js +25 -0
- package/v3/model/ShowPortResponse.js.map +1 -0
- package/v3/model/ShowQuotaRequest.d.ts +4 -0
- package/v3/model/ShowQuotaRequest.d.ts.map +1 -0
- package/v3/model/ShowQuotaRequest.js +9 -0
- package/v3/model/ShowQuotaRequest.js.map +1 -0
- package/v3/model/ShowQuotaResponse.d.ts +12 -0
- package/v3/model/ShowQuotaResponse.d.ts.map +1 -0
- package/v3/model/ShowQuotaResponse.js +25 -0
- package/v3/model/ShowQuotaResponse.js.map +1 -0
- package/v3/model/ShowVirsubnetRequest.d.ts +8 -0
- package/v3/model/ShowVirsubnetRequest.d.ts.map +1 -0
- package/v3/model/ShowVirsubnetRequest.js +20 -0
- package/v3/model/ShowVirsubnetRequest.js.map +1 -0
- package/v3/model/ShowVirsubnetResponse.d.ts +12 -0
- package/v3/model/ShowVirsubnetResponse.d.ts.map +1 -0
- package/v3/model/ShowVirsubnetResponse.js +25 -0
- package/v3/model/ShowVirsubnetResponse.js.map +1 -0
- package/v3/model/SubnetCidr.d.ts +20 -0
- package/v3/model/SubnetCidr.d.ts.map +1 -0
- package/v3/model/SubnetCidr.js +52 -0
- package/v3/model/SubnetCidr.js.map +1 -0
- package/v3/model/SubnetExtraDhcpOpt.d.ts +16 -0
- package/v3/model/SubnetExtraDhcpOpt.d.ts.map +1 -0
- package/v3/model/SubnetExtraDhcpOpt.js +42 -0
- package/v3/model/SubnetExtraDhcpOpt.js.map +1 -0
- package/v3/model/Virsubnet.d.ts +51 -0
- package/v3/model/Virsubnet.d.ts.map +1 -0
- package/v3/model/Virsubnet.js +127 -0
- package/v3/model/Virsubnet.js.map +1 -0
- package/v3/model/VpcQuotas.d.ts +164 -0
- package/v3/model/VpcQuotas.d.ts.map +1 -0
- package/v3/model/VpcQuotas.js +405 -0
- package/v3/model/VpcQuotas.js.map +1 -0
- package/v3/public-api.d.ts +20 -1
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +20 -1
- package/v3/public-api.js.map +1 -1
- package/v3/model/ExtraDhcpOpt.d.ts +0 -12
- package/v3/model/ExtraDhcpOpt.d.ts.map +0 -1
- package/v3/model/ExtraDhcpOpt.js.map +0 -1
package/v3/VpcClient.js
CHANGED
|
@@ -48,6 +48,7 @@ const DeleteVirsubnetCidrReservationRequest_1 = require("./model/DeleteVirsubnet
|
|
|
48
48
|
const DeleteVpcRequest_1 = require("./model/DeleteVpcRequest");
|
|
49
49
|
const DisassociateSubnetFirewallRequest_1 = require("./model/DisassociateSubnetFirewallRequest");
|
|
50
50
|
const ListAddressGroupRequest_1 = require("./model/ListAddressGroupRequest");
|
|
51
|
+
const ListAddressGroupsDependencyRequest_1 = require("./model/ListAddressGroupsDependencyRequest");
|
|
51
52
|
const ListClouddcnSubnetsCountFilterTagsRequest_1 = require("./model/ListClouddcnSubnetsCountFilterTagsRequest");
|
|
52
53
|
const ListClouddcnSubnetsFilterTagsRequest_1 = require("./model/ListClouddcnSubnetsFilterTagsRequest");
|
|
53
54
|
const ListClouddcnSubnetsRequest_1 = require("./model/ListClouddcnSubnetsRequest");
|
|
@@ -56,6 +57,7 @@ const ListFirewallTagsRequest_1 = require("./model/ListFirewallTagsRequest");
|
|
|
56
57
|
const ListFirewallsByTagsRequest_1 = require("./model/ListFirewallsByTagsRequest");
|
|
57
58
|
const ListPortTagsRequest_1 = require("./model/ListPortTagsRequest");
|
|
58
59
|
const ListPortsByTagsRequest_1 = require("./model/ListPortsByTagsRequest");
|
|
60
|
+
const ListPortsRequest_1 = require("./model/ListPortsRequest");
|
|
59
61
|
const ListSecurityGroupRulesRequest_1 = require("./model/ListSecurityGroupRulesRequest");
|
|
60
62
|
const ListSecurityGroupsRequest_1 = require("./model/ListSecurityGroupsRequest");
|
|
61
63
|
const ListSubNetworkInterfacesRequest_1 = require("./model/ListSubNetworkInterfacesRequest");
|
|
@@ -63,6 +65,7 @@ const ListTrafficMirrorFilterRulesRequest_1 = require("./model/ListTrafficMirror
|
|
|
63
65
|
const ListTrafficMirrorFiltersRequest_1 = require("./model/ListTrafficMirrorFiltersRequest");
|
|
64
66
|
const ListTrafficMirrorSessionsRequest_1 = require("./model/ListTrafficMirrorSessionsRequest");
|
|
65
67
|
const ListVirsubnetCidrReservationsRequest_1 = require("./model/ListVirsubnetCidrReservationsRequest");
|
|
68
|
+
const ListVirsubnetsRequest_1 = require("./model/ListVirsubnetsRequest");
|
|
66
69
|
const ListVpcsRequest_1 = require("./model/ListVpcsRequest");
|
|
67
70
|
const MigrateSubNetworkInterfaceRequest_1 = require("./model/MigrateSubNetworkInterfaceRequest");
|
|
68
71
|
const RemoveFirewallRulesRequest_1 = require("./model/RemoveFirewallRulesRequest");
|
|
@@ -74,6 +77,7 @@ const ShowClouddcnSubnetRequest_1 = require("./model/ShowClouddcnSubnetRequest")
|
|
|
74
77
|
const ShowClouddcnSubnetsTagsRequest_1 = require("./model/ShowClouddcnSubnetsTagsRequest");
|
|
75
78
|
const ShowFirewallRequest_1 = require("./model/ShowFirewallRequest");
|
|
76
79
|
const ShowFirewallTagsRequest_1 = require("./model/ShowFirewallTagsRequest");
|
|
80
|
+
const ShowPortRequest_1 = require("./model/ShowPortRequest");
|
|
77
81
|
const ShowPortTagsRequest_1 = require("./model/ShowPortTagsRequest");
|
|
78
82
|
const ShowSecurityGroupRequest_1 = require("./model/ShowSecurityGroupRequest");
|
|
79
83
|
const ShowSecurityGroupRuleRequest_1 = require("./model/ShowSecurityGroupRuleRequest");
|
|
@@ -82,6 +86,7 @@ const ShowTrafficMirrorFilterRequest_1 = require("./model/ShowTrafficMirrorFilte
|
|
|
82
86
|
const ShowTrafficMirrorFilterRuleRequest_1 = require("./model/ShowTrafficMirrorFilterRuleRequest");
|
|
83
87
|
const ShowTrafficMirrorSessionRequest_1 = require("./model/ShowTrafficMirrorSessionRequest");
|
|
84
88
|
const ShowVirsubnetCidrReservationRequest_1 = require("./model/ShowVirsubnetCidrReservationRequest");
|
|
89
|
+
const ShowVirsubnetRequest_1 = require("./model/ShowVirsubnetRequest");
|
|
85
90
|
const ShowVpcRequest_1 = require("./model/ShowVpcRequest");
|
|
86
91
|
const UpdateAddressGroupRequest_1 = require("./model/UpdateAddressGroupRequest");
|
|
87
92
|
const UpdateClouddcnSubnetRequest_1 = require("./model/UpdateClouddcnSubnetRequest");
|
|
@@ -142,7 +147,6 @@ class VpcClient {
|
|
|
142
147
|
/**
|
|
143
148
|
* 为指定的端口批量添加标签。
|
|
144
149
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
145
|
-
* 该接口在华南-深圳上线。
|
|
146
150
|
*
|
|
147
151
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
148
152
|
*
|
|
@@ -194,7 +198,6 @@ class VpcClient {
|
|
|
194
198
|
/**
|
|
195
199
|
* 为指定的端口资源实例批量删除标签。
|
|
196
200
|
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
197
|
-
* 该接口在华南-深圳上线。
|
|
198
201
|
*
|
|
199
202
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
200
203
|
*
|
|
@@ -212,7 +215,6 @@ class VpcClient {
|
|
|
212
215
|
}
|
|
213
216
|
/**
|
|
214
217
|
* 使用标签过滤查询端口实例数量。
|
|
215
|
-
* 该接口在华南-深圳上线。
|
|
216
218
|
*
|
|
217
219
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
218
220
|
*
|
|
@@ -228,9 +230,8 @@ class VpcClient {
|
|
|
228
230
|
return this.hcClient.sendRequest(options);
|
|
229
231
|
}
|
|
230
232
|
/**
|
|
231
|
-
*
|
|
233
|
+
* 给指定端口资源实例增加标签信息。
|
|
232
234
|
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
233
|
-
* 该接口在华南-深圳上线。
|
|
234
235
|
*
|
|
235
236
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
236
237
|
*
|
|
@@ -359,9 +360,8 @@ class VpcClient {
|
|
|
359
360
|
return this.hcClient.sendRequest(options);
|
|
360
361
|
}
|
|
361
362
|
/**
|
|
362
|
-
*
|
|
363
|
+
* 删除指定端口的标签信息。
|
|
363
364
|
* 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串。
|
|
364
|
-
* 该接口在华南-深圳上线。
|
|
365
365
|
*
|
|
366
366
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
367
367
|
*
|
|
@@ -491,7 +491,6 @@ class VpcClient {
|
|
|
491
491
|
}
|
|
492
492
|
/**
|
|
493
493
|
* 查询租户在指定Project中实例类型的所有资源标签集合。
|
|
494
|
-
* 该接口在华南-深圳上线。
|
|
495
494
|
*
|
|
496
495
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
497
496
|
*
|
|
@@ -507,9 +506,40 @@ class VpcClient {
|
|
|
507
506
|
options['responseHeaders'] = [''];
|
|
508
507
|
return this.hcClient.sendRequest(options);
|
|
509
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* 当您的端口创建成功后,您可以通过调用该接口查询所有端口信息,包括端口ID、IP地址、所属云服务实例等。
|
|
511
|
+
*
|
|
512
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
513
|
+
*
|
|
514
|
+
* @summary 查询端口列表
|
|
515
|
+
* @param {Array<string>} [id] **参数解释**: 端口的资源ID。 **取值范围**: 带“-”的标准UUID格式。
|
|
516
|
+
* @param {Array<string>} [name] **参数解释**: 端口的名称。 **取值范围**: 默认为空,最大长度不超过255。
|
|
517
|
+
* @param {boolean} [adminStateUp] **参数解释**: 端口的管理状态。 **取值范围**: true,false,默认值true。
|
|
518
|
+
* @param {string} [status] **参数解释**: 端口的状态。 **取值范围**: - ACTIVE:端口处- 于活动状态,可以正常进行网络通信。 - BUILD:端口正在创建或配置中。 - DOWN:端口处于非活动状态,不能进行网络通信。Hana 硬直通虚拟机端口状态总为DOWN。
|
|
519
|
+
* @param {Array<string>} [virsubnetId] **参数解释**: 端口所在的虚拟子网ID。 **取值范围**: 带“-”的标准UUID格式。
|
|
520
|
+
* @param {Array<string>} [deviceId] **参数解释**: 端口所属的设备ID。 **取值范围**: 带“-”的标准UUID格式。
|
|
521
|
+
* @param {Array<string>} [macAddress] **参数解释**: 端口的MAC地址。 **取值范围**: 不涉及
|
|
522
|
+
* @param {Array<string>} [deviceOwner] **参数解释**: 端口所属的设备名称。 **取值范围**: - network:dhcp, 表示DHCP服务 - network:router_interface_distributed, 表示子网网关地址 - compute:xxx, 表示云服务器网卡私有IP地址,其中XXX对应具体的可用区名称,例如compute:aa-bb-cc表示私有IP地址被可用区aa-bb-cc内的云服务器使用 - neutron:VIP_PORT, 表示虚拟IP地址 - neutron:LOADBALANCERV2, 表示共享型ELB - neutron:LOADBALANCERV3, 表示独享型ELB - network:endpoint_interface, 表示VPC终端节点 - network:nat_gateway, 表示NAT网关 - network:ucmp, 表示UCMP端口,为企业路由器服务所用
|
|
523
|
+
* @param {string} [deviceOwnerPrefixlike] **参数解释**: 端口所属的设备名称前缀。 **取值范围**: - network:过滤出device_owner前缀是network的端口,如DHCP端口。 - compute:过滤出device_owner前缀是compute的端口,如云服务器网卡。 - neutron:过滤出device_owner前缀是compute的端口,如虚拟IP地址。
|
|
524
|
+
* @param {Array<string>} [description] **参数解释**: 端口的描述信息。 **取值范围**: 0-255个字符,不能包含“<”和“>”。
|
|
525
|
+
* @param {Array<string>} [bindingHostId] **参数解释**: 端口所在的主机ID。 **取值范围**: 不涉及。
|
|
526
|
+
* @param {Array<string>} [privateIps] **参数解释**: 端口的私有IP地址。 **取值范围**: - private_ips=ip_address={ip_address},其中{ip_address}填IP地址,如192.168.21.22。 - private_ips=subnet_cidr_id={subnet_id},其中{subnet_id}填IPv4子网或IPv6子网的ID,如011fc878-5521-4654-a1ad-f5b0b5820302。
|
|
527
|
+
* @param {Array<string>} [securityGroups] **参数解释**: 端口绑定的安全组列表。 **取值范围**: 不涉及。
|
|
528
|
+
* @param {Array<string>} [vpcId] **参数解释**: 端口所在的VPC的ID。 **取值范围**: 带“-”的标准UUID格式。
|
|
529
|
+
* @param {Array<string>} [allowedAddressPairs] **参数解释**: 端口的IP/Mac对列表。 **取值范围**: - allowed_address_pairs=ip_address={ip_address},其中{ip_address}填IP地址,如192.168.21.22。 - allowed_address_pairs=mac_address={mac_address},其中{mac_address}填MAC地址,如fa:16:3e:b1:da:62。
|
|
530
|
+
* @param {string} [instanceId] **参数解释**: 端口所属的云服务实例ID,例如RDS实例ID。 **取值范围**: 不涉及。
|
|
531
|
+
* @param {string} [instanceType] **参数解释**: 端口所属的云服务实例类型,例如“RDS”。 **取值范围**: 不涉及。
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
listPorts(listPortsRequest) {
|
|
536
|
+
const options = (0, exports.ParamCreater)().listPorts(listPortsRequest);
|
|
537
|
+
// @ts-ignore
|
|
538
|
+
options['responseHeaders'] = [''];
|
|
539
|
+
return this.hcClient.sendRequest(options);
|
|
540
|
+
}
|
|
510
541
|
/**
|
|
511
542
|
* 使用标签过滤查询端口。
|
|
512
|
-
* 该接口在华南-深圳上线。
|
|
513
543
|
*
|
|
514
544
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
515
545
|
*
|
|
@@ -704,6 +734,30 @@ class VpcClient {
|
|
|
704
734
|
options['responseHeaders'] = [''];
|
|
705
735
|
return this.hcClient.sendRequest(options);
|
|
706
736
|
}
|
|
737
|
+
/**
|
|
738
|
+
* 当您的子网创建成功后,您可以通过调用该接口查询所有子网信息,包括子网的名称、ID等。
|
|
739
|
+
*
|
|
740
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
741
|
+
*
|
|
742
|
+
* @summary 查询虚拟子网列表
|
|
743
|
+
* @param {number} [limit] **参数解释**: 每页返回的资源个数。 **取值范围**: 0~2000。
|
|
744
|
+
* @param {string} [marker] **参数解释**: 分页查询起始的资源ID,为空时查询第一页。 **取值范围**: 子网的资源ID。
|
|
745
|
+
* @param {Array<string>} [id] **参数解释**: 子网的资源ID,填写后按照ID进行过滤,支持传入多个ID过滤。 **取值范围**: 不涉及。
|
|
746
|
+
* @param {Array<string>} [name] **参数解释**: 子网的名称,填写后按照名称进行过滤,支持传入多个名称过滤。 **取值范围**: 不涉及。
|
|
747
|
+
* @param {Array<string>} [vpcId] **参数解释**: 子网所在VPC的资源ID,填写后按照VPC资源ID进行过滤,支持传入多个ID过滤。 **取值范围**: 不涉及。
|
|
748
|
+
* @param {string} [status] **参数解释**: 子网的状态,填写后按照状态进行过滤,只支持传入单个状态过滤。 **取值范围**: - ACTIVE:表示子网已挂载到VPC上。 - UNKNOWN:表示子网还未挂载到VPC上。 - ERROR:表示子网状态故障。
|
|
749
|
+
* @param {Array<string>} [scope] **参数解释**: 子网的作用域,填写后按照作用域进行过滤,支持传入多个作用域过滤。 **取值范围**: - center:表示作用域为中心。 - {publicBorderGroup}:表示作用域为具体的公网边界组。公网边界组限制子网的可用区范围,可关联多个边缘可用区。
|
|
750
|
+
* @param {Array<string>} [zoneId] **参数解释**: 子网的可用区ID,填写后按照可用区ID进行过滤,支持传入多个可用区ID过滤。 **取值范围**: 不涉及
|
|
751
|
+
* @param {Array<string>} [description] **参数解释**: 子网的描述信息,填写后按照描述信息进行过滤,支持传入多个描述信息过滤。 **取值范围**: 不涉及。
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
*/
|
|
755
|
+
listVirsubnets(listVirsubnetsRequest) {
|
|
756
|
+
const options = (0, exports.ParamCreater)().listVirsubnets(listVirsubnetsRequest);
|
|
757
|
+
// @ts-ignore
|
|
758
|
+
options['responseHeaders'] = [''];
|
|
759
|
+
return this.hcClient.sendRequest(options);
|
|
760
|
+
}
|
|
707
761
|
/**
|
|
708
762
|
* 批量迁移辅助弹性网卡
|
|
709
763
|
*
|
|
@@ -754,9 +808,24 @@ class VpcClient {
|
|
|
754
808
|
options['responseHeaders'] = [''];
|
|
755
809
|
return this.hcClient.sendRequest(options);
|
|
756
810
|
}
|
|
811
|
+
/**
|
|
812
|
+
* 当您的端口创建成功后,您可以通过调用该接口查询单个端口的详细信息,包括端口ID、IP地址、所属云服务实例等。
|
|
813
|
+
*
|
|
814
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
815
|
+
*
|
|
816
|
+
* @summary 查询端口详情
|
|
817
|
+
* @param {string} portId **参数解释**: 端口的资源ID,可以是弹性网卡的资源ID。 **取值范围**: 不涉及。
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
*/
|
|
821
|
+
showPort(showPortRequest) {
|
|
822
|
+
const options = (0, exports.ParamCreater)().showPort(showPortRequest);
|
|
823
|
+
// @ts-ignore
|
|
824
|
+
options['responseHeaders'] = [''];
|
|
825
|
+
return this.hcClient.sendRequest(options);
|
|
826
|
+
}
|
|
757
827
|
/**
|
|
758
828
|
* 查询指定端口的标签信息。
|
|
759
|
-
* 该接口在华南-深圳上线。
|
|
760
829
|
*
|
|
761
830
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
762
831
|
*
|
|
@@ -771,6 +840,21 @@ class VpcClient {
|
|
|
771
840
|
options['responseHeaders'] = [''];
|
|
772
841
|
return this.hcClient.sendRequest(options);
|
|
773
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* 您可以通过此接口查询VPC服务相关资源的配额,包括安全组配额、安全组规则配额等。
|
|
845
|
+
*
|
|
846
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
847
|
+
*
|
|
848
|
+
* @summary 查询配额
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
showQuota(showQuotaRequest) {
|
|
853
|
+
const options = (0, exports.ParamCreater)().showQuota();
|
|
854
|
+
// @ts-ignore
|
|
855
|
+
options['responseHeaders'] = [''];
|
|
856
|
+
return this.hcClient.sendRequest(options);
|
|
857
|
+
}
|
|
774
858
|
/**
|
|
775
859
|
* 查询单个安全组详情
|
|
776
860
|
*
|
|
@@ -882,6 +966,22 @@ class VpcClient {
|
|
|
882
966
|
options['responseHeaders'] = [''];
|
|
883
967
|
return this.hcClient.sendRequest(options);
|
|
884
968
|
}
|
|
969
|
+
/**
|
|
970
|
+
* 当您的子网创建成功后,您可以通过调用该接口查询单个子网的详细信息,包括子网的名称、ID、状态等。
|
|
971
|
+
*
|
|
972
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
973
|
+
*
|
|
974
|
+
* @summary 查询虚拟子网详情
|
|
975
|
+
* @param {string} virsubnetId **参数解释**: 子网的资源ID。 **取值范围**: 不涉及。
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
showVirsubnet(showVirsubnetRequest) {
|
|
980
|
+
const options = (0, exports.ParamCreater)().showVirsubnet(showVirsubnetRequest);
|
|
981
|
+
// @ts-ignore
|
|
982
|
+
options['responseHeaders'] = [''];
|
|
983
|
+
return this.hcClient.sendRequest(options);
|
|
984
|
+
}
|
|
885
985
|
/**
|
|
886
986
|
* 当您的子网预留网段创建成功后,您可以通过调用该接口查询单个子网预留网段的详细信息,包括子网预留网段的名称、IP网段等。
|
|
887
987
|
*
|
|
@@ -1597,6 +1697,23 @@ class VpcClient {
|
|
|
1597
1697
|
options['responseHeaders'] = [''];
|
|
1598
1698
|
return this.hcClient.sendRequest(options);
|
|
1599
1699
|
}
|
|
1700
|
+
/**
|
|
1701
|
+
* 当您的IP地址组被网络ACL和安全组资源关联时,您可以通过调用该接口查询IP地址组关联的网络ACL或安全组的资源ID和名称。
|
|
1702
|
+
*
|
|
1703
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1704
|
+
*
|
|
1705
|
+
* @summary 查询IP地址组的关联资源
|
|
1706
|
+
* @param {string} [id] **参数解释**: 用IP地址组的资源ID过滤。 **取值范围**: 不涉及。
|
|
1707
|
+
* @param {string} [enterpriseProjectId] **参数解释**: 用IP地址组所属的企业项目ID过滤。 **取值范围**: 不涉及。
|
|
1708
|
+
* @param {*} [options] Override http request option.
|
|
1709
|
+
* @throws {RequiredError}
|
|
1710
|
+
*/
|
|
1711
|
+
listAddressGroupsDependency(listAddressGroupsDependencyRequest) {
|
|
1712
|
+
const options = (0, exports.ParamCreater)().listAddressGroupsDependency(listAddressGroupsDependencyRequest);
|
|
1713
|
+
// @ts-ignore
|
|
1714
|
+
options['responseHeaders'] = [''];
|
|
1715
|
+
return this.hcClient.sendRequest(options);
|
|
1716
|
+
}
|
|
1600
1717
|
/**
|
|
1601
1718
|
* 查询地址组详情。
|
|
1602
1719
|
*
|
|
@@ -1838,7 +1955,6 @@ const ParamCreater = function () {
|
|
|
1838
1955
|
/**
|
|
1839
1956
|
* 为指定的端口批量添加标签。
|
|
1840
1957
|
* 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
|
|
1841
|
-
* 该接口在华南-深圳上线。
|
|
1842
1958
|
*
|
|
1843
1959
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1844
1960
|
*/
|
|
@@ -1950,7 +2066,6 @@ const ParamCreater = function () {
|
|
|
1950
2066
|
/**
|
|
1951
2067
|
* 为指定的端口资源实例批量删除标签。
|
|
1952
2068
|
* 此接口为幂等接口:删除时,如果删除的标签不存在,默认处理成功;删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
|
1953
|
-
* 该接口在华南-深圳上线。
|
|
1954
2069
|
*
|
|
1955
2070
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1956
2071
|
*/
|
|
@@ -1988,7 +2103,6 @@ const ParamCreater = function () {
|
|
|
1988
2103
|
},
|
|
1989
2104
|
/**
|
|
1990
2105
|
* 使用标签过滤查询端口实例数量。
|
|
1991
|
-
* 该接口在华南-深圳上线。
|
|
1992
2106
|
*
|
|
1993
2107
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1994
2108
|
*/
|
|
@@ -2018,9 +2132,8 @@ const ParamCreater = function () {
|
|
|
2018
2132
|
return options;
|
|
2019
2133
|
},
|
|
2020
2134
|
/**
|
|
2021
|
-
*
|
|
2135
|
+
* 给指定端口资源实例增加标签信息。
|
|
2022
2136
|
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
|
2023
|
-
* 该接口在华南-深圳上线。
|
|
2024
2137
|
*
|
|
2025
2138
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2026
2139
|
*/
|
|
@@ -2291,9 +2404,8 @@ const ParamCreater = function () {
|
|
|
2291
2404
|
return options;
|
|
2292
2405
|
},
|
|
2293
2406
|
/**
|
|
2294
|
-
*
|
|
2407
|
+
* 删除指定端口的标签信息。
|
|
2295
2408
|
* 该接口为幂等接口:删除的key不存在报404,key不能为空或者空字符串。
|
|
2296
|
-
* 该接口在华南-深圳上线。
|
|
2297
2409
|
*
|
|
2298
2410
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2299
2411
|
*/
|
|
@@ -2548,7 +2660,6 @@ const ParamCreater = function () {
|
|
|
2548
2660
|
},
|
|
2549
2661
|
/**
|
|
2550
2662
|
* 查询租户在指定Project中实例类型的所有资源标签集合。
|
|
2551
|
-
* 该接口在华南-深圳上线。
|
|
2552
2663
|
*
|
|
2553
2664
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2554
2665
|
*/
|
|
@@ -2585,9 +2696,136 @@ const ParamCreater = function () {
|
|
|
2585
2696
|
options.headers = localVarHeaderParameter;
|
|
2586
2697
|
return options;
|
|
2587
2698
|
},
|
|
2699
|
+
/**
|
|
2700
|
+
* 当您的端口创建成功后,您可以通过调用该接口查询所有端口信息,包括端口ID、IP地址、所属云服务实例等。
|
|
2701
|
+
*
|
|
2702
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2703
|
+
*/
|
|
2704
|
+
listPorts(listPortsRequest) {
|
|
2705
|
+
const options = {
|
|
2706
|
+
method: "GET",
|
|
2707
|
+
url: "/v3/{project_id}/ports",
|
|
2708
|
+
contentType: "application/json",
|
|
2709
|
+
queryParams: {},
|
|
2710
|
+
pathParams: {},
|
|
2711
|
+
headers: {}
|
|
2712
|
+
};
|
|
2713
|
+
const localVarHeaderParameter = {};
|
|
2714
|
+
const localVarQueryParameter = {};
|
|
2715
|
+
let id;
|
|
2716
|
+
let name;
|
|
2717
|
+
let adminStateUp;
|
|
2718
|
+
let status;
|
|
2719
|
+
let virsubnetId;
|
|
2720
|
+
let deviceId;
|
|
2721
|
+
let macAddress;
|
|
2722
|
+
let deviceOwner;
|
|
2723
|
+
let deviceOwnerPrefixlike;
|
|
2724
|
+
let description;
|
|
2725
|
+
let bindingHostId;
|
|
2726
|
+
let privateIps;
|
|
2727
|
+
let securityGroups;
|
|
2728
|
+
let vpcId;
|
|
2729
|
+
let allowedAddressPairs;
|
|
2730
|
+
let instanceId;
|
|
2731
|
+
let instanceType;
|
|
2732
|
+
if (listPortsRequest !== null && listPortsRequest !== undefined) {
|
|
2733
|
+
if (listPortsRequest instanceof ListPortsRequest_1.ListPortsRequest) {
|
|
2734
|
+
id = listPortsRequest.id;
|
|
2735
|
+
name = listPortsRequest.name;
|
|
2736
|
+
adminStateUp = listPortsRequest.adminStateUp;
|
|
2737
|
+
status = listPortsRequest.status;
|
|
2738
|
+
virsubnetId = listPortsRequest.virsubnetId;
|
|
2739
|
+
deviceId = listPortsRequest.deviceId;
|
|
2740
|
+
macAddress = listPortsRequest.macAddress;
|
|
2741
|
+
deviceOwner = listPortsRequest.deviceOwner;
|
|
2742
|
+
deviceOwnerPrefixlike = listPortsRequest.deviceOwnerPrefixlike;
|
|
2743
|
+
description = listPortsRequest.description;
|
|
2744
|
+
bindingHostId = listPortsRequest.bindingHostId;
|
|
2745
|
+
privateIps = listPortsRequest.privateIps;
|
|
2746
|
+
securityGroups = listPortsRequest.securityGroups;
|
|
2747
|
+
vpcId = listPortsRequest.vpcId;
|
|
2748
|
+
allowedAddressPairs = listPortsRequest.allowedAddressPairs;
|
|
2749
|
+
instanceId = listPortsRequest.instanceId;
|
|
2750
|
+
instanceType = listPortsRequest.instanceType;
|
|
2751
|
+
}
|
|
2752
|
+
else {
|
|
2753
|
+
id = listPortsRequest['id'];
|
|
2754
|
+
name = listPortsRequest['name'];
|
|
2755
|
+
adminStateUp = listPortsRequest['admin_state_up'];
|
|
2756
|
+
status = listPortsRequest['status'];
|
|
2757
|
+
virsubnetId = listPortsRequest['virsubnet_id'];
|
|
2758
|
+
deviceId = listPortsRequest['device_id'];
|
|
2759
|
+
macAddress = listPortsRequest['mac_address'];
|
|
2760
|
+
deviceOwner = listPortsRequest['device_owner'];
|
|
2761
|
+
deviceOwnerPrefixlike = listPortsRequest['device_owner_prefixlike'];
|
|
2762
|
+
description = listPortsRequest['description'];
|
|
2763
|
+
bindingHostId = listPortsRequest['binding:host_id'];
|
|
2764
|
+
privateIps = listPortsRequest['private_ips'];
|
|
2765
|
+
securityGroups = listPortsRequest['security_groups'];
|
|
2766
|
+
vpcId = listPortsRequest['vpc_id'];
|
|
2767
|
+
allowedAddressPairs = listPortsRequest['allowed_address_pairs'];
|
|
2768
|
+
instanceId = listPortsRequest['instance_id'];
|
|
2769
|
+
instanceType = listPortsRequest['instance_type'];
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
if (id !== null && id !== undefined) {
|
|
2773
|
+
localVarQueryParameter['id'] = id;
|
|
2774
|
+
}
|
|
2775
|
+
if (name !== null && name !== undefined) {
|
|
2776
|
+
localVarQueryParameter['name'] = name;
|
|
2777
|
+
}
|
|
2778
|
+
if (adminStateUp !== null && adminStateUp !== undefined) {
|
|
2779
|
+
localVarQueryParameter['admin_state_up'] = adminStateUp;
|
|
2780
|
+
}
|
|
2781
|
+
if (status !== null && status !== undefined) {
|
|
2782
|
+
localVarQueryParameter['status'] = status;
|
|
2783
|
+
}
|
|
2784
|
+
if (virsubnetId !== null && virsubnetId !== undefined) {
|
|
2785
|
+
localVarQueryParameter['virsubnet_id'] = virsubnetId;
|
|
2786
|
+
}
|
|
2787
|
+
if (deviceId !== null && deviceId !== undefined) {
|
|
2788
|
+
localVarQueryParameter['device_id'] = deviceId;
|
|
2789
|
+
}
|
|
2790
|
+
if (macAddress !== null && macAddress !== undefined) {
|
|
2791
|
+
localVarQueryParameter['mac_address'] = macAddress;
|
|
2792
|
+
}
|
|
2793
|
+
if (deviceOwner !== null && deviceOwner !== undefined) {
|
|
2794
|
+
localVarQueryParameter['device_owner'] = deviceOwner;
|
|
2795
|
+
}
|
|
2796
|
+
if (deviceOwnerPrefixlike !== null && deviceOwnerPrefixlike !== undefined) {
|
|
2797
|
+
localVarQueryParameter['device_owner_prefixlike'] = deviceOwnerPrefixlike;
|
|
2798
|
+
}
|
|
2799
|
+
if (description !== null && description !== undefined) {
|
|
2800
|
+
localVarQueryParameter['description'] = description;
|
|
2801
|
+
}
|
|
2802
|
+
if (bindingHostId !== null && bindingHostId !== undefined) {
|
|
2803
|
+
localVarQueryParameter['binding:host_id'] = bindingHostId;
|
|
2804
|
+
}
|
|
2805
|
+
if (privateIps !== null && privateIps !== undefined) {
|
|
2806
|
+
localVarQueryParameter['private_ips'] = privateIps;
|
|
2807
|
+
}
|
|
2808
|
+
if (securityGroups !== null && securityGroups !== undefined) {
|
|
2809
|
+
localVarQueryParameter['security_groups'] = securityGroups;
|
|
2810
|
+
}
|
|
2811
|
+
if (vpcId !== null && vpcId !== undefined) {
|
|
2812
|
+
localVarQueryParameter['vpc_id'] = vpcId;
|
|
2813
|
+
}
|
|
2814
|
+
if (allowedAddressPairs !== null && allowedAddressPairs !== undefined) {
|
|
2815
|
+
localVarQueryParameter['allowed_address_pairs'] = allowedAddressPairs;
|
|
2816
|
+
}
|
|
2817
|
+
if (instanceId !== null && instanceId !== undefined) {
|
|
2818
|
+
localVarQueryParameter['instance_id'] = instanceId;
|
|
2819
|
+
}
|
|
2820
|
+
if (instanceType !== null && instanceType !== undefined) {
|
|
2821
|
+
localVarQueryParameter['instance_type'] = instanceType;
|
|
2822
|
+
}
|
|
2823
|
+
options.queryParams = localVarQueryParameter;
|
|
2824
|
+
options.headers = localVarHeaderParameter;
|
|
2825
|
+
return options;
|
|
2826
|
+
},
|
|
2588
2827
|
/**
|
|
2589
2828
|
* 使用标签过滤查询端口。
|
|
2590
|
-
* 该接口在华南-深圳上线。
|
|
2591
2829
|
*
|
|
2592
2830
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2593
2831
|
*/
|
|
@@ -3250,6 +3488,86 @@ const ParamCreater = function () {
|
|
|
3250
3488
|
options.headers = localVarHeaderParameter;
|
|
3251
3489
|
return options;
|
|
3252
3490
|
},
|
|
3491
|
+
/**
|
|
3492
|
+
* 当您的子网创建成功后,您可以通过调用该接口查询所有子网信息,包括子网的名称、ID等。
|
|
3493
|
+
*
|
|
3494
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3495
|
+
*/
|
|
3496
|
+
listVirsubnets(listVirsubnetsRequest) {
|
|
3497
|
+
const options = {
|
|
3498
|
+
method: "GET",
|
|
3499
|
+
url: "/v3/{project_id}/vpc/virsubnets",
|
|
3500
|
+
contentType: "application/json",
|
|
3501
|
+
queryParams: {},
|
|
3502
|
+
pathParams: {},
|
|
3503
|
+
headers: {}
|
|
3504
|
+
};
|
|
3505
|
+
const localVarHeaderParameter = {};
|
|
3506
|
+
const localVarQueryParameter = {};
|
|
3507
|
+
let limit;
|
|
3508
|
+
let marker;
|
|
3509
|
+
let id;
|
|
3510
|
+
let name;
|
|
3511
|
+
let vpcId;
|
|
3512
|
+
let status;
|
|
3513
|
+
let scope;
|
|
3514
|
+
let zoneId;
|
|
3515
|
+
let description;
|
|
3516
|
+
if (listVirsubnetsRequest !== null && listVirsubnetsRequest !== undefined) {
|
|
3517
|
+
if (listVirsubnetsRequest instanceof ListVirsubnetsRequest_1.ListVirsubnetsRequest) {
|
|
3518
|
+
limit = listVirsubnetsRequest.limit;
|
|
3519
|
+
marker = listVirsubnetsRequest.marker;
|
|
3520
|
+
id = listVirsubnetsRequest.id;
|
|
3521
|
+
name = listVirsubnetsRequest.name;
|
|
3522
|
+
vpcId = listVirsubnetsRequest.vpcId;
|
|
3523
|
+
status = listVirsubnetsRequest.status;
|
|
3524
|
+
scope = listVirsubnetsRequest.scope;
|
|
3525
|
+
zoneId = listVirsubnetsRequest.zoneId;
|
|
3526
|
+
description = listVirsubnetsRequest.description;
|
|
3527
|
+
}
|
|
3528
|
+
else {
|
|
3529
|
+
limit = listVirsubnetsRequest['limit'];
|
|
3530
|
+
marker = listVirsubnetsRequest['marker'];
|
|
3531
|
+
id = listVirsubnetsRequest['id'];
|
|
3532
|
+
name = listVirsubnetsRequest['name'];
|
|
3533
|
+
vpcId = listVirsubnetsRequest['vpc_id'];
|
|
3534
|
+
status = listVirsubnetsRequest['status'];
|
|
3535
|
+
scope = listVirsubnetsRequest['scope'];
|
|
3536
|
+
zoneId = listVirsubnetsRequest['zone_id'];
|
|
3537
|
+
description = listVirsubnetsRequest['description'];
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
if (limit !== null && limit !== undefined) {
|
|
3541
|
+
localVarQueryParameter['limit'] = limit;
|
|
3542
|
+
}
|
|
3543
|
+
if (marker !== null && marker !== undefined) {
|
|
3544
|
+
localVarQueryParameter['marker'] = marker;
|
|
3545
|
+
}
|
|
3546
|
+
if (id !== null && id !== undefined) {
|
|
3547
|
+
localVarQueryParameter['id'] = id;
|
|
3548
|
+
}
|
|
3549
|
+
if (name !== null && name !== undefined) {
|
|
3550
|
+
localVarQueryParameter['name'] = name;
|
|
3551
|
+
}
|
|
3552
|
+
if (vpcId !== null && vpcId !== undefined) {
|
|
3553
|
+
localVarQueryParameter['vpc_id'] = vpcId;
|
|
3554
|
+
}
|
|
3555
|
+
if (status !== null && status !== undefined) {
|
|
3556
|
+
localVarQueryParameter['status'] = status;
|
|
3557
|
+
}
|
|
3558
|
+
if (scope !== null && scope !== undefined) {
|
|
3559
|
+
localVarQueryParameter['scope'] = scope;
|
|
3560
|
+
}
|
|
3561
|
+
if (zoneId !== null && zoneId !== undefined) {
|
|
3562
|
+
localVarQueryParameter['zone_id'] = zoneId;
|
|
3563
|
+
}
|
|
3564
|
+
if (description !== null && description !== undefined) {
|
|
3565
|
+
localVarQueryParameter['description'] = description;
|
|
3566
|
+
}
|
|
3567
|
+
options.queryParams = localVarQueryParameter;
|
|
3568
|
+
options.headers = localVarHeaderParameter;
|
|
3569
|
+
return options;
|
|
3570
|
+
},
|
|
3253
3571
|
/**
|
|
3254
3572
|
* 批量迁移辅助弹性网卡
|
|
3255
3573
|
*
|
|
@@ -3363,9 +3681,39 @@ const ParamCreater = function () {
|
|
|
3363
3681
|
options.headers = localVarHeaderParameter;
|
|
3364
3682
|
return options;
|
|
3365
3683
|
},
|
|
3684
|
+
/**
|
|
3685
|
+
* 当您的端口创建成功后,您可以通过调用该接口查询单个端口的详细信息,包括端口ID、IP地址、所属云服务实例等。
|
|
3686
|
+
*
|
|
3687
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3688
|
+
*/
|
|
3689
|
+
showPort(showPortRequest) {
|
|
3690
|
+
const options = {
|
|
3691
|
+
method: "GET",
|
|
3692
|
+
url: "/v3/{project_id}/ports/{port_id}",
|
|
3693
|
+
contentType: "application/json",
|
|
3694
|
+
queryParams: {},
|
|
3695
|
+
pathParams: {},
|
|
3696
|
+
headers: {}
|
|
3697
|
+
};
|
|
3698
|
+
const localVarHeaderParameter = {};
|
|
3699
|
+
let portId;
|
|
3700
|
+
if (showPortRequest !== null && showPortRequest !== undefined) {
|
|
3701
|
+
if (showPortRequest instanceof ShowPortRequest_1.ShowPortRequest) {
|
|
3702
|
+
portId = showPortRequest.portId;
|
|
3703
|
+
}
|
|
3704
|
+
else {
|
|
3705
|
+
portId = showPortRequest['port_id'];
|
|
3706
|
+
}
|
|
3707
|
+
}
|
|
3708
|
+
if (portId === null || portId === undefined) {
|
|
3709
|
+
throw new RequiredError('portId', 'Required parameter portId was null or undefined when calling showPort.');
|
|
3710
|
+
}
|
|
3711
|
+
options.pathParams = { 'port_id': portId, };
|
|
3712
|
+
options.headers = localVarHeaderParameter;
|
|
3713
|
+
return options;
|
|
3714
|
+
},
|
|
3366
3715
|
/**
|
|
3367
3716
|
* 查询指定端口的标签信息。
|
|
3368
|
-
* 该接口在华南-深圳上线。
|
|
3369
3717
|
*
|
|
3370
3718
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3371
3719
|
*/
|
|
@@ -3395,6 +3743,24 @@ const ParamCreater = function () {
|
|
|
3395
3743
|
options.headers = localVarHeaderParameter;
|
|
3396
3744
|
return options;
|
|
3397
3745
|
},
|
|
3746
|
+
/**
|
|
3747
|
+
* 您可以通过此接口查询VPC服务相关资源的配额,包括安全组配额、安全组规则配额等。
|
|
3748
|
+
*
|
|
3749
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3750
|
+
*/
|
|
3751
|
+
showQuota() {
|
|
3752
|
+
const options = {
|
|
3753
|
+
method: "GET",
|
|
3754
|
+
url: "/v3/{project_id}/vpc/quotas",
|
|
3755
|
+
contentType: "application/json",
|
|
3756
|
+
queryParams: {},
|
|
3757
|
+
pathParams: {},
|
|
3758
|
+
headers: {}
|
|
3759
|
+
};
|
|
3760
|
+
const localVarHeaderParameter = {};
|
|
3761
|
+
options.headers = localVarHeaderParameter;
|
|
3762
|
+
return options;
|
|
3763
|
+
},
|
|
3398
3764
|
/**
|
|
3399
3765
|
* 查询单个安全组详情
|
|
3400
3766
|
*
|
|
@@ -3599,6 +3965,37 @@ const ParamCreater = function () {
|
|
|
3599
3965
|
options.headers = localVarHeaderParameter;
|
|
3600
3966
|
return options;
|
|
3601
3967
|
},
|
|
3968
|
+
/**
|
|
3969
|
+
* 当您的子网创建成功后,您可以通过调用该接口查询单个子网的详细信息,包括子网的名称、ID、状态等。
|
|
3970
|
+
*
|
|
3971
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3972
|
+
*/
|
|
3973
|
+
showVirsubnet(showVirsubnetRequest) {
|
|
3974
|
+
const options = {
|
|
3975
|
+
method: "GET",
|
|
3976
|
+
url: "/v3/{project_id}/vpc/virsubnets/{virsubnet_id}",
|
|
3977
|
+
contentType: "application/json",
|
|
3978
|
+
queryParams: {},
|
|
3979
|
+
pathParams: {},
|
|
3980
|
+
headers: {}
|
|
3981
|
+
};
|
|
3982
|
+
const localVarHeaderParameter = {};
|
|
3983
|
+
let virsubnetId;
|
|
3984
|
+
if (showVirsubnetRequest !== null && showVirsubnetRequest !== undefined) {
|
|
3985
|
+
if (showVirsubnetRequest instanceof ShowVirsubnetRequest_1.ShowVirsubnetRequest) {
|
|
3986
|
+
virsubnetId = showVirsubnetRequest.virsubnetId;
|
|
3987
|
+
}
|
|
3988
|
+
else {
|
|
3989
|
+
virsubnetId = showVirsubnetRequest['virsubnet_id'];
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3992
|
+
if (virsubnetId === null || virsubnetId === undefined) {
|
|
3993
|
+
throw new RequiredError('virsubnetId', 'Required parameter virsubnetId was null or undefined when calling showVirsubnet.');
|
|
3994
|
+
}
|
|
3995
|
+
options.pathParams = { 'virsubnet_id': virsubnetId, };
|
|
3996
|
+
options.headers = localVarHeaderParameter;
|
|
3997
|
+
return options;
|
|
3998
|
+
},
|
|
3602
3999
|
/**
|
|
3603
4000
|
* 当您的子网预留网段创建成功后,您可以通过调用该接口查询单个子网预留网段的详细信息,包括子网预留网段的名称、IP网段等。
|
|
3604
4001
|
*
|
|
@@ -5199,6 +5596,44 @@ const ParamCreater = function () {
|
|
|
5199
5596
|
options.headers = localVarHeaderParameter;
|
|
5200
5597
|
return options;
|
|
5201
5598
|
},
|
|
5599
|
+
/**
|
|
5600
|
+
* 当您的IP地址组被网络ACL和安全组资源关联时,您可以通过调用该接口查询IP地址组关联的网络ACL或安全组的资源ID和名称。
|
|
5601
|
+
*
|
|
5602
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5603
|
+
*/
|
|
5604
|
+
listAddressGroupsDependency(listAddressGroupsDependencyRequest) {
|
|
5605
|
+
const options = {
|
|
5606
|
+
method: "GET",
|
|
5607
|
+
url: "/v3/{project_id}/vpc/list-address-groups-dependency",
|
|
5608
|
+
contentType: "application/json",
|
|
5609
|
+
queryParams: {},
|
|
5610
|
+
pathParams: {},
|
|
5611
|
+
headers: {}
|
|
5612
|
+
};
|
|
5613
|
+
const localVarHeaderParameter = {};
|
|
5614
|
+
const localVarQueryParameter = {};
|
|
5615
|
+
let id;
|
|
5616
|
+
let enterpriseProjectId;
|
|
5617
|
+
if (listAddressGroupsDependencyRequest !== null && listAddressGroupsDependencyRequest !== undefined) {
|
|
5618
|
+
if (listAddressGroupsDependencyRequest instanceof ListAddressGroupsDependencyRequest_1.ListAddressGroupsDependencyRequest) {
|
|
5619
|
+
id = listAddressGroupsDependencyRequest.id;
|
|
5620
|
+
enterpriseProjectId = listAddressGroupsDependencyRequest.enterpriseProjectId;
|
|
5621
|
+
}
|
|
5622
|
+
else {
|
|
5623
|
+
id = listAddressGroupsDependencyRequest['id'];
|
|
5624
|
+
enterpriseProjectId = listAddressGroupsDependencyRequest['enterprise_project_id'];
|
|
5625
|
+
}
|
|
5626
|
+
}
|
|
5627
|
+
if (id !== null && id !== undefined) {
|
|
5628
|
+
localVarQueryParameter['id'] = id;
|
|
5629
|
+
}
|
|
5630
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
5631
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
5632
|
+
}
|
|
5633
|
+
options.queryParams = localVarQueryParameter;
|
|
5634
|
+
options.headers = localVarHeaderParameter;
|
|
5635
|
+
return options;
|
|
5636
|
+
},
|
|
5202
5637
|
/**
|
|
5203
5638
|
* 查询地址组详情。
|
|
5204
5639
|
*
|