tccli 3.0.1217.1__py2.py3-none-any.whl → 3.0.1219.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/command.py +0 -1
- tccli/configure.py +11 -1
- tccli/services/__init__.py +3 -0
- tccli/services/aa/aa_client.py +13 -1
- tccli/services/aai/aai_client.py +13 -1
- tccli/services/acp/acp_client.py +13 -1
- tccli/services/advisor/advisor_client.py +13 -1
- tccli/services/af/af_client.py +13 -1
- tccli/services/af/v20200226/api.json +2 -2
- tccli/services/afc/afc_client.py +13 -1
- tccli/services/aiart/aiart_client.py +13 -1
- tccli/services/ame/ame_client.py +13 -1
- tccli/services/ams/ams_client.py +13 -1
- tccli/services/anicloud/anicloud_client.py +13 -1
- tccli/services/antiddos/antiddos_client.py +13 -1
- tccli/services/apcas/apcas_client.py +13 -1
- tccli/services/ape/ape_client.py +13 -1
- tccli/services/api/api_client.py +13 -1
- tccli/services/apigateway/apigateway_client.py +13 -1
- tccli/services/apm/apm_client.py +13 -1
- tccli/services/asr/asr_client.py +13 -1
- tccli/services/asw/asw_client.py +13 -1
- tccli/services/autoscaling/autoscaling_client.py +13 -1
- tccli/services/ba/ba_client.py +13 -1
- tccli/services/batch/batch_client.py +13 -1
- tccli/services/bda/bda_client.py +13 -1
- tccli/services/bh/bh_client.py +13 -1
- tccli/services/bi/bi_client.py +13 -1
- tccli/services/billing/billing_client.py +13 -1
- tccli/services/billing/v20180709/api.json +176 -181
- tccli/services/billing/v20180709/examples.json +7 -7
- tccli/services/bizlive/bizlive_client.py +13 -1
- tccli/services/bm/bm_client.py +13 -1
- tccli/services/bma/bma_client.py +13 -1
- tccli/services/bmeip/bmeip_client.py +13 -1
- tccli/services/bmlb/bmlb_client.py +13 -1
- tccli/services/bmvpc/bmvpc_client.py +13 -1
- tccli/services/bpaas/bpaas_client.py +13 -1
- tccli/services/bri/bri_client.py +13 -1
- tccli/services/bsca/bsca_client.py +13 -1
- tccli/services/btoe/btoe_client.py +13 -1
- tccli/services/ca/ca_client.py +13 -1
- tccli/services/cam/cam_client.py +13 -1
- tccli/services/captcha/captcha_client.py +13 -1
- tccli/services/car/car_client.py +13 -1
- tccli/services/cat/cat_client.py +13 -1
- tccli/services/cbs/cbs_client.py +13 -1
- tccli/services/ccc/ccc_client.py +13 -1
- tccli/services/cdb/cdb_client.py +13 -1
- tccli/services/cdc/cdc_client.py +13 -1
- tccli/services/cdn/cdn_client.py +13 -1
- tccli/services/cds/cds_client.py +13 -1
- tccli/services/cdwch/cdwch_client.py +13 -1
- tccli/services/cdwdoris/cdwdoris_client.py +13 -1
- tccli/services/cdwpg/cdwpg_client.py +13 -1
- tccli/services/cdz/cdz_client.py +13 -1
- tccli/services/cfg/cfg_client.py +13 -1
- tccli/services/cfs/cfs_client.py +13 -1
- tccli/services/cfw/cfw_client.py +13 -1
- tccli/services/chdfs/chdfs_client.py +13 -1
- tccli/services/ciam/ciam_client.py +13 -1
- tccli/services/cii/cii_client.py +13 -1
- tccli/services/cim/cim_client.py +13 -1
- tccli/services/cis/cis_client.py +13 -1
- tccli/services/ckafka/ckafka_client.py +13 -1
- tccli/services/ckafka/v20190819/api.json +7 -7
- tccli/services/clb/clb_client.py +13 -1
- tccli/services/clb/v20180317/api.json +12 -12
- tccli/services/cloudapp/cloudapp_client.py +13 -1
- tccli/services/cloudaudit/cloudaudit_client.py +13 -1
- tccli/services/cloudhsm/cloudhsm_client.py +13 -1
- tccli/services/cloudstudio/cloudstudio_client.py +13 -1
- tccli/services/cls/cls_client.py +13 -1
- tccli/services/cme/cme_client.py +13 -1
- tccli/services/cmq/cmq_client.py +13 -1
- tccli/services/cms/cms_client.py +13 -1
- tccli/services/config/config_client.py +13 -1
- tccli/services/controlcenter/controlcenter_client.py +13 -1
- tccli/services/cpdp/cpdp_client.py +13 -1
- tccli/services/csip/csip_client.py +13 -1
- tccli/services/csxg/csxg_client.py +13 -1
- tccli/services/cvm/cvm_client.py +13 -1
- tccli/services/cwp/cwp_client.py +13 -1
- tccli/services/cwp/v20180228/api.json +1 -1
- tccli/services/cws/cws_client.py +13 -1
- tccli/services/cynosdb/cynosdb_client.py +13 -1
- tccli/services/dasb/dasb_client.py +13 -1
- tccli/services/dataintegration/dataintegration_client.py +13 -1
- tccli/services/dayu/dayu_client.py +13 -1
- tccli/services/dbbrain/dbbrain_client.py +13 -1
- tccli/services/dbdc/dbdc_client.py +13 -1
- tccli/services/dc/dc_client.py +13 -1
- tccli/services/dcdb/dcdb_client.py +13 -1
- tccli/services/dlc/dlc_client.py +13 -1
- tccli/services/dnspod/dnspod_client.py +13 -1
- tccli/services/domain/domain_client.py +13 -1
- tccli/services/drm/drm_client.py +13 -1
- tccli/services/ds/ds_client.py +13 -1
- tccli/services/dsgc/dsgc_client.py +13 -1
- tccli/services/dtf/dtf_client.py +13 -1
- tccli/services/dts/dts_client.py +13 -1
- tccli/services/eb/eb_client.py +13 -1
- tccli/services/ecc/ecc_client.py +13 -1
- tccli/services/ecdn/ecdn_client.py +13 -1
- tccli/services/ecm/ecm_client.py +13 -1
- tccli/services/eiam/eiam_client.py +13 -1
- tccli/services/eis/eis_client.py +13 -1
- tccli/services/emr/emr_client.py +13 -1
- tccli/services/es/es_client.py +13 -1
- tccli/services/es/v20180416/examples.json +2 -2
- tccli/services/ess/ess_client.py +13 -1
- tccli/services/ess/v20201111/api.json +9 -0
- tccli/services/essbasic/essbasic_client.py +13 -1
- tccli/services/essbasic/v20210526/api.json +9 -0
- tccli/services/facefusion/facefusion_client.py +13 -1
- tccli/services/faceid/faceid_client.py +13 -1
- tccli/services/faceid/v20180301/api.json +2 -2
- tccli/services/fmu/fmu_client.py +13 -1
- tccli/services/ft/ft_client.py +13 -1
- tccli/services/gaap/gaap_client.py +13 -1
- tccli/services/gme/gme_client.py +13 -1
- tccli/services/goosefs/goosefs_client.py +13 -1
- tccli/services/gpm/gpm_client.py +13 -1
- tccli/services/gs/gs_client.py +13 -1
- tccli/services/gse/gse_client.py +13 -1
- tccli/services/gwlb/gwlb_client.py +13 -1
- tccli/services/habo/habo_client.py +13 -1
- tccli/services/hai/hai_client.py +13 -1
- tccli/services/hasim/hasim_client.py +13 -1
- tccli/services/hcm/hcm_client.py +13 -1
- tccli/services/hunyuan/hunyuan_client.py +13 -1
- tccli/services/iai/iai_client.py +13 -1
- tccli/services/iai/v20180301/api.json +17 -13
- tccli/services/iai/v20200303/examples.json +200 -200
- tccli/services/iap/__init__.py +4 -0
- tccli/services/iap/iap_client.py +472 -0
- tccli/services/iap/v20240713/api.json +471 -0
- tccli/services/iap/v20240713/examples.json +59 -0
- tccli/services/ic/ic_client.py +13 -1
- tccli/services/icr/icr_client.py +13 -1
- tccli/services/ie/ie_client.py +13 -1
- tccli/services/iecp/iecp_client.py +13 -1
- tccli/services/ig/ig_client.py +13 -1
- tccli/services/iir/iir_client.py +13 -1
- tccli/services/ims/ims_client.py +13 -1
- tccli/services/ioa/ioa_client.py +13 -1
- tccli/services/iot/iot_client.py +13 -1
- tccli/services/iotcloud/iotcloud_client.py +13 -1
- tccli/services/iotexplorer/iotexplorer_client.py +13 -1
- tccli/services/iottid/iottid_client.py +13 -1
- tccli/services/iotvideo/iotvideo_client.py +13 -1
- tccli/services/iotvideoindustry/iotvideoindustry_client.py +13 -1
- tccli/services/irp/irp_client.py +13 -1
- tccli/services/iss/iss_client.py +13 -1
- tccli/services/ivld/ivld_client.py +13 -1
- tccli/services/keewidb/keewidb_client.py +13 -1
- tccli/services/kms/kms_client.py +13 -1
- tccli/services/lcic/lcic_client.py +13 -1
- tccli/services/lcic/v20220817/api.json +3 -3
- tccli/services/lighthouse/lighthouse_client.py +13 -1
- tccli/services/live/live_client.py +441 -5
- tccli/services/live/v20180801/api.json +1070 -68
- tccli/services/live/v20180801/examples.json +64 -0
- tccli/services/lke/lke_client.py +13 -1
- tccli/services/lowcode/lowcode_client.py +13 -1
- tccli/services/lp/lp_client.py +13 -1
- tccli/services/mall/mall_client.py +13 -1
- tccli/services/mariadb/mariadb_client.py +13 -1
- tccli/services/market/market_client.py +13 -1
- tccli/services/market/v20191010/api.json +4 -4
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/memcached/memcached_client.py +13 -1
- tccli/services/mgobe/mgobe_client.py +13 -1
- tccli/services/mmps/mmps_client.py +13 -1
- tccli/services/mna/mna_client.py +13 -1
- tccli/services/mongodb/mongodb_client.py +13 -1
- tccli/services/monitor/monitor_client.py +13 -1
- tccli/services/mps/mps_client.py +13 -1
- tccli/services/mps/v20190612/api.json +20 -0
- tccli/services/mqtt/mqtt_client.py +13 -1
- tccli/services/mrs/mrs_client.py +13 -1
- tccli/services/ms/ms_client.py +13 -1
- tccli/services/msp/msp_client.py +13 -1
- tccli/services/mvj/mvj_client.py +13 -1
- tccli/services/nlp/nlp_client.py +13 -1
- tccli/services/npp/npp_client.py +13 -1
- tccli/services/oceanus/oceanus_client.py +13 -1
- tccli/services/ocr/ocr_client.py +13 -1
- tccli/services/omics/omics_client.py +13 -1
- tccli/services/organization/organization_client.py +13 -1
- tccli/services/partners/partners_client.py +13 -1
- tccli/services/partners/v20180321/api.json +4 -4
- tccli/services/pds/pds_client.py +13 -1
- tccli/services/postgres/postgres_client.py +13 -1
- tccli/services/privatedns/privatedns_client.py +13 -1
- tccli/services/pts/pts_client.py +13 -1
- tccli/services/pts/v20210728/api.json +3 -0
- tccli/services/rce/rce_client.py +13 -1
- tccli/services/redis/redis_client.py +13 -1
- tccli/services/redis/v20180412/api.json +169 -163
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/region/region_client.py +13 -1
- tccli/services/rkp/rkp_client.py +13 -1
- tccli/services/rp/rp_client.py +13 -1
- tccli/services/rum/rum_client.py +13 -1
- tccli/services/scf/scf_client.py +13 -1
- tccli/services/ses/ses_client.py +13 -1
- tccli/services/smh/smh_client.py +13 -1
- tccli/services/smop/smop_client.py +13 -1
- tccli/services/smpn/smpn_client.py +13 -1
- tccli/services/sms/sms_client.py +13 -1
- tccli/services/soe/soe_client.py +13 -1
- tccli/services/solar/solar_client.py +13 -1
- tccli/services/sqlserver/sqlserver_client.py +13 -1
- tccli/services/ssa/ssa_client.py +13 -1
- tccli/services/ssl/ssl_client.py +13 -1
- tccli/services/sslpod/sslpod_client.py +13 -1
- tccli/services/ssm/ssm_client.py +13 -1
- tccli/services/sts/sts_client.py +13 -1
- tccli/services/svp/svp_client.py +13 -1
- tccli/services/svp/v20240125/api.json +27 -27
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/taf/taf_client.py +13 -1
- tccli/services/tag/tag_client.py +13 -1
- tccli/services/tan/tan_client.py +13 -1
- tccli/services/tat/tat_client.py +13 -1
- tccli/services/tat/v20201028/api.json +5 -5
- tccli/services/tav/tav_client.py +13 -1
- tccli/services/tbaas/tbaas_client.py +13 -1
- tccli/services/tbm/tbm_client.py +13 -1
- tccli/services/tbp/tbp_client.py +13 -1
- tccli/services/tcaplusdb/tcaplusdb_client.py +13 -1
- tccli/services/tcb/tcb_client.py +13 -1
- tccli/services/tcbr/tcbr_client.py +13 -1
- tccli/services/tcex/tcex_client.py +13 -1
- tccli/services/tchd/tchd_client.py +13 -1
- tccli/services/tci/tci_client.py +13 -1
- tccli/services/tcm/tcm_client.py +13 -1
- tccli/services/tcr/tcr_client.py +13 -1
- tccli/services/tcss/tcss_client.py +13 -1
- tccli/services/tdcpg/tdcpg_client.py +13 -1
- tccli/services/tdid/tdid_client.py +13 -1
- tccli/services/tdmq/tdmq_client.py +13 -1
- tccli/services/tdmq/v20200217/api.json +1 -1
- tccli/services/tds/tds_client.py +13 -1
- tccli/services/tem/tem_client.py +13 -1
- tccli/services/teo/teo_client.py +13 -1
- tccli/services/thpc/thpc_client.py +13 -1
- tccli/services/tia/tia_client.py +13 -1
- tccli/services/tic/tic_client.py +13 -1
- tccli/services/ticm/ticm_client.py +13 -1
- tccli/services/tics/tics_client.py +13 -1
- tccli/services/tiems/tiems_client.py +13 -1
- tccli/services/tiia/tiia_client.py +13 -1
- tccli/services/tione/tione_client.py +13 -1
- tccli/services/tiw/tiw_client.py +13 -1
- tccli/services/tke/tke_client.py +13 -1
- tccli/services/tke/v20220501/api.json +2 -2
- tccli/services/tkgdq/tkgdq_client.py +13 -1
- tccli/services/tms/tms_client.py +13 -1
- tccli/services/tmt/tmt_client.py +13 -1
- tccli/services/tourism/tourism_client.py +13 -1
- tccli/services/trdp/trdp_client.py +13 -1
- tccli/services/trocket/trocket_client.py +13 -1
- tccli/services/trp/trp_client.py +13 -1
- tccli/services/trro/trro_client.py +13 -1
- tccli/services/trtc/trtc_client.py +13 -1
- tccli/services/tse/tse_client.py +13 -1
- tccli/services/tse/v20201207/api.json +199 -12
- tccli/services/tsf/tsf_client.py +13 -1
- tccli/services/tsi/tsi_client.py +13 -1
- tccli/services/tsw/tsw_client.py +13 -1
- tccli/services/tts/tts_client.py +13 -1
- tccli/services/ump/ump_client.py +13 -1
- tccli/services/vcg/v20240404/api.json +1 -1
- tccli/services/vcg/v20240404/examples.json +4 -4
- tccli/services/vcg/vcg_client.py +13 -1
- tccli/services/vclm/vclm_client.py +13 -1
- tccli/services/vdb/vdb_client.py +13 -1
- tccli/services/vm/vm_client.py +13 -1
- tccli/services/vms/vms_client.py +13 -1
- tccli/services/vod/vod_client.py +13 -1
- tccli/services/vpc/v20170312/api.json +492 -66
- tccli/services/vpc/v20170312/examples.json +59 -21
- tccli/services/vpc/vpc_client.py +225 -1
- tccli/services/vrs/vrs_client.py +13 -1
- tccli/services/vtc/vtc_client.py +13 -1
- tccli/services/waf/waf_client.py +13 -1
- tccli/services/wav/wav_client.py +13 -1
- tccli/services/wedata/wedata_client.py +13 -1
- tccli/services/weilingwith/weilingwith_client.py +13 -1
- tccli/services/wss/wss_client.py +13 -1
- tccli/services/yinsuda/yinsuda_client.py +13 -1
- tccli/services/youmall/youmall_client.py +13 -1
- tccli/services/yunjing/yunjing_client.py +13 -1
- tccli/services/yunsou/yunsou_client.py +13 -1
- tccli/utils.py +8 -0
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/RECORD +303 -299
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/license_files/LICENSE +0 -0
@@ -281,20 +281,20 @@
|
|
281
281
|
"CloneSecurityGroup": [
|
282
282
|
{
|
283
283
|
"document": "克隆安全组",
|
284
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=CloneSecurityGroup\n&SecurityGroupId=sg-
|
285
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroup\": {\n \"SecurityGroupId\": \"sg-
|
284
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=CloneSecurityGroup\n&SecurityGroupId=sg-78ysaex1\n&<公共请求参数>",
|
285
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroup\": {\n \"SecurityGroupId\": \"sg-4esrjvgl\",\n \"SecurityGroupName\": \"demo\",\n \"SecurityGroupDesc\": \"demo\",\n \"ProjectId\": \"0\",\n \"CreatedTime\": \"2018-01-13 19:26:33\",\n \"TagSet\": [\n {\n \"Key\": \"city\",\n \"Value\": \"shanghai\"\n }\n ],\n \"UpdateTime\": \"2018-02-13 19:26:33\",\n \"IsDefault\": false\n }\n }\n}",
|
286
286
|
"title": "克隆安全组"
|
287
287
|
},
|
288
288
|
{
|
289
289
|
"document": "克隆安全组,指定项目ID",
|
290
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=CloneSecurityGroup\n&SecurityGroupId=sg-
|
291
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroup\": {\n \"SecurityGroupId\": \"sg-
|
290
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=CloneSecurityGroup\n&SecurityGroupId=sg-78ysaex1\n&ProjectId=1001\n&<公共请求参数>",
|
291
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroup\": {\n \"SecurityGroupId\": \"sg-2edhcclz\",\n \"SecurityGroupName\": \"demo\",\n \"SecurityGroupDesc\": \"demo\",\n \"ProjectId\": \"1001\",\n \"CreatedTime\": \"2018-01-13 19:26:33\",\n \"TagSet\": [\n {\n \"Key\": \"city\",\n \"Value\": \"shanghai\"\n }\n ],\n \"UpdateTime\": \"2018-02-13 19:26:33\",\n \"IsDefault\": false\n }\n }\n}",
|
292
292
|
"title": "克隆安全组,指定项目ID"
|
293
293
|
},
|
294
294
|
{
|
295
295
|
"document": "克隆安全组,指定名称和备注",
|
296
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=CloneSecurityGroup\n&SecurityGroupId=sg-
|
297
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroup\": {\n \"SecurityGroupId\": \"sg-
|
296
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=CloneSecurityGroup\n&SecurityGroupId=sg-78ysaex1\n&GroupName=demo\n&GroupDescription=demo\n&<公共请求参数>",
|
297
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroup\": {\n \"SecurityGroupId\": \"sg-f42uhpkj\",\n \"SecurityGroupName\": \"demo\",\n \"SecurityGroupDesc\": \"demo\",\n \"ProjectId\": \"0\",\n \"CreatedTime\": \"2018-01-13 19:26:33\",\n \"TagSet\": [\n {\n \"Key\": \"city\",\n \"Value\": \"shanghai\"\n }\n ],\n \"UpdateTime\": \"2018-02-13 19:26:33\",\n \"IsDefault\": false\n }\n }\n}",
|
298
298
|
"title": "克隆安全组,指定名称和备注"
|
299
299
|
}
|
300
300
|
],
|
@@ -326,7 +326,7 @@
|
|
326
326
|
{
|
327
327
|
"document": "创建辅助CIDR",
|
328
328
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAssistantCidr\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-12345678\",\n \"CidrBlocks\": [\n \"172.16.0.0/24\"\n ]\n}",
|
329
|
-
"output": "{\n \"Response\": {\n \"AssistantCidrSet\": [\n {\n \"VpcId\": \"vpc-12345678\",\n \"CidrBlock\": \"172.16.0.0/24\",\n \"AssistantType\": 0\n }\n ],\n \"RequestId\": \"6aa316a4-07d2-4355-b87d-40b7f22972b0\"\n }\n}",
|
329
|
+
"output": "{\n \"Response\": {\n \"AssistantCidrSet\": [\n {\n \"VpcId\": \"vpc-12345678\",\n \"CidrBlock\": \"172.16.0.0/24\",\n \"AssistantType\": 0,\n \"SubnetSet\": []\n }\n ],\n \"RequestId\": \"6aa316a4-07d2-4355-b87d-40b7f22972b0\"\n }\n}",
|
330
330
|
"title": "创建辅助CIDR"
|
331
331
|
}
|
332
332
|
],
|
@@ -586,6 +586,14 @@
|
|
586
586
|
"title": "创建私网NAT网关源端转换规则"
|
587
587
|
}
|
588
588
|
],
|
589
|
+
"CreateReserveIpAddresses": [
|
590
|
+
{
|
591
|
+
"document": "指定个数,申请自动分配的保留 IP",
|
592
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateReserveIpAddresses\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-mcqaoy0f\",\n \"IpAddressCount\": 2,\n \"Name\": \"name_ivan\",\n \"Description\": \"desc_ivan\"\n}",
|
593
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"14c27c62-fc90-4922-a20c-fca60c6b5330\",\n \"ReserveIpAddressSet\": [\n {\n \"CreatedTime\": \"2024-11-21 16:57:22\",\n \"Description\": \"desc_ivan\",\n \"IpType\": 0,\n \"Name\": \"name_ivan\",\n \"ReserveIpAddress\": \"10.0.5.99\",\n \"ReserveIpId\": \"rsvip-eaq2f4pc\",\n \"ResourceId\": \"\",\n \"State\": \"UnBind\",\n \"VpcId\": \"vpc-mcqaoy0f\"\n },\n {\n \"CreatedTime\": \"2024-11-21 16:57:22\",\n \"Description\": \"desc_ivan\",\n \"IpType\": 0,\n \"Name\": \"name_ivan\",\n \"ReserveIpAddress\": \"10.0.5.50\",\n \"ReserveIpId\": \"rsvip-2g134x24\",\n \"ResourceId\": \"\",\n \"State\": \"UnBind\",\n \"VpcId\": \"vpc-mcqaoy0f\"\n }\n ]\n }\n}",
|
594
|
+
"title": "指定个数,申请自动分配的保留 IP"
|
595
|
+
}
|
596
|
+
],
|
589
597
|
"CreateRouteTable": [
|
590
598
|
{
|
591
599
|
"document": "创建路由表",
|
@@ -613,7 +621,7 @@
|
|
613
621
|
"CreateSecurityGroupPolicies": [
|
614
622
|
{
|
615
623
|
"document": "安全组添加出站规则",
|
616
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSecurityGroupPolicies\n<公共请求参数>\n\n{\n \"SecurityGroupId\": \"sg-ohuuioma\",\n \"SecurityGroupPolicySet\": {\n \"Ingress\": [\n {\n \"PolicyIndex\": 0,\n \"Protocol\": \"All\",\n \"PolicyDescription\": \"
|
624
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSecurityGroupPolicies\n<公共请求参数>\n\n{\n \"SecurityGroupId\": \"sg-ohuuioma\",\n \"SecurityGroupPolicySet\": {\n \"Ingress\": [\n {\n \"PolicyIndex\": 0,\n \"Protocol\": \"All\",\n \"PolicyDescription\": \"demo\",\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-o8w64jdg\",\n \"AddressId\": \"ipm-ngk4c2dw\"\n },\n \"Ipv6CidrBlock\": \"::/0\",\n \"SecurityGroupId\": \"sg-ohuuioma\",\n \"ModifyTime\": \"2020-12-03 16:12:15\",\n \"Action\": \"accept\",\n \"ServiceTemplate\": {\n \"ServiceGroupId\": \"sg-ohuuioma\",\n \"ServiceId\": \"ppm-f5n1f8da\"\n },\n \"CidrBlock\": \"0.0.0.0/0\",\n \"Port\": \"80\"\n }\n ],\n \"Egress\": [\n {\n \"PolicyIndex\": 0,\n \"Protocol\": \"All\",\n \"PolicyDescription\": \"demo\",\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-o8w64jdg\",\n \"AddressId\": \"ipm-ngk4c2dw\"\n },\n \"Ipv6CidrBlock\": \"::/0\",\n \"SecurityGroupId\": \"sg-ohuuioma\",\n \"ModifyTime\": \"2020-12-03 16:12:15\",\n \"Action\": \"accept\",\n \"ServiceTemplate\": {\n \"ServiceGroupId\": \"sg-ohuuioma\",\n \"ServiceId\": \"ppm-f5n1f8da\"\n },\n \"CidrBlock\": \"0.0.0.0/0\",\n \"Port\": \"80\"\n }\n ]\n }\n}",
|
617
625
|
"output": "{\n \"Response\": {\n \"RequestId\": \"53ee3ed3-c9ed-48ba-8a57-8624b9c0d3b8\"\n }\n}",
|
618
626
|
"title": "安全组添加出站规则"
|
619
627
|
}
|
@@ -1006,6 +1014,14 @@
|
|
1006
1014
|
"title": "删除私网NAT网关源端转换规则"
|
1007
1015
|
}
|
1008
1016
|
],
|
1017
|
+
"DeleteReserveIpAddresses": [
|
1018
|
+
{
|
1019
|
+
"document": "删除内网保留IP",
|
1020
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReserveIpAddresses\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-mcqaoy0f\",\n \"ReserveIpIds\": [\n \"rsvip-calhlymy\"\n ]\n}",
|
1021
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"116b4d96-f745-4173-bee5-c464a4363757\"\n }\n}",
|
1022
|
+
"title": "删除内网保留IP"
|
1023
|
+
}
|
1024
|
+
],
|
1009
1025
|
"DeleteRouteTable": [
|
1010
1026
|
{
|
1011
1027
|
"document": "删除路由表",
|
@@ -1258,7 +1274,7 @@
|
|
1258
1274
|
{
|
1259
1275
|
"document": "查询辅助CIDR列表",
|
1260
1276
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssistantCidr\n<公共请求参数>\n\n{}",
|
1261
|
-
"output": "{\n \"Response\": {\n \"AssistantCidrSet\": [\n {\n \"VpcId\": \"vpc-
|
1277
|
+
"output": "{\n \"Response\": {\n \"AssistantCidrSet\": [\n {\n \"VpcId\": \"vpc-6v2ht8q5\",\n \"CidrBlock\": \"10.10.0.0/24\",\n \"AssistantType\": 0,\n \"SubnetSet\": []\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"c65ffbe5-512a-44fd-9611-99d12f4e565d\"\n }\n}",
|
1262
1278
|
"title": "查询辅助CIDR列表"
|
1263
1279
|
}
|
1264
1280
|
],
|
@@ -1450,19 +1466,19 @@
|
|
1450
1466
|
{
|
1451
1467
|
"document": "",
|
1452
1468
|
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeDhcpIps\n&<公共请求参数>",
|
1453
|
-
"output": "{\n \"Response\": {\n \"DhcpIpSet\": [\n {\n \"DhcpIpId\": \"dhcpip-
|
1469
|
+
"output": "{\n \"Response\": {\n \"DhcpIpSet\": [\n {\n \"DhcpIpId\": \"dhcpip-pxir56ns\",\n \"DhcpIpName\": \"demo\",\n \"PrivateIpAddress\": \"10.0.0.13\",\n \"VpcId\": \"vpc-n0yejvje\",\n \"SubnetId\": \"subnet-hj3he929\",\n \"NetworkInterfaceId\": \"\",\n \"InstanceId\": \"\",\n \"AddressIp\": \"\",\n \"State\": \"UNBIND\",\n \"CreatedTime\": \"2018-10-10 17:03:09\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"fcb47621-838b-428e-8c33-6e210d93c451\"\n }\n}",
|
1454
1470
|
"title": "查询DhcpIp列表"
|
1455
1471
|
},
|
1456
1472
|
{
|
1457
1473
|
"document": "",
|
1458
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeDhcpIps\n&Filters.0.Name=dhcpip-id\n&Filters.0.Values.0=dhcpip-
|
1459
|
-
"output": "{\n \"Response\": {\n \"DhcpIpSet\": [\n {\n \"DhcpIpId\": \"dhcpip-
|
1474
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeDhcpIps\n&Filters.0.Name=dhcpip-id\n&Filters.0.Values.0=dhcpip-pxir56ns\n&<公共请求参数>",
|
1475
|
+
"output": "{\n \"Response\": {\n \"DhcpIpSet\": [\n {\n \"DhcpIpId\": \"dhcpip-pxir56ns\",\n \"DhcpIpName\": \"demo\",\n \"PrivateIpAddress\": \"10.0.0.13\",\n \"VpcId\": \"vpc-n0yejvje\",\n \"SubnetId\": \"subnet-hj3he929\",\n \"NetworkInterfaceId\": \"\",\n \"InstanceId\": \"\",\n \"AddressIp\": \"\",\n \"State\": \"UNBIND\",\n \"CreatedTime\": \"2018-10-10 17:03:09\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"fcb47621-838b-428e-8c33-6e210d93c451\"\n }\n}",
|
1460
1476
|
"title": "根据Filters查询DhcpIp列表"
|
1461
1477
|
},
|
1462
1478
|
{
|
1463
1479
|
"document": "",
|
1464
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeDhcpIps\n&DhcpIpIds.0=dhcpip-
|
1465
|
-
"output": "{\n \"Response\": {\n \"DhcpIpSet\": [\n {\n \"DhcpIpId\": \"dhcpip-
|
1480
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeDhcpIps\n&DhcpIpIds.0=dhcpip-pxir56ns\n&<公共请求参数>",
|
1481
|
+
"output": "{\n \"Response\": {\n \"DhcpIpSet\": [\n {\n \"DhcpIpId\": \"dhcpip-pxir56ns\",\n \"DhcpIpName\": \"demo\",\n \"PrivateIpAddress\": \"10.0.0.13\",\n \"VpcId\": \"vpc-n0yejvje\",\n \"SubnetId\": \"subnet-hj3he929\",\n \"NetworkInterfaceId\": \"\",\n \"InstanceId\": \"\",\n \"AddressIp\": \"\",\n \"State\": \"UNBIND\",\n \"CreatedTime\": \"2018-10-10 17:03:09\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"fcb47621-838b-428e-8c33-6e210d93c451\"\n }\n}",
|
1466
1482
|
"title": "根据DhcpIpIds查询DhcpIp列表"
|
1467
1483
|
}
|
1468
1484
|
],
|
@@ -1500,7 +1516,7 @@
|
|
1500
1516
|
{
|
1501
1517
|
"document": "查询流日志集合",
|
1502
1518
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFlowLogs\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
|
1503
|
-
"output": "{\n \"Response\": {\n \"FlowLog\": [\n {\n \"CloudLogId\": \"dfb8f1a2-8522-47c1-8571-67905167ab3f\",\n \"CloudLogRegion\": \"ap-guangzhou\",\n \"CloudLogState\": \"SUCCESS\",\n \"CreatedTime\": \"2019-05-07 18:00:26\",\n \"FlowLogDescription\": \"\",\n \"FlowLogId\": \"fl-2edhcclz\",\n \"FlowLogName\": \"
|
1519
|
+
"output": "{\n \"Response\": {\n \"FlowLog\": [\n {\n \"CloudLogId\": \"dfb8f1a2-8522-47c1-8571-67905167ab3f\",\n \"CloudLogRegion\": \"ap-guangzhou\",\n \"CloudLogState\": \"SUCCESS\",\n \"CreatedTime\": \"2019-05-07 18:00:26\",\n \"FlowLogDescription\": \"\",\n \"FlowLogId\": \"fl-2edhcclz\",\n \"FlowLogName\": \"demo\",\n \"ResourceId\": \"eni-78ysaex1\",\n \"ResourceType\": \"NETWORKINTERFACE\",\n \"TrafficType\": \"ACCEPT\",\n \"VpcId\": \"vpc-pq9vxykj\",\n \"StorageType\": \"cls\",\n \"FlowLogStorage\": {\n \"StorageTopic\": \"topic-siqmaox1\",\n \"StorageId\": \"ckafka-akwiqms1\"\n },\n \"TagSet\": [],\n \"Enable\": true\n },\n {\n \"CloudLogId\": \"dfb8f1a2-8522-47c1-8571-67905167ab3f\",\n \"CloudLogRegion\": \"ap-guangzhou\",\n \"CloudLogState\": \"SUCCESS\",\n \"CreatedTime\": \"2019-05-08 10:48:26\",\n \"FlowLogDescription\": \"\",\n \"FlowLogId\": \"fl-f42uhpkj\",\n \"FlowLogName\": \"demo\",\n \"ResourceId\": \"eni-78ysaex1\",\n \"ResourceType\": \"NETWORKINTERFACE\",\n \"TrafficType\": \"ACCEPT\",\n \"VpcId\": \"vpc-pq9vxykj\",\n \"StorageType\": \"cls\",\n \"FlowLogStorage\": {\n \"StorageTopic\": \"topic-siqmaox1\",\n \"StorageId\": \"ckafka-akwiqms1\"\n },\n \"TagSet\": [],\n \"Enable\": true\n }\n ],\n \"TotalNum\": 2,\n \"RequestId\": \"404428db-f850-40c2-803d-0aae49aba43a\"\n }\n}",
|
1504
1520
|
"title": "查询流日志集合"
|
1505
1521
|
},
|
1506
1522
|
{
|
@@ -1670,7 +1686,7 @@
|
|
1670
1686
|
{
|
1671
1687
|
"document": "根据ID查询网络探测验证结果列表",
|
1672
1688
|
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeNetDetectStates\n&NetDetectIds.0=netd-12345678\n&<公共请求参数>",
|
1673
|
-
"output": "{\n \"Response\": {\n \"NetDetectStateSet\": [\n {\n \"NetDetectId\": \"netd-
|
1689
|
+
"output": "{\n \"Response\": {\n \"NetDetectStateSet\": [\n {\n \"NetDetectId\": \"netd-6v2ht8q5\",\n \"NetDetectIpStateSet\": [\n {\n \"DetectDestinationIp\": \"10.0.0.2\",\n \"State\": 0,\n \"Delay\": 0,\n \"PacketLossRate\": 0\n },\n {\n \"DetectDestinationIp\": \"10.0.0.3\",\n \"State\": 0,\n \"Delay\": 0,\n \"PacketLossRate\": 0\n }\n ]\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"6aa316a4-07d2-4355-b87d-40b7f22972b0\"\n }\n}",
|
1674
1690
|
"title": "根据ID查询网络探测验证结果列表"
|
1675
1691
|
}
|
1676
1692
|
],
|
@@ -1808,6 +1824,20 @@
|
|
1808
1824
|
"title": "查询云联网产品配额信息"
|
1809
1825
|
}
|
1810
1826
|
],
|
1827
|
+
"DescribeReserveIpAddresses": [
|
1828
|
+
{
|
1829
|
+
"document": "查询内网保留 IP",
|
1830
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReserveIpAddresses\n<公共请求参数>\n\n{\n \"ReserveIpIds\": [\n \"rsvip-eaq2f4pc\",\n \"rsvip-2g134x24\"\n ]\n}",
|
1831
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"2d32beeb-0750-4ef9-a2f9-e4e7bbb0ec7f\",\n \"ReserveIpAddressSet\": [\n {\n \"CreatedTime\": \"2024-11-06 12:01:57\",\n \"Description\": \"desc_ivan\",\n \"IpType\": 0,\n \"Name\": \"name_ivan\",\n \"ReserveIpAddress\": \"10.0.5.99\",\n \"ReserveIpId\": \"rsvip-eaq2f4pc\",\n \"ResourceId\": \"\",\n \"State\": \"UnBind\",\n \"TagSet\": [],\n \"VpcId\": \"vpc-mcqaoy0f\"\n },\n {\n \"CreatedTime\": \"2024-11-06 12:01:57\",\n \"Description\": \"desc_ivan\",\n \"IpType\": 0,\n \"Name\": \"name_ivan\",\n \"ReserveIpAddress\": \"10.0.5.50\",\n \"ReserveIpId\": \"rsvip-2g134x24\",\n \"ResourceId\": \"\",\n \"State\": \"UnBind\",\n \"TagSet\": [],\n \"VpcId\": \"vpc-mcqaoy0f\"\n }\n ],\n \"TotalCount\": 2\n }\n}",
|
1832
|
+
"title": "查询内网保留 IP"
|
1833
|
+
},
|
1834
|
+
{
|
1835
|
+
"document": "根据标签过滤查询保留 IP",
|
1836
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReserveIpAddresses\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"tag-key\",\n \"Values\": [\n \"ivan_reserve_ip\"\n ]\n }\n ]\n}",
|
1837
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e168d943-d647-4c0a-ada4-50a90015ded8\",\n \"ReserveIpAddressSet\": [\n {\n \"CreatedTime\": \"2024-11-06 17:30:06\",\n \"Description\": \"desc_ivan\",\n \"IpType\": 0,\n \"Name\": \"name_ivan\",\n \"ReserveIpAddress\": \"10.0.5.89\",\n \"ReserveIpId\": \"rsvip-du6lo6fu\",\n \"ResourceId\": \"\",\n \"State\": \"UnBind\",\n \"TagSet\": [\n {\n \"Key\": \"ivan_reserve_ip\",\n \"Value\": \"hello\"\n }\n ],\n \"VpcId\": \"vpc-mcqaoy0f\"\n }\n ],\n \"TotalCount\": 1\n }\n}",
|
1838
|
+
"title": "根据标签过滤查询保留 IP"
|
1839
|
+
}
|
1840
|
+
],
|
1811
1841
|
"DescribeRouteConflicts": [
|
1812
1842
|
{
|
1813
1843
|
"document": "查询路由策略冲突列表",
|
@@ -2464,7 +2494,7 @@
|
|
2464
2494
|
{
|
2465
2495
|
"document": "本接口(InquiryPriceResetVpnGatewayInternetMaxBandwidth)用于调整VPN网关带宽上限询价。",
|
2466
2496
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceResetVpnGatewayInternetMaxBandwidth\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-a4wta21x\",\n \"InternetMaxBandwidthOut\": 100\n}",
|
2467
|
-
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 1717.86,\n \"DiscountPrice\": 1717.86,\n \"UnitPrice\": 0,\n \"ChargeUnit\": \"\"\n },\n \"BandwidthPrice\": {\n \"OriginalPrice\": 0,\n \"DiscountPrice\": 0,\n \"UnitPrice\": 0,\n \"ChargeUnit\": \"\"\n }\n },\n \"RequestId\": \"e13643de-b578-42b0-8ad3-86b732067292\"\n }\n}",
|
2497
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 1717.86,\n \"DiscountPrice\": 1717.86,\n \"UnitPrice\": 0,\n \"ChargeUnit\": \"none\"\n },\n \"BandwidthPrice\": {\n \"OriginalPrice\": 0,\n \"DiscountPrice\": 0,\n \"UnitPrice\": 0,\n \"ChargeUnit\": \"none\"\n }\n },\n \"RequestId\": \"e13643de-b578-42b0-8ad3-86b732067292\"\n }\n}",
|
2468
2498
|
"title": "调整VPN网关带宽上限询价"
|
2469
2499
|
}
|
2470
2500
|
],
|
@@ -2874,6 +2904,14 @@
|
|
2874
2904
|
"title": "修改私网NAT网关源端转换规则"
|
2875
2905
|
}
|
2876
2906
|
],
|
2907
|
+
"ModifyReserveIpAddress": [
|
2908
|
+
{
|
2909
|
+
"document": "修改内网保留IP",
|
2910
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReserveIpAddress\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-mcqaoy0f\",\n \"ReserveIpId\": \"rsvip-jvnifc7o\",\n \"Name\": \"name_ivan\",\n \"Description\": \"desc_ivan\"\n}",
|
2911
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"23575de3-d827-43cb-9ddf-0c1e7eaece50\"\n }\n}",
|
2912
|
+
"title": "修改内网保留IP"
|
2913
|
+
}
|
2914
|
+
],
|
2877
2915
|
"ModifyRouteTableAttribute": [
|
2878
2916
|
{
|
2879
2917
|
"document": "修改路由表属性",
|
@@ -2893,7 +2931,7 @@
|
|
2893
2931
|
"ModifySecurityGroupAttribute": [
|
2894
2932
|
{
|
2895
2933
|
"document": "修改安全组属性",
|
2896
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=ModifySecurityGroupAttribute\n&SecurityGroupId=sg-33ocnj9n\n&GroupName=
|
2934
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=ModifySecurityGroupAttribute\n&SecurityGroupId=sg-33ocnj9n\n&GroupName=demo\n&GroupDescription=demo\n&<公共请求参数>",
|
2897
2935
|
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\"\n }\n}",
|
2898
2936
|
"title": "修改安全组属性"
|
2899
2937
|
}
|
@@ -2991,7 +3029,7 @@
|
|
2991
3029
|
"ModifyVpcEndPointServiceWhiteList": [
|
2992
3030
|
{
|
2993
3031
|
"document": "修改终端节点服务白名单",
|
2994
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpcEndPointServiceWhiteList\n<公共请求参数>\n\n{\n \"UserUin\": \"\",\n \"Description\": \"
|
3032
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpcEndPointServiceWhiteList\n<公共请求参数>\n\n{\n \"UserUin\": \"700000483554\",\n \"Description\": \"demo\",\n \"EndPointServiceId\": \"vpcsvc-b2mrmmx7\"\n}",
|
2995
3033
|
"output": "{\n \"Response\": {\n \"RequestId\": \"cccb2665-5d02-4d87-b9e7-757bb06e5beb\"\n }\n}",
|
2996
3034
|
"title": "修改终端节点服务白名单"
|
2997
3035
|
}
|
@@ -3039,7 +3077,7 @@
|
|
3039
3077
|
"ModifyVpnGatewaySslClientCert": [
|
3040
3078
|
{
|
3041
3079
|
"document": "更新sslVpnClient证书",
|
3042
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnGatewaySslClientCert\n<公共请求参数>\n\n{\n \"SslVpnClientIds\": [\n \"
|
3080
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnGatewaySslClientCert\n<公共请求参数>\n\n{\n \"SslVpnClientIds\": [\n \"vpnc-xxxxxxxx\"\n ]\n}",
|
3043
3081
|
"output": "{\n \"Response\": {\n \"RequestId\": \"e4b16737-b460-429b-b240-d6b621da9eed\",\n \"TaskId\": 10449\n }\n}",
|
3044
3082
|
"title": "更新sslVpnClient证书"
|
3045
3083
|
}
|
@@ -3211,7 +3249,7 @@
|
|
3211
3249
|
"ReplaceSecurityGroupPolicy": [
|
3212
3250
|
{
|
3213
3251
|
"document": "替换单条安全组路由规则",
|
3214
|
-
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReplaceSecurityGroupPolicy\n<公共请求参数>\n\n{\n \"SecurityGroupId\": \"
|
3252
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReplaceSecurityGroupPolicy\n<公共请求参数>\n\n{\n \"SecurityGroupId\": \"demo\",\n \"SecurityGroupPolicySet\": {\n \"Version\": \"1\",\n \"Egress\": [\n {\n \"PolicyIndex\": 0,\n \"Protocol\": \"UDP\",\n \"Port\": \"20\",\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"ppmg-f5n1f8da\"\n },\n \"CidrBlock\": \"61.144.138.34\",\n \"Ipv6CidrBlock\": \"::/0\",\n \"SecurityGroupId\": \"sg-1wgfnrnd\",\n \"AddressTemplate\": {\n \"AddressId\": \"ipm-2uw6ujo6\",\n \"AddressGroupId\": \"ipmg-2uw6ujo6\"\n },\n \"Action\": \"accept\",\n \"PolicyDescription\": \"demo\",\n \"ModifyTime\": \"2022-06-21 10:46:42\"\n }\n ],\n \"Ingress\": [\n {\n \"PolicyIndex\": 0,\n \"Protocol\": \"UDP\",\n \"Port\": \"20\",\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"ppmg-f5n1f8da\"\n },\n \"CidrBlock\": \"61.144.138.34\",\n \"Ipv6CidrBlock\": \"::/0\",\n \"SecurityGroupId\": \"sg-1wgfnrnd\",\n \"AddressTemplate\": {\n \"AddressId\": \"ipm-2uw6ujo6\",\n \"AddressGroupId\": \"ipmg-2uw6ujo6\"\n },\n \"Action\": \"accept\",\n \"PolicyDescription\": \"demo\",\n \"ModifyTime\": \"2022-06-21 10:46:42\"\n }\n ]\n },\n \"OriginalSecurityGroupPolicySet\": {\n \"Version\": \"1\",\n \"Egress\": [\n {\n \"PolicyIndex\": 0,\n \"Protocol\": \"UDP\",\n \"Port\": \"20\",\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"ppmg-f5n1f8da\"\n },\n \"CidrBlock\": \"61.144.138.34\",\n \"Ipv6CidrBlock\": \"::/0\",\n \"SecurityGroupId\": \"sg-1wgfnrnd\",\n \"AddressTemplate\": {\n \"AddressId\": \"ipm-2uw6ujo6\",\n \"AddressGroupId\": \"ipmg-2uw6ujo6\"\n },\n \"Action\": \"accept\",\n \"PolicyDescription\": \"demo\",\n \"ModifyTime\": \"2022-06-21 10:46:42\"\n }\n ]\n }\n}",
|
3215
3253
|
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\"\n }\n}",
|
3216
3254
|
"title": "替换单条安全组路由规则"
|
3217
3255
|
}
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -4281,6 +4281,58 @@ def doDetachCcnInstances(args, parsed_globals):
|
|
4281
4281
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
4282
|
|
4283
4283
|
|
4284
|
+
def doCreateReserveIpAddresses(args, parsed_globals):
|
4285
|
+
g_param = parse_global_arg(parsed_globals)
|
4286
|
+
|
4287
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4288
|
+
cred = credential.CVMRoleCredential()
|
4289
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4290
|
+
cred = credential.STSAssumeRoleCredential(
|
4291
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4292
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4293
|
+
)
|
4294
|
+
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):
|
4295
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4296
|
+
else:
|
4297
|
+
cred = credential.Credential(
|
4298
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4299
|
+
)
|
4300
|
+
http_profile = HttpProfile(
|
4301
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4302
|
+
reqMethod="POST",
|
4303
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4304
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4305
|
+
)
|
4306
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4307
|
+
if g_param[OptionsDefine.Language]:
|
4308
|
+
profile.language = g_param[OptionsDefine.Language]
|
4309
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4310
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
4311
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4312
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4313
|
+
model = models.CreateReserveIpAddressesRequest()
|
4314
|
+
model.from_json_string(json.dumps(args))
|
4315
|
+
start_time = time.time()
|
4316
|
+
while True:
|
4317
|
+
rsp = client.CreateReserveIpAddresses(model)
|
4318
|
+
result = rsp.to_json_string()
|
4319
|
+
try:
|
4320
|
+
json_obj = json.loads(result)
|
4321
|
+
except TypeError as e:
|
4322
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4323
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4324
|
+
break
|
4325
|
+
cur_time = time.time()
|
4326
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4327
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4328
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4329
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4330
|
+
else:
|
4331
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4332
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4333
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
|
+
|
4335
|
+
|
4284
4336
|
def doRefreshDirectConnectGatewayRouteToNatGateway(args, parsed_globals):
|
4285
4337
|
g_param = parse_global_arg(parsed_globals)
|
4286
4338
|
|
@@ -4593,6 +4645,58 @@ def doReleaseAddresses(args, parsed_globals):
|
|
4593
4645
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
4646
|
|
4595
4647
|
|
4648
|
+
def doDescribeReserveIpAddresses(args, parsed_globals):
|
4649
|
+
g_param = parse_global_arg(parsed_globals)
|
4650
|
+
|
4651
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4652
|
+
cred = credential.CVMRoleCredential()
|
4653
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4654
|
+
cred = credential.STSAssumeRoleCredential(
|
4655
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4656
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4657
|
+
)
|
4658
|
+
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):
|
4659
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4660
|
+
else:
|
4661
|
+
cred = credential.Credential(
|
4662
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4663
|
+
)
|
4664
|
+
http_profile = HttpProfile(
|
4665
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4666
|
+
reqMethod="POST",
|
4667
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4668
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4669
|
+
)
|
4670
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4671
|
+
if g_param[OptionsDefine.Language]:
|
4672
|
+
profile.language = g_param[OptionsDefine.Language]
|
4673
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4674
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
4675
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4676
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4677
|
+
model = models.DescribeReserveIpAddressesRequest()
|
4678
|
+
model.from_json_string(json.dumps(args))
|
4679
|
+
start_time = time.time()
|
4680
|
+
while True:
|
4681
|
+
rsp = client.DescribeReserveIpAddresses(model)
|
4682
|
+
result = rsp.to_json_string()
|
4683
|
+
try:
|
4684
|
+
json_obj = json.loads(result)
|
4685
|
+
except TypeError as e:
|
4686
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4687
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4688
|
+
break
|
4689
|
+
cur_time = time.time()
|
4690
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4691
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4692
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4693
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4694
|
+
else:
|
4695
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4696
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4697
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4698
|
+
|
4699
|
+
|
4596
4700
|
def doReplaceRoutes(args, parsed_globals):
|
4597
4701
|
g_param = parse_global_arg(parsed_globals)
|
4598
4702
|
|
@@ -5477,6 +5581,58 @@ def doDescribePrivateNatGatewayRegions(args, parsed_globals):
|
|
5477
5581
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5478
5582
|
|
5479
5583
|
|
5584
|
+
def doModifyReserveIpAddress(args, parsed_globals):
|
5585
|
+
g_param = parse_global_arg(parsed_globals)
|
5586
|
+
|
5587
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5588
|
+
cred = credential.CVMRoleCredential()
|
5589
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5590
|
+
cred = credential.STSAssumeRoleCredential(
|
5591
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5592
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5593
|
+
)
|
5594
|
+
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):
|
5595
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5596
|
+
else:
|
5597
|
+
cred = credential.Credential(
|
5598
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5599
|
+
)
|
5600
|
+
http_profile = HttpProfile(
|
5601
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5602
|
+
reqMethod="POST",
|
5603
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5604
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5605
|
+
)
|
5606
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5607
|
+
if g_param[OptionsDefine.Language]:
|
5608
|
+
profile.language = g_param[OptionsDefine.Language]
|
5609
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5610
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
5611
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5612
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5613
|
+
model = models.ModifyReserveIpAddressRequest()
|
5614
|
+
model.from_json_string(json.dumps(args))
|
5615
|
+
start_time = time.time()
|
5616
|
+
while True:
|
5617
|
+
rsp = client.ModifyReserveIpAddress(model)
|
5618
|
+
result = rsp.to_json_string()
|
5619
|
+
try:
|
5620
|
+
json_obj = json.loads(result)
|
5621
|
+
except TypeError as e:
|
5622
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5623
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5624
|
+
break
|
5625
|
+
cur_time = time.time()
|
5626
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5627
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5628
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5629
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5630
|
+
else:
|
5631
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5632
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5633
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5634
|
+
|
5635
|
+
|
5480
5636
|
def doDisassociateNatGatewayAddress(args, parsed_globals):
|
5481
5637
|
g_param = parse_global_arg(parsed_globals)
|
5482
5638
|
|
@@ -16813,6 +16969,58 @@ def doModifyHighPriorityRouteTableAttribute(args, parsed_globals):
|
|
16813
16969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16814
16970
|
|
16815
16971
|
|
16972
|
+
def doDeleteReserveIpAddresses(args, parsed_globals):
|
16973
|
+
g_param = parse_global_arg(parsed_globals)
|
16974
|
+
|
16975
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
16976
|
+
cred = credential.CVMRoleCredential()
|
16977
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
16978
|
+
cred = credential.STSAssumeRoleCredential(
|
16979
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
16980
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
16981
|
+
)
|
16982
|
+
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):
|
16983
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
16984
|
+
else:
|
16985
|
+
cred = credential.Credential(
|
16986
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
16987
|
+
)
|
16988
|
+
http_profile = HttpProfile(
|
16989
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
16990
|
+
reqMethod="POST",
|
16991
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
16992
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
16993
|
+
)
|
16994
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
16995
|
+
if g_param[OptionsDefine.Language]:
|
16996
|
+
profile.language = g_param[OptionsDefine.Language]
|
16997
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
16998
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
16999
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
17000
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
17001
|
+
model = models.DeleteReserveIpAddressesRequest()
|
17002
|
+
model.from_json_string(json.dumps(args))
|
17003
|
+
start_time = time.time()
|
17004
|
+
while True:
|
17005
|
+
rsp = client.DeleteReserveIpAddresses(model)
|
17006
|
+
result = rsp.to_json_string()
|
17007
|
+
try:
|
17008
|
+
json_obj = json.loads(result)
|
17009
|
+
except TypeError as e:
|
17010
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
17011
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
17012
|
+
break
|
17013
|
+
cur_time = time.time()
|
17014
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
17015
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
17016
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
17017
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
17018
|
+
else:
|
17019
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
17020
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
17021
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
17022
|
+
|
17023
|
+
|
16816
17024
|
def doModifyCdcLDCXAttribute(args, parsed_globals):
|
16817
17025
|
g_param = parse_global_arg(parsed_globals)
|
16818
17026
|
|
@@ -19454,12 +19662,14 @@ ACTION_MAP = {
|
|
19454
19662
|
"ReplaceCcnRouteTableInputPolicys": doReplaceCcnRouteTableInputPolicys,
|
19455
19663
|
"CreateDirectConnectGateway": doCreateDirectConnectGateway,
|
19456
19664
|
"DetachCcnInstances": doDetachCcnInstances,
|
19665
|
+
"CreateReserveIpAddresses": doCreateReserveIpAddresses,
|
19457
19666
|
"RefreshDirectConnectGatewayRouteToNatGateway": doRefreshDirectConnectGatewayRouteToNatGateway,
|
19458
19667
|
"SetCcnRegionBandwidthLimits": doSetCcnRegionBandwidthLimits,
|
19459
19668
|
"EnableRoutes": doEnableRoutes,
|
19460
19669
|
"ModifyRouteTableAttribute": doModifyRouteTableAttribute,
|
19461
19670
|
"ModifyHaVipAttribute": doModifyHaVipAttribute,
|
19462
19671
|
"ReleaseAddresses": doReleaseAddresses,
|
19672
|
+
"DescribeReserveIpAddresses": doDescribeReserveIpAddresses,
|
19463
19673
|
"ReplaceRoutes": doReplaceRoutes,
|
19464
19674
|
"DescribeVpcPrivateIpAddresses": doDescribeVpcPrivateIpAddresses,
|
19465
19675
|
"ModifyIp6Translator": doModifyIp6Translator,
|
@@ -19477,6 +19687,7 @@ ACTION_MAP = {
|
|
19477
19687
|
"DescribeNatGatewayDestinationIpPortTranslationNatRules": doDescribeNatGatewayDestinationIpPortTranslationNatRules,
|
19478
19688
|
"DescribeCcnAttachedInstances": doDescribeCcnAttachedInstances,
|
19479
19689
|
"DescribePrivateNatGatewayRegions": doDescribePrivateNatGatewayRegions,
|
19690
|
+
"ModifyReserveIpAddress": doModifyReserveIpAddress,
|
19480
19691
|
"DisassociateNatGatewayAddress": doDisassociateNatGatewayAddress,
|
19481
19692
|
"DescribeGatewayFlowMonitorDetail": doDescribeGatewayFlowMonitorDetail,
|
19482
19693
|
"UnassignIpv6Addresses": doUnassignIpv6Addresses,
|
@@ -19695,6 +19906,7 @@ ACTION_MAP = {
|
|
19695
19906
|
"DeleteNatGateway": doDeleteNatGateway,
|
19696
19907
|
"DescribeBandwidthPackageQuota": doDescribeBandwidthPackageQuota,
|
19697
19908
|
"ModifyHighPriorityRouteTableAttribute": doModifyHighPriorityRouteTableAttribute,
|
19909
|
+
"DeleteReserveIpAddresses": doDeleteReserveIpAddresses,
|
19698
19910
|
"ModifyCdcLDCXAttribute": doModifyCdcLDCXAttribute,
|
19699
19911
|
"DeleteVpcEndPointService": doDeleteVpcEndPointService,
|
19700
19912
|
"CreateNetworkAclQuintupleEntries": doCreateNetworkAclQuintupleEntries,
|
@@ -19759,7 +19971,13 @@ def action_caller():
|
|
19759
19971
|
|
19760
19972
|
def parse_global_arg(parsed_globals):
|
19761
19973
|
g_param = parsed_globals
|
19762
|
-
|
19974
|
+
cvm_role_flag = True
|
19975
|
+
for param in parsed_globals.keys():
|
19976
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
19977
|
+
OptionsDefine.RoleSessionName]:
|
19978
|
+
if parsed_globals[param] is not None:
|
19979
|
+
cvm_role_flag = False
|
19980
|
+
break
|
19763
19981
|
is_exist_profile = True
|
19764
19982
|
if not parsed_globals["profile"]:
|
19765
19983
|
is_exist_profile = False
|
@@ -19790,6 +20008,7 @@ def parse_global_arg(parsed_globals):
|
|
19790
20008
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
19791
20009
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
19792
20010
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
20011
|
+
cvm_role_flag = False
|
19793
20012
|
|
19794
20013
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
19795
20014
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -19797,6 +20016,11 @@ def parse_global_arg(parsed_globals):
|
|
19797
20016
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
19798
20017
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
19799
20018
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
20019
|
+
cvm_role_flag = False
|
20020
|
+
|
20021
|
+
if cvm_role_flag:
|
20022
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
20023
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
19800
20024
|
|
19801
20025
|
for param in g_param.keys():
|
19802
20026
|
if g_param[param] is None:
|
tccli/services/vrs/vrs_client.py
CHANGED
@@ -414,7 +414,13 @@ def action_caller():
|
|
414
414
|
|
415
415
|
def parse_global_arg(parsed_globals):
|
416
416
|
g_param = parsed_globals
|
417
|
-
|
417
|
+
cvm_role_flag = True
|
418
|
+
for param in parsed_globals.keys():
|
419
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
420
|
+
OptionsDefine.RoleSessionName]:
|
421
|
+
if parsed_globals[param] is not None:
|
422
|
+
cvm_role_flag = False
|
423
|
+
break
|
418
424
|
is_exist_profile = True
|
419
425
|
if not parsed_globals["profile"]:
|
420
426
|
is_exist_profile = False
|
@@ -445,6 +451,7 @@ def parse_global_arg(parsed_globals):
|
|
445
451
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
446
452
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
447
453
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
454
|
+
cvm_role_flag = False
|
448
455
|
|
449
456
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
450
457
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -452,6 +459,11 @@ def parse_global_arg(parsed_globals):
|
|
452
459
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
453
460
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
454
461
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
462
|
+
cvm_role_flag = False
|
463
|
+
|
464
|
+
if cvm_role_flag:
|
465
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
466
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
455
467
|
|
456
468
|
for param in g_param.keys():
|
457
469
|
if g_param[param] is None:
|