tccli 3.0.1240.1__py2.py3-none-any.whl → 3.0.1242.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +276 -279
- tccli/services/apm/v20210622/examples.json +30 -30
- tccli/services/autoscaling/v20180419/api.json +12 -1
- tccli/services/batch/v20170312/api.json +11 -11
- tccli/services/bh/v20230418/api.json +9 -0
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/billing/v20180709/api.json +20 -0
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/car/v20220110/api.json +1 -1
- tccli/services/car/v20220110/examples.json +3 -3
- tccli/services/cdb/v20170320/api.json +582 -579
- tccli/services/cdb/v20170320/examples.json +9 -9
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/v20210820/api.json +11 -0
- tccli/services/cfs/v20190719/api.json +20 -20
- tccli/services/cfs/v20190719/examples.json +5 -5
- tccli/services/chdfs/v20201112/api.json +10 -10
- tccli/services/chdfs/v20201112/examples.json +1 -1
- tccli/services/ckafka/v20190819/api.json +27 -0
- tccli/services/clb/v20180317/api.json +84 -64
- tccli/services/cls/cls_client.py +220 -8
- tccli/services/cls/v20201016/api.json +418 -40
- tccli/services/cls/v20201016/examples.json +89 -45
- tccli/services/cmq/v20190304/api.json +77 -77
- tccli/services/cvm/cvm_client.py +60 -325
- tccli/services/cvm/v20170312/api.json +618 -1401
- tccli/services/cvm/v20170312/examples.json +8 -48
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +3 -37
- tccli/services/cwp/v20180228/examples.json +2 -10
- tccli/services/cynosdb/v20190107/api.json +470 -476
- tccli/services/cynosdb/v20190107/examples.json +23 -23
- tccli/services/dbbrain/v20191016/api.json +16 -4
- tccli/services/dbbrain/v20191016/examples.json +5 -5
- tccli/services/dbbrain/v20210527/api.json +45 -45
- tccli/services/dbbrain/v20210527/examples.json +8 -8
- tccli/services/dnspod/v20210323/api.json +173 -119
- tccli/services/dnspod/v20210323/examples.json +18 -18
- tccli/services/dts/v20180330/api.json +30 -30
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +19 -9
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/ecm/v20190719/api.json +55 -48
- tccli/services/ecm/v20190719/examples.json +7 -7
- tccli/services/emr/emr_client.py +493 -16
- tccli/services/emr/v20190103/api.json +1323 -246
- tccli/services/emr/v20190103/examples.json +72 -0
- tccli/services/ess/v20201111/api.json +29 -11
- tccli/services/ess/v20201111/examples.json +6 -0
- tccli/services/essbasic/v20210526/api.json +89 -2
- tccli/services/essbasic/v20210526/examples.json +12 -0
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gaap/v20180529/api.json +194 -196
- tccli/services/gaap/v20180529/examples.json +31 -37
- tccli/services/goosefs/v20220519/api.json +17 -17
- tccli/services/goosefs/v20220519/examples.json +4 -4
- tccli/services/gs/v20191118/api.json +3 -3
- tccli/services/gs/v20191118/examples.json +3 -3
- tccli/services/iai/iai_client.py +53 -0
- tccli/services/iai/v20200303/api.json +80 -0
- tccli/services/iai/v20200303/examples.json +14 -0
- tccli/services/iotexplorer/v20190423/api.json +10 -0
- tccli/services/iotvideoindustry/v20201201/api.json +84 -84
- tccli/services/iotvideoindustry/v20201201/examples.json +29 -29
- tccli/services/keewidb/v20220308/api.json +188 -190
- tccli/services/live/v20180801/api.json +324 -223
- tccli/services/live/v20180801/examples.json +79 -79
- tccli/services/mna/v20210119/api.json +52 -49
- tccli/services/mna/v20210119/examples.json +49 -49
- tccli/services/mps/v20190612/api.json +49 -0
- tccli/services/oceanus/v20190422/api.json +407 -39
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ocr/ocr_client.py +110 -4
- tccli/services/ocr/v20181119/api.json +410 -6
- tccli/services/ocr/v20181119/examples.json +18 -2
- tccli/services/pts/v20210728/api.json +1 -1
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/sqlserver/v20180328/api.json +273 -144
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +829 -829
- tccli/services/ssl/v20191205/examples.json +14 -14
- tccli/services/tbaas/v20180416/api.json +127 -88
- tccli/services/tbaas/v20180416/examples.json +9 -9
- tccli/services/tcb/v20180608/api.json +229 -189
- tccli/services/tcb/v20180608/examples.json +23 -23
- tccli/services/tcm/v20210413/api.json +6 -6
- tccli/services/tcm/v20210413/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +25 -20
- tccli/services/tcr/v20190924/examples.json +4 -4
- tccli/services/tdmq/tdmq_client.py +167 -8
- tccli/services/tdmq/v20200217/api.json +325 -0
- tccli/services/tdmq/v20200217/examples.json +24 -0
- tccli/services/tem/v20210701/api.json +439 -280
- tccli/services/tem/v20210701/examples.json +39 -39
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/teo/v20220901/examples.json +3 -3
- tccli/services/thpc/v20211109/api.json +46 -58
- tccli/services/thpc/v20211109/examples.json +2 -2
- tccli/services/thpc/v20220401/api.json +168 -181
- tccli/services/thpc/v20220401/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +99 -102
- tccli/services/thpc/v20230321/examples.json +3 -3
- tccli/services/tke/v20180525/api.json +50 -39
- tccli/services/tke/v20180525/examples.json +51 -21
- tccli/services/tke/v20220501/api.json +146 -97
- tccli/services/tke/v20220501/examples.json +15 -21
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +219 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trro/v20220325/api.json +27 -27
- tccli/services/trro/v20220325/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +31 -20
- tccli/services/trtc/v20190722/examples.json +11 -11
- tccli/services/tse/v20201207/api.json +187 -122
- tccli/services/tse/v20201207/examples.json +36 -36
- tccli/services/tsf/v20180326/api.json +448 -434
- tccli/services/tsf/v20180326/examples.json +122 -122
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +582 -291
- tccli/services/vpc/v20170312/examples.json +75 -27
- tccli/services/vpc/vpc_client.py +159 -0
- tccli/services/waf/v20180125/api.json +305 -6
- tccli/services/waf/v20180125/examples.json +25 -1
- tccli/services/waf/waf_client.py +163 -4
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/RECORD +130 -130
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/license_files/LICENSE +0 -0
@@ -390,7 +390,7 @@
|
|
390
390
|
{
|
391
391
|
"document": "创建对端网关",
|
392
392
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCustomerGateway\n<公共请求参数>\n\n{\n \"IpAddress\": \"58.211.1.12\",\n \"CustomerGatewayName\": \"test-cgw\",\n \"Tags\": [\n {\n \"Value\": \"shanghai\",\n \"Key\": \"city\"\n }\n ]\n}",
|
393
|
-
"output": "{\n \"Response\": {\n \"CustomerGateway\": {\n \"CustomerGatewayId\": \"cgw-mgp33pll\",\n \"
|
393
|
+
"output": "{\n \"Response\": {\n \"CustomerGateway\": {\n \"CustomerGatewayId\": \"cgw-mgp33pll\",\n \"CustomerGatewayName\": \"cgw-name\",\n \"IpAddress\": \"58.21.1.12\",\n \"CreatedTime\": \"2023-05-29 11:28:45\",\n \"BgpAsn\": 141\n },\n \"RequestId\": \"5bd98433-263a-47b6-9a1c-84aa613a8ff6\"\n }\n}",
|
394
394
|
"title": "创建对端网关"
|
395
395
|
}
|
396
396
|
],
|
@@ -747,8 +747,8 @@
|
|
747
747
|
"CreateVpnConnection": [
|
748
748
|
{
|
749
749
|
"document": "创建VPN通道",
|
750
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateVpnConnection\n<公共请求参数>\n\n{\n \"VpnConnectionName\": \"TEST_CONN\",\n \"PreShareKey\": \"
|
751
|
-
"output": "{\n \"Response\": {\n \"VpnConnection\": {\n \"VpcId\": \"vpc-gapcv96p\",\n \"VpnConnectionId\": \"\",\n \"VpnConnectionName\": \"TEST_CONN\",\n \"VpnGatewayId\": \"vpngw-1w9tue3d\",\n \"CustomerGatewayId\": \"cgw-qa9sxpy7\",\n \"State\": \"PENDING\",\n \"PreShareKey\": \"
|
750
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateVpnConnection\n<公共请求参数>\n\n{\n \"VpnConnectionName\": \"TEST_CONN\",\n \"PreShareKey\": \"6325ac\",\n \"VpcId\": \"vpc-gapcv96p\",\n \"Tags\": [\n {\n \"Value\": \"shanghai\",\n \"Key\": \"city\"\n }\n ],\n \"IPSECOptionsSpecification\": {\n \"PfsDhGroup\": \"NULL\",\n \"EncryptAlgorithm\": \"3DES-CBC\",\n \"IntegrityAlgorith\": \"SHA1\"\n },\n \"SecurityPolicyDatabases\": [\n {\n \"LocalCidrBlock\": \"10.8.4.0/24\",\n \"RemoteCidrBlock\": [\n \"58.211.1.0/24\"\n ]\n }\n ],\n \"VpnGatewayId\": \"vpngw-1w9tue3d\",\n \"CustomerGatewayId\": \"cgw-qa9sxpy7\",\n \"IKEOptionsSpecification\": {\n \"IKEVersion\": \"IKEV1\",\n \"RemoteIdentity\": \"ADDRESS\",\n \"PropoAuthenAlgorithm\": \"MD5\",\n \"RemoteAddress\": \"1.2.3.4\",\n \"LocalIdentity\": \"ADDRESS\",\n \"LocalAddress\": \"58.211.2.5\",\n \"ExchangeMode\": \"MAIN\",\n \"PropoEncryAlgorithm\": \"3DES-CBC\",\n \"DhGroupName\": \"GROUP1\"\n }\n}",
|
751
|
+
"output": "{\n \"Response\": {\n \"VpnConnection\": {\n \"VpcId\": \"vpc-gapcv96p\",\n \"VpnConnectionId\": \"vpnx-axc13cega\",\n \"VpnConnectionName\": \"TEST_CONN\",\n \"VpnGatewayId\": \"vpngw-1w9tue3d\",\n \"CustomerGatewayId\": \"cgw-qa9sxpy7\",\n \"State\": \"PENDING\",\n \"PreShareKey\": \"6325ac\",\n \"NegotiationType\": \"active\",\n \"DpdEnable\": -1,\n \"DpdTimeout\": \"30\",\n \"DpdAction\": \"clear\",\n \"VpnProto\": \"IPSEC\",\n \"EncryptProto\": \"IKE\",\n \"RouteType\": \"STATIC\",\n \"CreatedTime\": \"0000-00-00 00:00:00\",\n \"NetStatus\": \"AVAILABLE\",\n \"SecurityPolicyDatabaseSet\": [],\n \"IKEOptionsSpecification\": {\n \"PropoEncryAlgorithm\": \"3DES-CBC\",\n \"PropoAuthenAlgorithm\": \"MD5\",\n \"ExchangeMode\": \"MAIN\",\n \"LocalIdentity\": \"ADDRESS\",\n \"RemoteIdentity\": \"ADDRESS\",\n \"LocalAddress\": \"58.211.2.5\",\n \"RemoteAddress\": \"1.2.3.4\",\n \"LocalFqdnName\": \"local-name\",\n \"RemoteFqdnName\": \"remote-name\",\n \"DhGroupName\": \"GROUP1\",\n \"IKESaLifetimeSeconds\": 86400,\n \"IKEVersion\": \"IKEV1\"\n },\n \"IPSECOptionsSpecification\": {\n \"EncryptAlgorithm\": \"3DES-CBC\",\n \"IntegrityAlgorith\": \"SHA1\",\n \"IPSECSaLifetimeSeconds\": 3600,\n \"IPSECSaLifetimeTraffic\": 1843200,\n \"PfsDhGroup\": \"NULL\"\n },\n \"EnableHealthCheck\": false,\n \"HealthCheckLocalIp\": \"169.254.168.2\",\n \"HealthCheckRemoteIp\": \"169.254.168.1\",\n \"HealthCheckStatus\": \"AVAILABLE\",\n \"TagSet\": []\n },\n \"RequestId\": \"4b71dd4d-a3ee-4ac1-b99a-99d65f6443fd\"\n }\n}",
|
752
752
|
"title": "创建VPN通道"
|
753
753
|
}
|
754
754
|
],
|
@@ -1362,7 +1362,7 @@
|
|
1362
1362
|
{
|
1363
1363
|
"document": "",
|
1364
1364
|
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeCcnRouteTables\n&Filters.0.Name=route-table-id\n&Filters.0.Values.0=ccnrtb-mnvhfmv9\n&Filters.0.Values.1=ccnrtb-3230jx4x\n&Filters.1.Name=route-table-name\n&Filters.1.Values.0=_default_rtb\n&Filters.1.Values.1=rubytest\n&Filters.2.Name=ccn-id\n&Filters.2.Values.0=ccn-8j0phqix\n&<公共请求参数>",
|
1365
|
-
"output": "{\n \"Response\": {\n \"CcnRouteTableSet\": [\n {\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnRouteTableId\": \"ccnrtb-mnvhfmv9\",\n \"RouteTableName\": \"_default_rtb\",\n \"RouteTableDescription\": \"\",\n \"IsDefaultTable\": true,\n \"CreateTime\": \"2021-05-11 15:47:53\"\n },\n {\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnRouteTableId\": \"ccnrtb-3230jx4x\",\n \"RouteTableName\": \"rubytest\",\n \"RouteTableDescription\": \"
|
1365
|
+
"output": "{\n \"Response\": {\n \"CcnRouteTableSet\": [\n {\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnRouteTableId\": \"ccnrtb-mnvhfmv9\",\n \"RouteTableName\": \"_default_rtb\",\n \"RouteTableDescription\": \"table-1\",\n \"IsDefaultTable\": true,\n \"CreateTime\": \"2021-05-11 15:47:53\"\n },\n {\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnRouteTableId\": \"ccnrtb-3230jx4x\",\n \"RouteTableName\": \"rubytest\",\n \"RouteTableDescription\": \"table-2\",\n \"IsDefaultTable\": false,\n \"CreateTime\": \"2021-05-11 16:33:14\"\n }\n ],\n \"TotalCount\": 2,\n \"RequestId\": \"ba7c7681-e051-469a-b0fc-210a373490a4\"\n }\n}",
|
1366
1366
|
"title": "查询接口"
|
1367
1367
|
}
|
1368
1368
|
],
|
@@ -1370,7 +1370,7 @@
|
|
1370
1370
|
{
|
1371
1371
|
"document": "查询云联网路由列表",
|
1372
1372
|
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeCcnRoutes\n&CcnId=ccn-gree226l\n&Filters.0.Name=route-id\n&Filters.0.Values.0=ccnr-bvipc87w\n&Filters.0.Values.1=ccnr-oc61so0o\n&Filters.1.Name=instance-type\n&Filters.1.Values.0=VPC\n&Filters.1.Values.1=DIRECTCONNECT\n&Filters.2.Name=instance-region\n&Filters.2.Values.0=ap-guangzhou\n&Filters.2.Values.1=ap-beijing\n&Filters.2.Values.2=ap-shanghai\n&Filters.2.Values.3=eu-frankfurt\n&Filters.3.Name=instance-id\n&Filters.3.Values.0=vpc-r1ckkpid\n&Filters.3.Values.1=dcg-98qosdc3\n&Filters.4.Name=cidr-block\n&Filters.4.Values.0=10.33.0.0/16\n&Filters.4.Values.1=192.168.0.0/24\n&<公共请求参数>",
|
1373
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"3e866888-83ea-4716-b99b-21592cba6548\",\n \"RouteSet\": [\n {\n \"DestinationCidrBlock\": \"10.33.0.0/16\",\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"RoutePriority\": 1,\n \"InstanceId\": \"vpc-r1ckkpid\",\n \"InstanceUin\": \"234532345\",\n \"Enabled\": true,\n \"InstanceExtraName\": \"
|
1373
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"3e866888-83ea-4716-b99b-21592cba6548\",\n \"RouteSet\": [\n {\n \"DestinationCidrBlock\": \"10.33.0.0/16\",\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"RoutePriority\": 1,\n \"InstanceId\": \"vpc-r1ckkpid\",\n \"InstanceUin\": \"234532345\",\n \"Enabled\": true,\n \"InstanceExtraName\": \"instance-1\",\n \"IsBgp\": true,\n \"InstanceRegion\": \"ap-guangzhou\",\n \"ExtraState\": \"Running\",\n \"RouteId\": \"ccnr-bvipc87w\",\n \"InstanceName\": \"instance-1\",\n \"InstanceType\": \"VPC\"\n },\n {\n \"DestinationCidrBlock\": \"192.168.0.0/24\",\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"RoutePriority\": 1,\n \"InstanceId\": \"vpc-r1ckkpid\",\n \"InstanceName\": \"instance-2\",\n \"Enabled\": true,\n \"InstanceExtraName\": \"instance-2\",\n \"IsBgp\": true,\n \"InstanceRegion\": \"ap-guangzhou\",\n \"ExtraState\": \"Running\",\n \"RouteId\": \"ccnr-oc61so0o\",\n \"InstanceUin\": \"234532345\",\n \"InstanceType\": \"VPC\"\n }\n ]\n }\n}",
|
1374
1374
|
"title": "查询云联网路由列表"
|
1375
1375
|
}
|
1376
1376
|
],
|
@@ -1378,19 +1378,19 @@
|
|
1378
1378
|
{
|
1379
1379
|
"document": "按ID过滤查询CCN列表",
|
1380
1380
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCcns\n<公共请求参数>\n\n{\n \"CcnIds\": [\n \"ccn-8j0phqix\"\n ]\n}",
|
1381
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"73159790-39b3-48e8-9d61-29e11eed1acd\",\n \"CcnSet\": [\n {\n \"InstanceCount\": 1,\n \"TagSet\": [\n {\n \"Value\": \"env\",\n \"Key\": \"
|
1381
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"73159790-39b3-48e8-9d61-29e11eed1acd\",\n \"CcnSet\": [\n {\n \"InstanceCount\": 1,\n \"TagSet\": [\n {\n \"Value\": \"env\",\n \"Key\": \"ccn-1\"\n }\n ],\n \"RoutePriorityFlag\": true,\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnDescription\": \"ccn-1\",\n \"State\": \"AVAILABLE\",\n \"InstanceChargeType\": \"POSTPAID\",\n \"CcnName\": \"ccn-1\",\n \"QosLevel\": \"AU\",\n \"BandwidthLimitType\": \"INTER_REGION_LIMIT\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"RouteTableFlag\": false,\n \"RouteTableCount\": 1,\n \"RouteBroadcastPolicyFlag\": false,\n \"IsSecurityLock\": false\n }\n ]\n }\n}",
|
1382
1382
|
"title": "按ID过滤查询CCN列表"
|
1383
1383
|
},
|
1384
1384
|
{
|
1385
1385
|
"document": "按名称过滤查询CCN列表",
|
1386
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"
|
1387
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"73159790-39b3-48e8-9d61-29e11eed1acd\",\n \"CcnSet\": [\n {\n \"InstanceCount\": 1,\n \"TagSet\": [\n {\n \"Value\": \"env\",\n \"Key\": \"
|
1386
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"ccn-1\"\n ],\n \"Name\": \"ccn-name\"\n }\n ]\n}",
|
1387
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"73159790-39b3-48e8-9d61-29e11eed1acd\",\n \"CcnSet\": [\n {\n \"InstanceCount\": 1,\n \"TagSet\": [\n {\n \"Value\": \"env\",\n \"Key\": \"ccn-1\"\n }\n ],\n \"RoutePriorityFlag\": true,\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnDescription\": \"ccn-1\",\n \"State\": \"AVAILABLE\",\n \"InstanceChargeType\": \"POSTPAID\",\n \"CcnName\": \"ccn-1\",\n \"QosLevel\": \"AU\",\n \"BandwidthLimitType\": \"INTER_REGION_LIMIT\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"RouteTableFlag\": false,\n \"RouteTableCount\": 1,\n \"RouteBroadcastPolicyFlag\": false,\n \"IsSecurityLock\": false\n }\n ]\n }\n}",
|
1388
1388
|
"title": "按名称过滤查询CCN列表"
|
1389
1389
|
},
|
1390
1390
|
{
|
1391
|
-
"document": "查询绑定了标签键值对(env:
|
1392
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"
|
1393
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"73159790-39b3-48e8-9d61-29e11eed1acd\",\n \"CcnSet\": [\n {\n \"InstanceCount\": 1,\n \"TagSet\": [\n {\n \"Value\": \"env\",\n \"Key\": \"
|
1391
|
+
"document": "查询绑定了标签键值对(env:ccn-1)的ccn。",
|
1392
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"ccn-1\"\n ],\n \"Name\": \"tag:ccn-1\"\n }\n ]\n}",
|
1393
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"73159790-39b3-48e8-9d61-29e11eed1acd\",\n \"CcnSet\": [\n {\n \"InstanceCount\": 1,\n \"TagSet\": [\n {\n \"Value\": \"env\",\n \"Key\": \"ccn-1\"\n }\n ],\n \"RoutePriorityFlag\": true,\n \"CcnId\": \"ccn-8j0phqix\",\n \"CcnDescription\": \"ccn-1\",\n \"State\": \"AVAILABLE\",\n \"InstanceChargeType\": \"POSTPAID\",\n \"CcnName\": \"ccn-1\",\n \"QosLevel\": \"AU\",\n \"BandwidthLimitType\": \"INTER_REGION_LIMIT\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"RouteTableFlag\": false,\n \"RouteTableCount\": 1,\n \"RouteBroadcastPolicyFlag\": false,\n \"IsSecurityLock\": false\n }\n ]\n }\n}",
|
1394
1394
|
"title": "查询绑定了标签的CCN列表"
|
1395
1395
|
}
|
1396
1396
|
],
|
@@ -2052,19 +2052,19 @@
|
|
2052
2052
|
{
|
2053
2053
|
"document": "根据ccn-ids过滤查询",
|
2054
2054
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTenantCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"ccn-gyt67ffz\"\n ],\n \"Name\": \"ccn-ids\"\n }\n ]\n}",
|
2055
|
-
"output": "{\n \"Response\": {\n \"CcnSet\": [\n {}\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"ff8a76ff-8900-4169-b126-ff59fdb39b6c\"\n }\n}",
|
2055
|
+
"output": "{\n \"Response\": {\n \"CcnSet\": [\n {\n \"CcnId\": \"ccn-gyt67ffz\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"ff8a76ff-8900-4169-b126-ff59fdb39b6c\"\n }\n}",
|
2056
2056
|
"title": "根据ccn-ids过滤查询"
|
2057
2057
|
},
|
2058
2058
|
{
|
2059
2059
|
"document": "根据user-account-id过滤查询",
|
2060
2060
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTenantCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"1742152960\"\n ],\n \"Name\": \"user-account-id\"\n }\n ]\n}",
|
2061
|
-
"output": "{\n \"Response\": {\n \"CcnSet\": [\n {},\n {},\n {}\n ],\n \"TotalCount\": 3,\n \"RequestId\": \"6c72d2a1-b60c-464e-b782-ca6efe7c1dd6\"\n }\n}",
|
2061
|
+
"output": "{\n \"Response\": {\n \"CcnSet\": [\n {\n \"CcnId\": \"ccn-kwgk02zl\"\n },\n {\n \"CcnId\": \"ccn-gyt67ffz\"\n },\n {\n \"CcnId\": \"ccn-e7wopzfz\"\n }\n ],\n \"TotalCount\": 3,\n \"RequestId\": \"6c72d2a1-b60c-464e-b782-ca6efe7c1dd6\"\n }\n}",
|
2062
2062
|
"title": "根据user-account-id过滤查询"
|
2063
2063
|
},
|
2064
2064
|
{
|
2065
2065
|
"document": "根据is-security-lock过滤查询",
|
2066
2066
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTenantCcns\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"false\"\n ],\n \"Name\": \"is-security-lock\"\n }\n ]\n}",
|
2067
|
-
"output": "{\n \"Response\": {\n \"CcnSet\": [\n {},\n {},\n {},\n {}\n ],\n \"TotalCount\": 5,\n \"RequestId\": \"495efea0-0073-451c-a577-77a23626432c\"\n }\n}",
|
2067
|
+
"output": "{\n \"Response\": {\n \"CcnSet\": [\n {\n \"CcnId\": \"ccn-d0s0mkw1\"\n },\n {\n \"CcnId\": \"ccn-kwgk02zl\"\n },\n {\n \"CcnId\": \"ccn-gyt67ffz\"\n },\n {\n \"CcnId\": \"ccn-e7wopzfz\"\n }\n ],\n \"TotalCount\": 5,\n \"RequestId\": \"495efea0-0073-451c-a577-77a23626432c\"\n }\n}",
|
2068
2068
|
"title": "根据is-security-lock过滤查询"
|
2069
2069
|
}
|
2070
2070
|
],
|
@@ -2190,7 +2190,7 @@
|
|
2190
2190
|
{
|
2191
2191
|
"document": "查询VPN通道",
|
2192
2192
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVpnConnections\n<公共请求参数>\n\n{\n \"Limit\": \"5\",\n \"Offset\": \"0\"\n}",
|
2193
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"VpnConnectionSet\": [\n {\n \"VpcId\": \"vpc-8ro3x6md\",\n \"VpnConnectionId\": \"vpnx-df9oztok\",\n \"VpnConnectionName\": \"testcon-1\",\n \"VpnGatewayId\": \"vpngw-6x0wxvtp\",\n \"CustomerGatewayId\": \"cgw-apytvc1n\",\n \"PreShareKey\": \"
|
2193
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"VpnConnectionSet\": [\n {\n \"VpcId\": \"vpc-8ro3x6md\",\n \"VpnConnectionId\": \"vpnx-df9oztok\",\n \"VpnConnectionName\": \"testcon-1\",\n \"VpnGatewayId\": \"vpngw-6x0wxvtp\",\n \"CustomerGatewayId\": \"cgw-apytvc1n\",\n \"PreShareKey\": \"xqwe123s\",\n \"VpnProto\": \"IPSEC\",\n \"EncryptProto\": \"IKE\",\n \"RouteType\": \"StaticRoute\",\n \"IKEOptionsSpecification\": {\n \"PropoAuthenAlgorithm\": \"MD5\",\n \"PropoEncryAlgorithm\": \"AES-CBC-128\",\n \"ExchangeMode\": \"MAIN\",\n \"LocalIdentity\": \"ADDRESS\",\n \"RemoteIdentity\": \"ADDRESS\",\n \"LocalAddress\": \"6.6.6.6\",\n \"RemoteAddress\": \"1.1.3.2\",\n \"LocalFqdnName\": \"localname\",\n \"RemoteFqdnName\": \"remotename\",\n \"DhGroupName\": \"GROUP1\",\n \"IKESaLifetimeSeconds\": 86400,\n \"IKEVersion\": \"IKEV1\"\n },\n \"IPSECOptionsSpecification\": {\n \"EncryptAlgorithm\": \"AES-CBC-128\",\n \"IntegrityAlgorith\": \"MD5\",\n \"PfsDhGroup\": \"NULL\",\n \"IPSECSaLifetimeSeconds\": 3600,\n \"IPSECSaLifetimeTraffic\": 1843200\n },\n \"CreatedTime\": \"2022-07-22 14:05:07\",\n \"SecurityPolicyDatabaseSet\": [\n {\n \"LocalCidrBlock\": \"0.0.0.0/0\",\n \"RemoteCidrBlock\": [\n \"0.0.0.0/0\"\n ]\n }\n ],\n \"State\": \"AVAILABLE\",\n \"NetStatus\": \"AVAILABLE\",\n \"NegotiationType\": \"flowTrigger\",\n \"DpdEnable\": 1,\n \"DpdTimeout\": \"30\",\n \"DpdAction\": \"clear\",\n \"EnableHealthCheck\": false,\n \"HealthCheckLocalIp\": \"169.254.128.1\",\n \"HealthCheckRemoteIp\": \"169.254.128.2\",\n \"HealthCheckStatus\": \"AVAILABLE\",\n \"TagSet\": []\n },\n {\n \"VpcId\": \"vpc-8ro3x6md\",\n \"VpnConnectionId\": \"vpnx-eal8tpn2\",\n \"VpnConnectionName\": \"testcon-2\",\n \"VpnGatewayId\": \"vpngw-6x0wxvtp\",\n \"CustomerGatewayId\": \"cgw-876ql2tz\",\n \"PreShareKey\": \"qwe123x\",\n \"VpnProto\": \"IPSEC\",\n \"EncryptProto\": \"IKE\",\n \"RouteType\": \"StaticRoute\",\n \"IKEOptionsSpecification\": {\n \"PropoAuthenAlgorithm\": \"MD5\",\n \"PropoEncryAlgorithm\": \"AES-CBC-128\",\n \"ExchangeMode\": \"MAIN\",\n \"LocalIdentity\": \"ADDRESS\",\n \"RemoteIdentity\": \"ADDRESS\",\n \"LocalAddress\": \"6.6.6.6\",\n \"RemoteAddress\": \"169.168.10.4\",\n \"LocalFqdnName\": \"localname\",\n \"RemoteFqdnName\": \"remotename\",\n \"DhGroupName\": \"GROUP1\",\n \"IKESaLifetimeSeconds\": 86400,\n \"IKEVersion\": \"IKEV1\"\n },\n \"IPSECOptionsSpecification\": {\n \"EncryptAlgorithm\": \"AES-CBC-128\",\n \"IntegrityAlgorith\": \"MD5\",\n \"PfsDhGroup\": \"NULL\",\n \"IPSECSaLifetimeSeconds\": 3600,\n \"IPSECSaLifetimeTraffic\": 1843200\n },\n \"CreatedTime\": \"2022-07-22 14:14:48\",\n \"SecurityPolicyDatabaseSet\": [\n {\n \"LocalCidrBlock\": \"0.0.0.0/0\",\n \"RemoteCidrBlock\": [\n \"0.0.0.0/0\"\n ]\n }\n ],\n \"State\": \"AVAILABLE\",\n \"NetStatus\": \"AVAILABLE\",\n \"NegotiationType\": \"passive\",\n \"DpdEnable\": 1,\n \"DpdTimeout\": \"31\",\n \"DpdAction\": \"clear\",\n \"EnableHealthCheck\": false,\n \"HealthCheckLocalIp\": \"169.254.168.2\",\n \"HealthCheckRemoteIp\": \"169.254.168.1\",\n \"HealthCheckStatus\": \"AVAILABLE\",\n \"TagSet\": []\n }\n ],\n \"RequestId\": \"1f4fa69d-0a9b-4342-83e1-002533feca94\"\n }\n}",
|
2194
2194
|
"title": "DescribeVpnConnections返回示例"
|
2195
2195
|
}
|
2196
2196
|
],
|
@@ -2222,7 +2222,7 @@
|
|
2222
2222
|
{
|
2223
2223
|
"document": "查询SSL-VPN-SERVER",
|
2224
2224
|
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeVpnGatewaySslServers\n&Offset=0\n&Limit=2\n&Filters.0.Name=vpn-gateway-id\n&Filters.0.Values.0=vpngw-0zowp2z9\n&<公共请求参数>",
|
2225
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"1d0c0675-d1cb-4d28-99af-bf093a7d62d2\",\n \"SslVpnSeverSet\": [\n {\n \"VpcId\": \"vpc-1tqv6my1\",\n \"SslVpnServerId\": \"vpns-fofx7shn\",\n \"VpnGatewayId\": \"vpngw-0zowp2z9\",\n \"SslVpnServerName\": \"
|
2225
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1d0c0675-d1cb-4d28-99af-bf093a7d62d2\",\n \"SslVpnSeverSet\": [\n {\n \"VpcId\": \"vpc-1tqv6my1\",\n \"SslVpnServerId\": \"vpns-fofx7shn\",\n \"VpnGatewayId\": \"vpngw-0zowp2z9\",\n \"SslVpnServerName\": \"server-1\",\n \"LocalAddress\": [\n \"10.17.0.0/24\"\n ],\n \"RemoteAddress\": \"10.12.0.0/24\",\n \"MaxConnection\": 5,\n \"WanIp\": \"1.14.55.188\",\n \"SslVpnProtocol\": \"UDP\",\n \"SslVpnPort\": 1194,\n \"EncryptAlgorithm\": \"none\",\n \"IntegrityAlgorithm\": \"none\",\n \"Compress\": 0,\n \"CreateTime\": \"2023-01-11 11:37:41\",\n \"State\": 6,\n \"SsoEnabled\": 0,\n \"SpName\": \"spname\",\n \"EiamApplicationId\": \"\",\n \"AccessPolicyEnabled\": 0,\n \"AccessPolicy\": []\n }\n ],\n \"TotalCount\": 1\n }\n}",
|
2226
2226
|
"title": "查询SSL-VPN-SERVER"
|
2227
2227
|
}
|
2228
2228
|
],
|
@@ -2230,7 +2230,7 @@
|
|
2230
2230
|
{
|
2231
2231
|
"document": "本接口(DescribeVpnGateways)用于查询VPN网关列表。",
|
2232
2232
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVpnGateways\n<公共请求参数>\n\n{\n \"VpnGatewayIds\": [\n \"vpngw-xxxxx\"\n ],\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
2233
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"VpnGatewaySet\": [\n {\n \"VpnGatewayId\": \"vpngw-xxxx\",\n \"VpcId\": \"vpc-xxxx\",\n \"VpnGatewayName\": \"vpn_name\",\n \"Type\": \"CCN\",\n \"State\": \"AVAILABLE\",\n \"PublicIpAddress\": \"142.133.53.16\",\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10,\n \"CreatedTime\": \"2020-09-22 00:00:00\",\n \"ExpiredTime\": \"2020-09-22 00:00:00\",\n \"IsAddressBlocked\": false,\n \"NewPurchasePlan\": \"\",\n \"RestrictState\": \"NORMAL\",\n \"Zone\": \"ap-beijing-1\",\n \"VpnGatewayQuotaSet\": [\n {\n \"Bandwidth\": 5,\n \"Cname\": \"微小型\",\n \"Name\": \"cdmini\"\n },\n {\n \"Bandwidth\": 20,\n \"Cname\": \"中型\",\n \"Name\": \"cdmiddle\"\n },\n {\n \"Bandwidth\": 50,\n \"Cname\": \"大型\",\n \"Name\": \"cdlarge\"\n },\n {\n \"Bandwidth\": 10,\n \"Cname\": \"小型\",\n \"Name\": \"cdsmall\"\n },\n {\n \"Bandwidth\": 100,\n \"Cname\": \"超大型\",\n \"Name\": \"cdsuperLarge\"\n },\n {\n \"Bandwidth\": 1000,\n \"Cname\": \"超大型4\",\n \"Name\": \"cdsuperLarge4\"\n },\n {\n \"Bandwidth\": 200,\n \"Cname\": \"超大型2\",\n \"Name\": \"cdsuperLarge2\"\n },\n {\n \"Bandwidth\": 500,\n \"Cname\": \"超大型3\",\n \"Name\": \"cdsuperLarge3\"\n },\n {\n \"Bandwidth\": 3000,\n \"Cname\": \"超大型5\",\n \"Name\": \"cdsuperLarge5\"\n }\n ],\n \"Version\": \"
|
2233
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"VpnGatewaySet\": [\n {\n \"VpnGatewayId\": \"vpngw-xxxx\",\n \"VpcId\": \"vpc-xxxx\",\n \"VpnGatewayName\": \"vpn_name\",\n \"Type\": \"CCN\",\n \"State\": \"AVAILABLE\",\n \"PublicIpAddress\": \"142.133.53.16\",\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10,\n \"CreatedTime\": \"2020-09-22 00:00:00\",\n \"ExpiredTime\": \"2020-09-22 00:00:00\",\n \"IsAddressBlocked\": false,\n \"NewPurchasePlan\": \"PREPAID_TO_POSTPAID\",\n \"RestrictState\": \"NORMAL\",\n \"Zone\": \"ap-beijing-1\",\n \"VpnGatewayQuotaSet\": [\n {\n \"Bandwidth\": 5,\n \"Cname\": \"微小型\",\n \"Name\": \"cdmini\"\n },\n {\n \"Bandwidth\": 20,\n \"Cname\": \"中型\",\n \"Name\": \"cdmiddle\"\n },\n {\n \"Bandwidth\": 50,\n \"Cname\": \"大型\",\n \"Name\": \"cdlarge\"\n },\n {\n \"Bandwidth\": 10,\n \"Cname\": \"小型\",\n \"Name\": \"cdsmall\"\n },\n {\n \"Bandwidth\": 100,\n \"Cname\": \"超大型\",\n \"Name\": \"cdsuperLarge\"\n },\n {\n \"Bandwidth\": 1000,\n \"Cname\": \"超大型4\",\n \"Name\": \"cdsuperLarge4\"\n },\n {\n \"Bandwidth\": 200,\n \"Cname\": \"超大型2\",\n \"Name\": \"cdsuperLarge2\"\n },\n {\n \"Bandwidth\": 500,\n \"Cname\": \"超大型3\",\n \"Name\": \"cdsuperLarge3\"\n },\n {\n \"Bandwidth\": 3000,\n \"Cname\": \"超大型5\",\n \"Name\": \"cdsuperLarge5\"\n }\n ],\n \"Version\": \"IKEV1\",\n \"NetworkInstanceId\": \"vpngw-xxxx\",\n \"CdcId\": \"cluster-xxxxxxxx\",\n \"MaxConnection\": 5\n }\n ],\n \"RequestId\": \"dc43b486-80aa-4cf0-9f8a-4b95e9092685\"\n }\n}",
|
2234
2234
|
"title": "查询VPN网关"
|
2235
2235
|
}
|
2236
2236
|
],
|
@@ -2396,7 +2396,7 @@
|
|
2396
2396
|
{
|
2397
2397
|
"document": "下载SSL-VPN-CLIENT配置",
|
2398
2398
|
"input": "https://vpc.tencentcloudapi.com/?Action=DownloadVpnGatewaySslClientCert\n&SslVpnClientId=vpnc--84tby4k2\n&<公共请求参数>",
|
2399
|
-
"output": "{\n \"Response\": {\n \"SslClientConfigsSet\": \"
|
2399
|
+
"output": "{\n \"Response\": {\n \"SslClientConfigsSet\": \"{\\\"SslVpnClientConfiguration\\\": \\\"-config-\\\"......}\",\n \"SslClientConfig\": [\n {\n \"SslVpnClientConfiguration\": \"config...\",\n \"SslVpnRootCert\": \"CERTIFICATE...\",\n \"SslVpnKey\": \"PRIVATE KEY...\",\n \"SslVpnCert\": \"CERTIFICATE...\",\n \"SslVpnClientId\": \"vpnc-axa315c\"\n }\n ],\n \"Authenticated\": 1,\n \"RequestId\": \"8e08f027-048b-41e8-ac99-77e954ca15c5\"\n }\n}",
|
2400
2400
|
"title": "下载SSL-VPN-CLIENT配置"
|
2401
2401
|
}
|
2402
2402
|
],
|
@@ -2474,13 +2474,13 @@
|
|
2474
2474
|
{
|
2475
2475
|
"document": "该示例查询CCN地域出带宽详情,其中CCN的付费模式是后付费。后付费计费模式的CCN,用户不需要关注ExpireTime,RenewFlag参数。",
|
2476
2476
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetCcnRegionBandwidthLimits\n<公共请求参数>\n\n{\n \"CcnId\": \"ccn-1pdchck1\"\n}",
|
2477
|
-
"output": "{\n \"Response\": {\n \"CcnBandwidthSet\": [\n {\n \"CcnRegionBandwidthLimit\": {\n \"Region\": \"ap-guangzhou\",\n \"IsBm\": false,\n \"BandwidthLimit\": 10\n },\n \"CcnId\": \"ccn-1pdchck1\",\n \"TagSet\": [\n {\n \"Key\": \"
|
2477
|
+
"output": "{\n \"Response\": {\n \"CcnBandwidthSet\": [\n {\n \"CcnRegionBandwidthLimit\": {\n \"Region\": \"ap-guangzhou\",\n \"DstRegion\": \"ap-beijing\",\n \"IsBm\": false,\n \"DstIsBm\": false,\n \"BandwidthLimit\": 10\n },\n \"CcnId\": \"ccn-1pdchck1\",\n \"DefaultQosBandwidthFlag\": false,\n \"TagSet\": [\n {\n \"Key\": \"ccn-1\",\n \"Value\": \"ccn-1\"\n }\n ],\n \"RegionFlowControlId\": \"fcr-krx0mfoi\",\n \"CreatedTime\": \"2020-05-20 16:29:44\",\n \"ExpiredTime\": \"2020-05-20 16:29:44\",\n \"MarketId\": \"market-xxxxxxxx\",\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"QosLevel\": \"AU\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"639c4bff-ff57-4734-bd72-f543df3b0771\"\n }\n}",
|
2478
2478
|
"title": "查询CCN地域出带宽详情"
|
2479
2479
|
},
|
2480
2480
|
{
|
2481
2481
|
"document": "该示例是查询CCN地域间带宽详情,云联网为预付费,其中返回两个地域间限速实例,限速实例fcr-crrnp6w4续费模式RenewFlag为NOTIFY_AND_MANUAL_RENEW(非自动续费),限速实例fcr-lnfsgh4y续费模式RenewFlag为NOTIFY_AND_AUTO_RENEW(自动续费)。",
|
2482
2482
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetCcnRegionBandwidthLimits\n<公共请求参数>\n\n{\n \"CcnId\": \"ccn-2gxeenq2\"\n}",
|
2483
|
-
"output": "{\n \"Response\": {\n \"CcnBandwidthSet\": [\n {\n \"CcnRegionBandwidthLimit\": {\n \"Region\": \"ap-guangzhou\",\n \"IsBm\": false,\n \"BandwidthLimit\": 1,\n \"DstRegion\": \"ap-shanghai\",\n \"DstIsBm\": false\n },\n \"CcnId\": \"ccn-2gxeenq2\",\n \"TagSet\": [\n {\n \"Key\": \"
|
2483
|
+
"output": "{\n \"Response\": {\n \"CcnBandwidthSet\": [\n {\n \"CcnRegionBandwidthLimit\": {\n \"Region\": \"ap-guangzhou\",\n \"IsBm\": false,\n \"BandwidthLimit\": 1,\n \"DstRegion\": \"ap-shanghai\",\n \"DstIsBm\": false\n },\n \"CcnId\": \"ccn-2gxeenq2\",\n \"DefaultQosBandwidthFlag\": false,\n \"TagSet\": [\n {\n \"Key\": \"ccn-1\",\n \"Value\": \"ccn-1\"\n }\n ],\n \"RegionFlowControlId\": \"fcr-crrnp6w4\",\n \"CreatedTime\": \"2020-06-10 14:48:13\",\n \"ExpiredTime\": \"2020-07-10 15:47:05\",\n \"MarketId\": \"market-xxxxxxxx\",\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"QosLevel\": \"AU\"\n },\n {\n \"CcnRegionBandwidthLimit\": {\n \"Region\": \"ap-nanjing\",\n \"IsBm\": false,\n \"BandwidthLimit\": 1,\n \"DstRegion\": \"ap-chengdu\",\n \"DstIsBm\": false\n },\n \"CcnId\": \"ccn-2gxeenq2\",\n \"DefaultQosBandwidthFlag\": false,\n \"TagSet\": [\n {\n \"Key\": \"ccn-2\",\n \"Value\": \"ccn-2\"\n }\n ],\n \"RegionFlowControlId\": \"fcr-lnfsgh4y\",\n \"CreatedTime\": \"2020-06-10 15:55:29\",\n \"ExpiredTime\": \"2020-07-10 15:55:29\",\n \"MarketId\": \"market-xxxxxxxx\",\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"QosLevel\": \"AU\"\n }\n ],\n \"TotalCount\": 2,\n \"RequestId\": \"39db643d-64ba-456b-91c6-279115682ad2\"\n }\n}",
|
2484
2484
|
"title": "查询CCN地域间带宽详情"
|
2485
2485
|
}
|
2486
2486
|
],
|
@@ -2508,6 +2508,26 @@
|
|
2508
2508
|
"title": "创建专线网关询价输入"
|
2509
2509
|
}
|
2510
2510
|
],
|
2511
|
+
"InquiryPriceAllocateAddresses": [
|
2512
|
+
{
|
2513
|
+
"document": "小时流量计费模式弹性公网IP询价。",
|
2514
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceAllocateAddresses\n<公共请求参数>\n\n{\n \"AddressType\": \"EIP\",\n \"InternetMaxBandwidthOut\": \"1\",\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\"\n}",
|
2515
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"ChargeUnit\": \"HOUR\",\n \"UnitPrice\": 0.8,\n \"DiscountPrice\": 0.8\n }\n },\n \"RequestId\": \"90d508a8-9ee8-4220-9c8e-9faeedce3ab4\"\n }\n}",
|
2516
|
+
"title": "小时流量计费模式弹性公网IP询价"
|
2517
|
+
},
|
2518
|
+
{
|
2519
|
+
"document": "小时带宽计费模式弹性公网IP询价。",
|
2520
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceAllocateAddresses\n<公共请求参数>\n\n{\n \"AddressType\": \"EIP\",\n \"InternetMaxBandwidthOut\": \"1\",\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\"\n}",
|
2521
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"UnitPrice\": 0.063,\n \"DiscountPrice\": 0.063,\n \"ChargeUnit\": \"HOUR\"\n }\n },\n \"RequestId\": \"ebc826be-ec1a-4522-b08f-8da3fe5adedc\"\n }\n}",
|
2522
|
+
"title": "小时带宽计费模式弹性公网IP询价"
|
2523
|
+
},
|
2524
|
+
{
|
2525
|
+
"document": "包月带宽计费模式弹性公网IP询价。",
|
2526
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceAllocateAddresses\n<公共请求参数>\n\n{\n \"AddressChargePrepaid\": {\n \"Period\": 1\n },\n \"AddressType\": \"EIP\",\n \"InternetChargeType\": \"BANDWIDTH_PREPAID_BY_MONTH\",\n \"InternetMaxBandwidthOut\": 1\n}",
|
2527
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"OriginalPrice\": 20,\n \"DiscountPrice\": 20\n }\n },\n \"RequestId\": \"136605f0-ca35-4d22-9b77-e053168fa25f\"\n }\n}",
|
2528
|
+
"title": "包月带宽计费模式弹性公网IP询价"
|
2529
|
+
}
|
2530
|
+
],
|
2511
2531
|
"InquiryPriceCreateVpnGateway": [
|
2512
2532
|
{
|
2513
2533
|
"document": "包年包月询价时输入",
|
@@ -2522,11 +2542,39 @@
|
|
2522
2542
|
"title": "按量计费询价输入"
|
2523
2543
|
}
|
2524
2544
|
],
|
2525
|
-
"
|
2545
|
+
"InquiryPriceModifyAddressesBandwidth": [
|
2546
|
+
{
|
2547
|
+
"document": "小时流量EIP修改带宽询价。",
|
2548
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyAddressesBandwidth\n<公共请求参数>\n\n{\n \"InternetMaxBandwidthOut\": \"2\",\n \"AddressIds\": [\n \"eip-hxlqja90\"\n ]\n}",
|
2549
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"UnitPrice\": 0.8,\n \"DiscountPrice\": 0.8,\n \"ChargeUnit\": \"HOUR\"\n }\n },\n \"RequestId\": \"7daad6af-50de-4df5-8238-0d76c7be62e1\"\n }\n}",
|
2550
|
+
"title": "小时流量EIP修改带宽询价"
|
2551
|
+
},
|
2552
|
+
{
|
2553
|
+
"document": "小时带宽EIP修改带宽询价。",
|
2554
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyAddressesBandwidth\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-3hwtklhj\"\n ],\n \"InternetMaxBandwidthOut\": 5\n}",
|
2555
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"UnitPrice\": 0.315,\n \"DiscountPrice\": 0.315,\n \"ChargeUnit\": \"HOUR\"\n }\n },\n \"RequestId\": \"db071565-27cb-482a-a3fe-1c7bba77e4a9\"\n }\n}",
|
2556
|
+
"title": "小时带宽EIP修改带宽询价"
|
2557
|
+
},
|
2558
|
+
{
|
2559
|
+
"document": "包月带宽EIP调整带宽询价。",
|
2560
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyAddressesBandwidth\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-iu4ml5pp\"\n ],\n \"InternetMaxBandwidthOut\": 5\n}",
|
2561
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"OriginalPrice\": 95,\n \"DiscountPrice\": 95\n }\n },\n \"RequestId\": \"ddf8edf2-0457-4ba7-b2ab-e66e98823cc6\"\n }\n}",
|
2562
|
+
"title": "包月带宽EIP调整带宽询价"
|
2563
|
+
}
|
2564
|
+
],
|
2565
|
+
"InquiryPriceRenewAddresses": [
|
2526
2566
|
{
|
2527
2567
|
"document": "",
|
2528
|
-
"input": "
|
2529
|
-
"output": "{\n \"Response\": {\n \"Price\": {\n \"
|
2568
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewAddresses\n<公共请求参数>\n\n{\n \"AddressIds\": [\n \"eip-iu4ml5pp\"\n ],\n \"AddressChargePrepaid\": {\n \"Period\": 12\n }\n}",
|
2569
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"AddressPrice\": {\n \"OriginalPrice\": 240,\n \"DiscountPrice\": 240\n }\n },\n \"RequestId\": \"84658acc-bdb9-4a3e-a37a-84a2e0c14e44\"\n }\n}",
|
2570
|
+
"title": "包月带宽计费模式EIP续费询价"
|
2571
|
+
}
|
2572
|
+
],
|
2573
|
+
"InquiryPriceRenewVpnGateway": [
|
2574
|
+
{
|
2575
|
+
"document": "包年包月网关续费网关询价输入",
|
2576
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewVpnGateway\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-abcxa123z\",\n \"InstanceChargePrepaid\": {\n \"Period\": 1,\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\"\n }\n}",
|
2577
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 380.0,\n \"DiscountPrice\": 177.4,\n \"UnitPrice\": 0.0,\n \"ChargeUnit\": \"\"\n },\n \"BandwidthPrice\": {\n \"OriginalPrice\": 0.0,\n \"DiscountPrice\": 0.0,\n \"UnitPrice\": 0.0,\n \"ChargeUnit\": \"\"\n }\n },\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
2530
2578
|
"title": "包年包月网关续费网关询价输入"
|
2531
2579
|
}
|
2532
2580
|
],
|
@@ -2681,7 +2729,7 @@
|
|
2681
2729
|
"ModifyCcnRouteTables": [
|
2682
2730
|
{
|
2683
2731
|
"document": "",
|
2684
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=ModifyCcnRouteTables\n&RouteTableInfo.0.RouteTableId=ccnrtb-mnvhfmv9\n&RouteTableInfo.0.Name=rubytest\n&RouteTableInfo.0.Description=
|
2732
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=ModifyCcnRouteTables\n&RouteTableInfo.0.RouteTableId=ccnrtb-mnvhfmv9\n&RouteTableInfo.0.Name=rubytest\n&RouteTableInfo.0.Description=ccnroutetable\n&<公共请求参数>",
|
2685
2733
|
"output": "{\n \"Response\": {\n \"RequestId\": \"ba7c7681-e051-469a-b0fc-210a373490a4\"\n }\n}",
|
2686
2734
|
"title": "修改接口"
|
2687
2735
|
}
|
@@ -3101,7 +3149,7 @@
|
|
3101
3149
|
"ModifyVpnConnectionAttribute": [
|
3102
3150
|
{
|
3103
3151
|
"document": "修改VPN通道",
|
3104
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnConnectionAttribute\n<公共请求参数>\n\n{\n \"VpnConnectionName\": \"test-abc\",\n \"VpnConnectionId\": \"vpnx-abc123x\",\n \"PreShareKey\": \"
|
3152
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnConnectionAttribute\n<公共请求参数>\n\n{\n \"VpnConnectionName\": \"test-abc\",\n \"VpnConnectionId\": \"vpnx-abc123x\",\n \"PreShareKey\": \"qwer12ty\",\n \"EnableHealthCheck\": \"false\"\n}",
|
3105
3153
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b6c8a8c4-ba39-49ca-9b21-66247b7e3ad3\"\n }\n}",
|
3106
3154
|
"title": "修改VPN通道"
|
3107
3155
|
}
|
@@ -3240,8 +3288,8 @@
|
|
3240
3288
|
],
|
3241
3289
|
"RenewVpnGateway": [
|
3242
3290
|
{
|
3243
|
-
"document": "",
|
3244
|
-
"input": "
|
3291
|
+
"document": "续费VPN网关",
|
3292
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewVpnGateway\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-lazly92z\",\n \"InstanceChargePrepaid\": {\n \"Period\": 1,\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\"\n }\n}",
|
3245
3293
|
"output": "{\n \"Response\": {\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
3246
3294
|
"title": "续费VPN网关"
|
3247
3295
|
}
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -7401,6 +7401,58 @@ def doCreateHighPriorityRouteTable(args, parsed_globals):
|
|
7401
7401
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7402
7402
|
|
7403
7403
|
|
7404
|
+
def doInquiryPriceRenewAddresses(args, parsed_globals):
|
7405
|
+
g_param = parse_global_arg(parsed_globals)
|
7406
|
+
|
7407
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7408
|
+
cred = credential.CVMRoleCredential()
|
7409
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7410
|
+
cred = credential.STSAssumeRoleCredential(
|
7411
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7412
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7413
|
+
)
|
7414
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
7415
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7416
|
+
else:
|
7417
|
+
cred = credential.Credential(
|
7418
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7419
|
+
)
|
7420
|
+
http_profile = HttpProfile(
|
7421
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7422
|
+
reqMethod="POST",
|
7423
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7424
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7425
|
+
)
|
7426
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7427
|
+
if g_param[OptionsDefine.Language]:
|
7428
|
+
profile.language = g_param[OptionsDefine.Language]
|
7429
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7430
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
7431
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7432
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7433
|
+
model = models.InquiryPriceRenewAddressesRequest()
|
7434
|
+
model.from_json_string(json.dumps(args))
|
7435
|
+
start_time = time.time()
|
7436
|
+
while True:
|
7437
|
+
rsp = client.InquiryPriceRenewAddresses(model)
|
7438
|
+
result = rsp.to_json_string()
|
7439
|
+
try:
|
7440
|
+
json_obj = json.loads(result)
|
7441
|
+
except TypeError as e:
|
7442
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7443
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7444
|
+
break
|
7445
|
+
cur_time = time.time()
|
7446
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7447
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7448
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7449
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7450
|
+
else:
|
7451
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7452
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7453
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7454
|
+
|
7455
|
+
|
7404
7456
|
def doModifyGatewayFlowQos(args, parsed_globals):
|
7405
7457
|
g_param = parse_global_arg(parsed_globals)
|
7406
7458
|
|
@@ -13017,6 +13069,58 @@ def doCreateServiceTemplate(args, parsed_globals):
|
|
13017
13069
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13018
13070
|
|
13019
13071
|
|
13072
|
+
def doInquiryPriceAllocateAddresses(args, parsed_globals):
|
13073
|
+
g_param = parse_global_arg(parsed_globals)
|
13074
|
+
|
13075
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
13076
|
+
cred = credential.CVMRoleCredential()
|
13077
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
13078
|
+
cred = credential.STSAssumeRoleCredential(
|
13079
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
13080
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
13081
|
+
)
|
13082
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
13083
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
13084
|
+
else:
|
13085
|
+
cred = credential.Credential(
|
13086
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
13087
|
+
)
|
13088
|
+
http_profile = HttpProfile(
|
13089
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
13090
|
+
reqMethod="POST",
|
13091
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
13092
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
13093
|
+
)
|
13094
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
13095
|
+
if g_param[OptionsDefine.Language]:
|
13096
|
+
profile.language = g_param[OptionsDefine.Language]
|
13097
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
13098
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
13099
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
13100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13101
|
+
model = models.InquiryPriceAllocateAddressesRequest()
|
13102
|
+
model.from_json_string(json.dumps(args))
|
13103
|
+
start_time = time.time()
|
13104
|
+
while True:
|
13105
|
+
rsp = client.InquiryPriceAllocateAddresses(model)
|
13106
|
+
result = rsp.to_json_string()
|
13107
|
+
try:
|
13108
|
+
json_obj = json.loads(result)
|
13109
|
+
except TypeError as e:
|
13110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
13111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
13112
|
+
break
|
13113
|
+
cur_time = time.time()
|
13114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
13115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
13116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
13117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
13118
|
+
else:
|
13119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
13120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
13121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13122
|
+
|
13123
|
+
|
13020
13124
|
def doModifyDirectConnectGatewayAttribute(args, parsed_globals):
|
13021
13125
|
g_param = parse_global_arg(parsed_globals)
|
13022
13126
|
|
@@ -15929,6 +16033,58 @@ def doDescribeVpcs(args, parsed_globals):
|
|
15929
16033
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15930
16034
|
|
15931
16035
|
|
16036
|
+
def doInquiryPriceModifyAddressesBandwidth(args, parsed_globals):
|
16037
|
+
g_param = parse_global_arg(parsed_globals)
|
16038
|
+
|
16039
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
16040
|
+
cred = credential.CVMRoleCredential()
|
16041
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
16042
|
+
cred = credential.STSAssumeRoleCredential(
|
16043
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
16044
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
16045
|
+
)
|
16046
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
16047
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
16048
|
+
else:
|
16049
|
+
cred = credential.Credential(
|
16050
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
16051
|
+
)
|
16052
|
+
http_profile = HttpProfile(
|
16053
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
16054
|
+
reqMethod="POST",
|
16055
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
16056
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
16057
|
+
)
|
16058
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
16059
|
+
if g_param[OptionsDefine.Language]:
|
16060
|
+
profile.language = g_param[OptionsDefine.Language]
|
16061
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
16062
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
16063
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
16064
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
16065
|
+
model = models.InquiryPriceModifyAddressesBandwidthRequest()
|
16066
|
+
model.from_json_string(json.dumps(args))
|
16067
|
+
start_time = time.time()
|
16068
|
+
while True:
|
16069
|
+
rsp = client.InquiryPriceModifyAddressesBandwidth(model)
|
16070
|
+
result = rsp.to_json_string()
|
16071
|
+
try:
|
16072
|
+
json_obj = json.loads(result)
|
16073
|
+
except TypeError as e:
|
16074
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
16075
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
16076
|
+
break
|
16077
|
+
cur_time = time.time()
|
16078
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
16079
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
16080
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
16081
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
16082
|
+
else:
|
16083
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
16084
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
16085
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16086
|
+
|
16087
|
+
|
15932
16088
|
def doDescribeHighPriorityRouteTables(args, parsed_globals):
|
15933
16089
|
g_param = parse_global_arg(parsed_globals)
|
15934
16090
|
|
@@ -20138,6 +20294,7 @@ ACTION_MAP = {
|
|
20138
20294
|
"DescribeBandwidthPackageResources": doDescribeBandwidthPackageResources,
|
20139
20295
|
"DescribeVpcPeeringConnections": doDescribeVpcPeeringConnections,
|
20140
20296
|
"CreateHighPriorityRouteTable": doCreateHighPriorityRouteTable,
|
20297
|
+
"InquiryPriceRenewAddresses": doInquiryPriceRenewAddresses,
|
20141
20298
|
"ModifyGatewayFlowQos": doModifyGatewayFlowQos,
|
20142
20299
|
"DescribeRouteConflicts": doDescribeRouteConflicts,
|
20143
20300
|
"DownloadCustomerGatewayConfiguration": doDownloadCustomerGatewayConfiguration,
|
@@ -20246,6 +20403,7 @@ ACTION_MAP = {
|
|
20246
20403
|
"DeleteVpcEndPoint": doDeleteVpcEndPoint,
|
20247
20404
|
"DeleteHighPriorityRoutes": doDeleteHighPriorityRoutes,
|
20248
20405
|
"CreateServiceTemplate": doCreateServiceTemplate,
|
20406
|
+
"InquiryPriceAllocateAddresses": doInquiryPriceAllocateAddresses,
|
20249
20407
|
"ModifyDirectConnectGatewayAttribute": doModifyDirectConnectGatewayAttribute,
|
20250
20408
|
"ModifySubnetAttribute": doModifySubnetAttribute,
|
20251
20409
|
"DescribeSgSnapshotFileContent": doDescribeSgSnapshotFileContent,
|
@@ -20302,6 +20460,7 @@ ACTION_MAP = {
|
|
20302
20460
|
"DescribeNatGateways": doDescribeNatGateways,
|
20303
20461
|
"ResetHighPriorityRoutes": doResetHighPriorityRoutes,
|
20304
20462
|
"DescribeVpcs": doDescribeVpcs,
|
20463
|
+
"InquiryPriceModifyAddressesBandwidth": doInquiryPriceModifyAddressesBandwidth,
|
20305
20464
|
"DescribeHighPriorityRouteTables": doDescribeHighPriorityRouteTables,
|
20306
20465
|
"AcceptAttachCcnInstances": doAcceptAttachCcnInstances,
|
20307
20466
|
"DescribeGatewayFlowQos": doDescribeGatewayFlowQos,
|