tccli 3.0.1035.1__py2.py3-none-any.whl → 3.0.1037.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/examples/cdc/v20201214/DescribeDedicatedClusterHosts.md +2 -0
- tccli/examples/cdc/v20201214/DescribeDedicatedClusterOverview.md +59 -7
- tccli/examples/cdwch/v20200915/DescribeInstanceNodes.md +41 -0
- tccli/examples/cdwch/v20200915/DescribeSpec.md +27 -20
- tccli/examples/cwp/v20180228/CreateMalwareWhiteList.md +10 -4
- tccli/examples/cwp/v20180228/DescribeMachineFileTamperRules.md +9 -8
- tccli/examples/cwp/v20180228/ModifyLoginWhiteRecord.md +11 -10
- tccli/examples/hai/v20230812/DescribeApplications.md +6 -2
- tccli/examples/mrs/v20200910/ImageMaskAsync.md +25 -0
- tccli/examples/mrs/v20200910/ImageMaskAsyncGetResult.md +21 -0
- tccli/examples/tcss/v20201101/DescribeAssetSuperNodeList.md +41 -0
- tccli/examples/tcss/v20201101/DescribeClusterNodes.md +42 -0
- tccli/examples/tcss/v20201101/DescribeSuperNodePodList.md +41 -0
- tccli/examples/tcss/v20201101/DescribeUserPodList.md +56 -0
- tccli/examples/tms/v20201229/ModerateText.md +80 -0
- tccli/examples/vod/v20180717/PullEvents.md +2 -1
- tccli/services/aa/aa_client.py +2 -1
- tccli/services/aai/aai_client.py +5 -4
- tccli/services/acp/acp_client.py +9 -8
- tccli/services/advisor/advisor_client.py +3 -2
- tccli/services/af/af_client.py +4 -3
- tccli/services/afc/afc_client.py +4 -3
- tccli/services/aiart/aiart_client.py +3 -2
- tccli/services/aiart/v20221229/api.json +3 -3
- tccli/services/ame/ame_client.py +32 -31
- tccli/services/ams/ams_client.py +10 -9
- tccli/services/anicloud/anicloud_client.py +4 -3
- tccli/services/antiddos/antiddos_client.py +96 -95
- tccli/services/apcas/apcas_client.py +8 -7
- tccli/services/ape/ape_client.py +9 -8
- tccli/services/api/api_client.py +4 -3
- tccli/services/apigateway/apigateway_client.py +97 -96
- tccli/services/apm/apm_client.py +10 -9
- tccli/services/asr/asr_client.py +26 -25
- tccli/services/asw/asw_client.py +10 -9
- tccli/services/autoscaling/autoscaling_client.py +58 -57
- tccli/services/ba/ba_client.py +4 -3
- tccli/services/batch/batch_client.py +32 -31
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/bda/bda_client.py +19 -18
- tccli/services/bi/bi_client.py +23 -22
- tccli/services/billing/billing_client.py +33 -32
- tccli/services/bizlive/bizlive_client.py +7 -6
- tccli/services/bm/bm_client.py +54 -53
- tccli/services/bma/bma_client.py +38 -37
- tccli/services/bmeip/bmeip_client.py +21 -20
- tccli/services/bmlb/bmlb_client.py +50 -49
- tccli/services/bmvpc/bmvpc_client.py +62 -61
- tccli/services/bpaas/bpaas_client.py +3 -2
- tccli/services/bri/bri_client.py +2 -1
- tccli/services/bsca/bsca_client.py +8 -7
- tccli/services/btoe/btoe_client.py +15 -14
- tccli/services/cam/cam_client.py +88 -87
- tccli/services/captcha/captcha_client.py +19 -18
- tccli/services/car/car_client.py +7 -6
- tccli/services/cat/cat_client.py +13 -12
- tccli/services/cbs/cbs_client.py +42 -41
- tccli/services/ccc/ccc_client.py +42 -41
- tccli/services/cdb/cdb_client.py +159 -158
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cdc/cdc_client.py +21 -20
- tccli/services/cdc/v20201214/api.json +113 -27
- tccli/services/cdc/v20201214/examples.json +2 -2
- tccli/services/cdn/cdn_client.py +82 -81
- tccli/services/cdn/v20180606/api.json +10 -1
- tccli/services/cds/cds_client.py +7 -6
- tccli/services/cdwch/cdwch_client.py +109 -55
- tccli/services/cdwch/v20200915/api.json +253 -3
- tccli/services/cdwch/v20200915/examples.json +10 -2
- tccli/services/cdwdoris/cdwdoris_client.py +18 -17
- tccli/services/cdwdoris/v20211228/api.json +1 -1
- tccli/services/cdwpg/cdwpg_client.py +9 -8
- tccli/services/cfg/cfg_client.py +13 -12
- tccli/services/cfs/cfs_client.py +44 -43
- tccli/services/cfw/cfw_client.py +112 -111
- tccli/services/chdfs/chdfs_client.py +30 -29
- tccli/services/ciam/ciam_client.py +24 -23
- tccli/services/cii/cii_client.py +14 -13
- tccli/services/cim/cim_client.py +2 -1
- tccli/services/cis/cis_client.py +8 -7
- tccli/services/ckafka/ckafka_client.py +82 -81
- tccli/services/clb/clb_client.py +86 -85
- tccli/services/cloudaudit/cloudaudit_client.py +20 -19
- tccli/services/cloudhsm/cloudhsm_client.py +15 -14
- tccli/services/cloudstudio/cloudstudio_client.py +10 -9
- tccli/services/cls/cls_client.py +90 -89
- tccli/services/cme/cme_client.py +51 -50
- tccli/services/cmq/cmq_client.py +18 -17
- tccli/services/cms/cms_client.py +7 -6
- tccli/services/config/config_client.py +4 -3
- tccli/services/cpdp/cpdp_client.py +220 -219
- tccli/services/cr/cr_client.py +29 -28
- tccli/services/csip/csip_client.py +35 -34
- tccli/services/csxg/csxg_client.py +6 -5
- tccli/services/cvm/cvm_client.py +95 -94
- tccli/services/cvm/v20170312/api.json +6 -4
- tccli/services/cwp/cwp_client.py +519 -518
- tccli/services/cwp/v20180228/api.json +17 -16
- tccli/services/cwp/v20180228/examples.json +5 -5
- tccli/services/cws/cws_client.py +20 -19
- tccli/services/cynosdb/cynosdb_client.py +131 -130
- tccli/services/dasb/dasb_client.py +56 -55
- tccli/services/dataintegration/dataintegration_client.py +2 -1
- tccli/services/dayu/dayu_client.py +113 -112
- tccli/services/dbbrain/dbbrain_client.py +62 -61
- tccli/services/dbdc/dbdc_client.py +7 -6
- tccli/services/dc/dc_client.py +22 -21
- tccli/services/dcdb/dcdb_client.py +74 -73
- tccli/services/dlc/dlc_client.py +124 -123
- tccli/services/dnspod/dnspod_client.py +73 -72
- tccli/services/domain/domain_client.py +34 -33
- tccli/services/drm/drm_client.py +12 -11
- tccli/services/ds/ds_client.py +13 -12
- tccli/services/dsgc/dsgc_client.py +149 -148
- tccli/services/dtf/dtf_client.py +2 -1
- tccli/services/dts/dts_client.py +69 -68
- tccli/services/dts/v20211206/api.json +1 -0
- tccli/services/eb/eb_client.py +33 -32
- tccli/services/ecc/ecc_client.py +5 -4
- tccli/services/ecdn/ecdn_client.py +17 -16
- tccli/services/ecm/ecm_client.py +140 -139
- tccli/services/eiam/eiam_client.py +43 -42
- tccli/services/eis/eis_client.py +9 -8
- tccli/services/emr/emr_client.py +36 -35
- tccli/services/es/es_client.py +43 -42
- tccli/services/ess/ess_client.py +72 -71
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/essbasic/essbasic_client.py +123 -122
- tccli/services/essbasic/v20210526/api.json +11 -11
- tccli/services/facefusion/facefusion_client.py +5 -4
- tccli/services/faceid/faceid_client.py +36 -35
- tccli/services/fmu/fmu_client.py +11 -10
- tccli/services/ft/ft_client.py +7 -6
- tccli/services/gaap/gaap_client.py +104 -103
- tccli/services/gme/gme_client.py +29 -28
- tccli/services/goosefs/goosefs_client.py +21 -20
- tccli/services/gpm/gpm_client.py +19 -18
- tccli/services/gs/gs_client.py +9 -8
- tccli/services/gse/gse_client.py +75 -74
- tccli/services/habo/habo_client.py +3 -2
- tccli/services/hai/hai_client.py +12 -11
- tccli/services/hai/v20230812/api.json +59 -1
- tccli/services/hai/v20230812/examples.json +1 -1
- tccli/services/hasim/hasim_client.py +23 -22
- tccli/services/hcm/hcm_client.py +2 -1
- tccli/services/hunyuan/hunyuan_client.py +4 -3
- tccli/services/iai/iai_client.py +36 -35
- tccli/services/ic/ic_client.py +10 -9
- tccli/services/icr/icr_client.py +2 -1
- tccli/services/ie/ie_client.py +11 -10
- tccli/services/iecp/iecp_client.py +103 -102
- tccli/services/iir/iir_client.py +2 -1
- tccli/services/ims/ims_client.py +3 -2
- tccli/services/ioa/ioa_client.py +2 -1
- tccli/services/iot/iot_client.py +46 -45
- tccli/services/iotcloud/iotcloud_client.py +86 -85
- tccli/services/iotexplorer/iotexplorer_client.py +93 -92
- tccli/services/iottid/iottid_client.py +10 -9
- tccli/services/iotvideo/iotvideo_client.py +158 -157
- tccli/services/iotvideoindustry/iotvideoindustry_client.py +105 -104
- tccli/services/irp/irp_client.py +12 -11
- tccli/services/iss/iss_client.py +83 -82
- tccli/services/ivld/ivld_client.py +26 -25
- tccli/services/keewidb/keewidb_client.py +39 -38
- tccli/services/kms/kms_client.py +54 -53
- tccli/services/lcic/lcic_client.py +61 -60
- tccli/services/lighthouse/lighthouse_client.py +108 -107
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/live_client.py +154 -153
- tccli/services/lowcode/lowcode_client.py +2 -1
- tccli/services/lp/lp_client.py +2 -1
- tccli/services/mall/mall_client.py +2 -1
- tccli/services/mariadb/mariadb_client.py +73 -72
- tccli/services/market/market_client.py +3 -2
- tccli/services/memcached/memcached_client.py +2 -1
- tccli/services/mgobe/mgobe_client.py +8 -7
- tccli/services/mmps/mmps_client.py +16 -15
- tccli/services/mna/mna_client.py +24 -23
- tccli/services/mongodb/mongodb_client.py +43 -42
- tccli/services/monitor/monitor_client.py +151 -150
- tccli/services/mps/mps_client.py +101 -100
- tccli/services/mrs/mrs_client.py +115 -8
- tccli/services/mrs/v20200910/api.json +97 -0
- tccli/services/mrs/v20200910/examples.json +16 -0
- tccli/services/ms/ms_client.py +24 -23
- tccli/services/msp/msp_client.py +8 -7
- tccli/services/mvj/mvj_client.py +2 -1
- tccli/services/nlp/nlp_client.py +13 -12
- tccli/services/npp/npp_client.py +9 -8
- tccli/services/oceanus/oceanus_client.py +39 -38
- tccli/services/oceanus/v20190422/api.json +39 -4
- tccli/services/ocr/ocr_client.py +82 -81
- tccli/services/omics/omics_client.py +16 -15
- tccli/services/organization/organization_client.py +48 -47
- tccli/services/partners/partners_client.py +20 -19
- tccli/services/pds/pds_client.py +3 -2
- tccli/services/postgres/postgres_client.py +91 -90
- tccli/services/privatedns/privatedns_client.py +26 -25
- tccli/services/pts/pts_client.py +45 -44
- tccli/services/rce/rce_client.py +4 -3
- tccli/services/redis/redis_client.py +96 -95
- tccli/services/region/region_client.py +4 -3
- tccli/services/rkp/rkp_client.py +4 -3
- tccli/services/rp/rp_client.py +2 -1
- tccli/services/rum/rum_client.py +66 -65
- tccli/services/scf/scf_client.py +47 -46
- tccli/services/ses/ses_client.py +28 -27
- tccli/services/smh/smh_client.py +11 -10
- tccli/services/smop/smop_client.py +2 -1
- tccli/services/smpn/smpn_client.py +6 -5
- tccli/services/sms/sms_client.py +19 -18
- tccli/services/soe/soe_client.py +5 -4
- tccli/services/solar/solar_client.py +18 -17
- tccli/services/sqlserver/sqlserver_client.py +145 -144
- tccli/services/ssa/ssa_client.py +24 -23
- tccli/services/ssl/ssl_client.py +58 -57
- tccli/services/sslpod/sslpod_client.py +11 -10
- tccli/services/ssm/ssm_client.py +25 -24
- tccli/services/sts/sts_client.py +7 -6
- tccli/services/taf/taf_client.py +4 -3
- tccli/services/tag/tag_client.py +32 -31
- tccli/services/tan/tan_client.py +2 -1
- tccli/services/tat/tat_client.py +29 -28
- tccli/services/tav/tav_client.py +5 -4
- tccli/services/tbaas/tbaas_client.py +26 -25
- tccli/services/tbm/tbm_client.py +10 -9
- tccli/services/tbp/tbp_client.py +5 -4
- tccli/services/tcaplusdb/tcaplusdb_client.py +54 -53
- tccli/services/tcb/tcb_client.py +90 -89
- tccli/services/tcbr/tcbr_client.py +11 -10
- tccli/services/tcex/tcex_client.py +3 -2
- tccli/services/tchd/tchd_client.py +2 -1
- tccli/services/tci/tci_client.py +42 -41
- tccli/services/tcm/tcm_client.py +13 -12
- tccli/services/tcr/tcr_client.py +110 -109
- tccli/services/tcss/tcss_client.py +558 -345
- tccli/services/tcss/v20201101/api.json +1200 -0
- tccli/services/tcss/v20201101/examples.json +32 -0
- tccli/services/tdcpg/tdcpg_client.py +26 -25
- tccli/services/tdid/tdid_client.py +14 -13
- tccli/services/tdmq/tdmq_client.py +128 -127
- tccli/services/tds/tds_client.py +5 -4
- tccli/services/tem/tem_client.py +61 -60
- tccli/services/teo/teo_client.py +79 -78
- tccli/services/thpc/thpc_client.py +19 -18
- tccli/services/tia/tia_client.py +11 -10
- tccli/services/tic/tic_client.py +14 -13
- tccli/services/ticm/ticm_client.py +4 -3
- tccli/services/tics/tics_client.py +5 -4
- tccli/services/tiems/tiems_client.py +26 -25
- tccli/services/tiia/tiia_client.py +24 -23
- tccli/services/tione/tione_client.py +98 -97
- tccli/services/tiw/tiw_client.py +61 -60
- tccli/services/tke/tke_client.py +219 -218
- tccli/services/tkgdq/tkgdq_client.py +4 -3
- tccli/services/tms/tms_client.py +62 -8
- tccli/services/tms/v20201229/api.json +371 -17
- tccli/services/tms/v20201229/examples.json +8 -0
- tccli/services/tmt/tmt_client.py +8 -7
- tccli/services/tourism/tourism_client.py +2 -1
- tccli/services/trdp/trdp_client.py +2 -1
- tccli/services/trocket/trocket_client.py +23 -22
- tccli/services/trp/trp_client.py +54 -53
- tccli/services/trro/trro_client.py +24 -23
- tccli/services/trtc/trtc_client.py +44 -43
- tccli/services/tse/tse_client.py +66 -65
- tccli/services/tsf/tsf_client.py +220 -219
- tccli/services/tsw/tsw_client.py +5 -4
- tccli/services/tts/tts_client.py +4 -3
- tccli/services/ump/ump_client.py +18 -17
- tccli/services/vm/vm_client.py +7 -6
- tccli/services/vms/vms_client.py +3 -2
- tccli/services/vod/v20180717/api.json +10 -10
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vod/vod_client.py +169 -168
- tccli/services/vpc/vpc_client.py +317 -316
- tccli/services/vrs/vrs_client.py +8 -7
- tccli/services/waf/waf_client.py +133 -132
- tccli/services/wav/wav_client.py +27 -26
- tccli/services/wedata/wedata_client.py +319 -318
- tccli/services/weilingwith/weilingwith_client.py +58 -57
- tccli/services/wss/wss_client.py +4 -3
- tccli/services/yinsuda/yinsuda_client.py +21 -20
- tccli/services/youmall/youmall_client.py +32 -31
- tccli/services/yunjing/yunjing_client.py +101 -100
- tccli/services/yunsou/yunsou_client.py +3 -2
- {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/RECORD +292 -284
- {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1035.1.dist-info → tccli-3.0.1037.1.dist-info}/license_files/LICENSE +0 -0
@@ -141,7 +141,7 @@
|
|
141
141
|
"status": "online"
|
142
142
|
},
|
143
143
|
"CreateDBInstance": {
|
144
|
-
"document": "本接口(CreateDBInstance)用于创建包年包月的云数据库实例(包括主实例、灾备实例和只读实例),可通过传入实例规格、MySQL 版本号、购买时长和数量等信息创建云数据库实例。\n\n该接口为异步接口,您还可以使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询该实例的详细信息。当该实例的 Status 为1,且 TaskStatus 为0,表示实例已经发货成功。\n\n1. 首先请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口查询可创建的实例规格信息,然后请使用 [查询数据库价格](https://cloud.tencent.com/document/api/236/18566) 接口查询可创建实例的售卖价格;\n2. 单次创建实例最大支持 100 个,实例时长最大支持 36 个月;\n3. 支持创建 MySQL 5.5 、 MySQL 5.6 、 MySQL 5.7 、 MySQL 8.0 版本;\n4. 支持创建主实例、只读实例、灾备实例;\n5. 当入参指定 Port
|
144
|
+
"document": "本接口(CreateDBInstance)用于创建包年包月的云数据库实例(包括主实例、灾备实例和只读实例),可通过传入实例规格、MySQL 版本号、购买时长和数量等信息创建云数据库实例。\n\n该接口为异步接口,您还可以使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询该实例的详细信息。当该实例的 Status 为1,且 TaskStatus 为0,表示实例已经发货成功。\n\n1. 首先请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口查询可创建的实例规格信息,然后请使用 [查询数据库价格](https://cloud.tencent.com/document/api/236/18566) 接口查询可创建实例的售卖价格;\n2. 单次创建实例最大支持 100 个,实例时长最大支持 36 个月;\n3. 支持创建 MySQL 5.5 、 MySQL 5.6 、 MySQL 5.7 、 MySQL 8.0 版本;\n4. 支持创建主实例、只读实例、灾备实例;\n5. 当入参指定 Port 和 ParamTemplateType 参数模板,相关参数才会自动初始化(不支持基础版实例);\n6. 当入参指定 ParamTemplateId 或 AlarmPolicyList 时,需将SDK提升至最新版本方可支持;",
|
145
145
|
"input": "CreateDBInstanceRequest",
|
146
146
|
"name": "创建云数据库实例(包年包月)",
|
147
147
|
"output": "CreateDBInstanceResponse",
|
tccli/services/cdc/cdc_client.py
CHANGED
@@ -25,7 +25,7 @@ def doModifySiteDeviceInfo(args, parsed_globals):
|
|
25
25
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
26
|
cred = credential.STSAssumeRoleCredential(
|
27
27
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
29
|
)
|
30
30
|
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):
|
31
31
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -77,7 +77,7 @@ def doDescribeDedicatedClusterTypes(args, parsed_globals):
|
|
77
77
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
78
|
cred = credential.STSAssumeRoleCredential(
|
79
79
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
81
|
)
|
82
82
|
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):
|
83
83
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -129,7 +129,7 @@ def doDeleteDedicatedClusters(args, parsed_globals):
|
|
129
129
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
130
130
|
cred = credential.STSAssumeRoleCredential(
|
131
131
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
132
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
132
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
133
133
|
)
|
134
134
|
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):
|
135
135
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -181,7 +181,7 @@ def doDescribeDedicatedClusterCosCapacity(args, parsed_globals):
|
|
181
181
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
182
|
cred = credential.STSAssumeRoleCredential(
|
183
183
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
185
|
)
|
186
186
|
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):
|
187
187
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -233,7 +233,7 @@ def doCreateDedicatedCluster(args, parsed_globals):
|
|
233
233
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
234
|
cred = credential.STSAssumeRoleCredential(
|
235
235
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
237
|
)
|
238
238
|
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):
|
239
239
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -285,7 +285,7 @@ def doDescribeDedicatedClusterHostStatistics(args, parsed_globals):
|
|
285
285
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
286
|
cred = credential.STSAssumeRoleCredential(
|
287
287
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
289
|
)
|
290
290
|
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):
|
291
291
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -337,7 +337,7 @@ def doModifyDedicatedClusterInfo(args, parsed_globals):
|
|
337
337
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
338
338
|
cred = credential.STSAssumeRoleCredential(
|
339
339
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
340
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
341
341
|
)
|
342
342
|
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):
|
343
343
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -389,7 +389,7 @@ def doDescribeSites(args, parsed_globals):
|
|
389
389
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
390
390
|
cred = credential.STSAssumeRoleCredential(
|
391
391
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
392
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
392
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
393
393
|
)
|
394
394
|
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):
|
395
395
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -441,7 +441,7 @@ def doDescribeDedicatedClusterOrders(args, parsed_globals):
|
|
441
441
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
442
|
cred = credential.STSAssumeRoleCredential(
|
443
443
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
444
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
445
|
)
|
446
446
|
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):
|
447
447
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -493,7 +493,7 @@ def doModifySiteInfo(args, parsed_globals):
|
|
493
493
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
494
494
|
cred = credential.STSAssumeRoleCredential(
|
495
495
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
496
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
496
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
497
497
|
)
|
498
498
|
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):
|
499
499
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -545,7 +545,7 @@ def doDescribeDedicatedClusters(args, parsed_globals):
|
|
545
545
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
546
546
|
cred = credential.STSAssumeRoleCredential(
|
547
547
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
548
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
548
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
549
549
|
)
|
550
550
|
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):
|
551
551
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -597,7 +597,7 @@ def doDescribeDedicatedClusterHosts(args, parsed_globals):
|
|
597
597
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
598
598
|
cred = credential.STSAssumeRoleCredential(
|
599
599
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
600
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
600
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
601
601
|
)
|
602
602
|
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):
|
603
603
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -649,7 +649,7 @@ def doDescribeSitesDetail(args, parsed_globals):
|
|
649
649
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
650
|
cred = credential.STSAssumeRoleCredential(
|
651
651
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
653
|
)
|
654
654
|
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):
|
655
655
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -701,7 +701,7 @@ def doCreateDedicatedClusterOrder(args, parsed_globals):
|
|
701
701
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
702
|
cred = credential.STSAssumeRoleCredential(
|
703
703
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
704
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
705
|
)
|
706
706
|
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):
|
707
707
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -753,7 +753,7 @@ def doDescribeDedicatedClusterOverview(args, parsed_globals):
|
|
753
753
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
754
754
|
cred = credential.STSAssumeRoleCredential(
|
755
755
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
756
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
756
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
757
757
|
)
|
758
758
|
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):
|
759
759
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -805,7 +805,7 @@ def doDeleteSites(args, parsed_globals):
|
|
805
805
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
806
|
cred = credential.STSAssumeRoleCredential(
|
807
807
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
808
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
809
|
)
|
810
810
|
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):
|
811
811
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -857,7 +857,7 @@ def doModifyOrderStatus(args, parsed_globals):
|
|
857
857
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
858
|
cred = credential.STSAssumeRoleCredential(
|
859
859
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
860
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
861
|
)
|
862
862
|
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):
|
863
863
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -909,7 +909,7 @@ def doDescribeDedicatedClusterInstanceTypes(args, parsed_globals):
|
|
909
909
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
910
910
|
cred = credential.STSAssumeRoleCredential(
|
911
911
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
912
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
912
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
913
913
|
)
|
914
914
|
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):
|
915
915
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -961,7 +961,7 @@ def doDescribeDedicatedSupportedZones(args, parsed_globals):
|
|
961
961
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
962
962
|
cred = credential.STSAssumeRoleCredential(
|
963
963
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
964
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
964
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
965
965
|
)
|
966
966
|
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):
|
967
967
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -1013,7 +1013,7 @@ def doCreateSite(args, parsed_globals):
|
|
1013
1013
|
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1014
1014
|
cred = credential.STSAssumeRoleCredential(
|
1015
1015
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1016
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
1016
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1017
1017
|
)
|
1018
1018
|
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):
|
1019
1019
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
@@ -1168,6 +1168,7 @@ def parse_global_arg(parsed_globals):
|
|
1168
1168
|
|
1169
1169
|
if g_param[OptionsDefine.Endpoint] is None:
|
1170
1170
|
g_param[OptionsDefine.Endpoint] = conf["cdc"][OptionsDefine.Endpoint]
|
1171
|
+
g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
|
1171
1172
|
except Exception as err:
|
1172
1173
|
raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
|
1173
1174
|
|
@@ -50,9 +50,9 @@
|
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"DescribeDedicatedClusterHosts": {
|
53
|
-
"document": "
|
53
|
+
"document": "查询专用集群宿主机信息",
|
54
54
|
"input": "DescribeDedicatedClusterHostsRequest",
|
55
|
-
"name": "
|
55
|
+
"name": "查询专用集群宿主机信息",
|
56
56
|
"output": "DescribeDedicatedClusterHostsResponse",
|
57
57
|
"status": "online"
|
58
58
|
},
|
@@ -71,9 +71,9 @@
|
|
71
71
|
"status": "online"
|
72
72
|
},
|
73
73
|
"DescribeDedicatedClusterOverview": {
|
74
|
-
"document": "
|
74
|
+
"document": "查询专用集群概览信息",
|
75
75
|
"input": "DescribeDedicatedClusterOverviewRequest",
|
76
|
-
"name": "
|
76
|
+
"name": "查询专用集群概览信息",
|
77
77
|
"output": "DescribeDedicatedClusterOverviewResponse",
|
78
78
|
"status": "online"
|
79
79
|
},
|
@@ -1257,7 +1257,7 @@
|
|
1257
1257
|
"example": "dctype-00000000",
|
1258
1258
|
"member": "string",
|
1259
1259
|
"name": "DedicatedClusterTypeId",
|
1260
|
-
"
|
1260
|
+
"output_required": true,
|
1261
1261
|
"type": "string",
|
1262
1262
|
"value_allowed_null": false
|
1263
1263
|
},
|
@@ -1267,7 +1267,7 @@
|
|
1267
1267
|
"example": "适用于xxx场景",
|
1268
1268
|
"member": "string",
|
1269
1269
|
"name": "Description",
|
1270
|
-
"
|
1270
|
+
"output_required": true,
|
1271
1271
|
"type": "string",
|
1272
1272
|
"value_allowed_null": true
|
1273
1273
|
},
|
@@ -1277,7 +1277,7 @@
|
|
1277
1277
|
"example": "通用小型机规格",
|
1278
1278
|
"member": "string",
|
1279
1279
|
"name": "Name",
|
1280
|
-
"
|
1280
|
+
"output_required": true,
|
1281
1281
|
"type": "string",
|
1282
1282
|
"value_allowed_null": false
|
1283
1283
|
},
|
@@ -1287,7 +1287,7 @@
|
|
1287
1287
|
"example": "无",
|
1288
1288
|
"member": "datetime_iso",
|
1289
1289
|
"name": "CreateTime",
|
1290
|
-
"
|
1290
|
+
"output_required": true,
|
1291
1291
|
"type": "string",
|
1292
1292
|
"value_allowed_null": false
|
1293
1293
|
},
|
@@ -1297,7 +1297,7 @@
|
|
1297
1297
|
"example": "COS",
|
1298
1298
|
"member": "string",
|
1299
1299
|
"name": "SupportedStorageType",
|
1300
|
-
"
|
1300
|
+
"output_required": true,
|
1301
1301
|
"type": "list",
|
1302
1302
|
"value_allowed_null": false
|
1303
1303
|
},
|
@@ -1307,7 +1307,7 @@
|
|
1307
1307
|
"example": "10",
|
1308
1308
|
"member": "int64",
|
1309
1309
|
"name": "SupportedUplinkGiB",
|
1310
|
-
"
|
1310
|
+
"output_required": true,
|
1311
1311
|
"type": "list",
|
1312
1312
|
"value_allowed_null": false
|
1313
1313
|
},
|
@@ -1317,7 +1317,7 @@
|
|
1317
1317
|
"example": "M5",
|
1318
1318
|
"member": "string",
|
1319
1319
|
"name": "SupportedInstanceFamily",
|
1320
|
-
"
|
1320
|
+
"output_required": true,
|
1321
1321
|
"type": "list",
|
1322
1322
|
"value_allowed_null": false
|
1323
1323
|
},
|
@@ -1327,7 +1327,7 @@
|
|
1327
1327
|
"example": "1000",
|
1328
1328
|
"member": "int64",
|
1329
1329
|
"name": "Weight",
|
1330
|
-
"
|
1330
|
+
"output_required": true,
|
1331
1331
|
"type": "int",
|
1332
1332
|
"value_allowed_null": false
|
1333
1333
|
},
|
@@ -1337,17 +1337,17 @@
|
|
1337
1337
|
"example": "100",
|
1338
1338
|
"member": "float",
|
1339
1339
|
"name": "PowerDrawKva",
|
1340
|
-
"
|
1340
|
+
"output_required": true,
|
1341
1341
|
"type": "float",
|
1342
1342
|
"value_allowed_null": false
|
1343
1343
|
},
|
1344
1344
|
{
|
1345
1345
|
"disabled": false,
|
1346
|
-
"document": "
|
1347
|
-
"example": "M5.21XLARGE700
|
1346
|
+
"document": "显示计算资源规格详情,存储等资源不显示",
|
1347
|
+
"example": "M5.21XLARGE700、S5.21XLARGE320",
|
1348
1348
|
"member": "string",
|
1349
1349
|
"name": "ComputeFormatDesc",
|
1350
|
-
"
|
1350
|
+
"output_required": true,
|
1351
1351
|
"type": "string",
|
1352
1352
|
"value_allowed_null": false
|
1353
1353
|
}
|
@@ -1585,7 +1585,7 @@
|
|
1585
1585
|
"example": "无",
|
1586
1586
|
"member": "HostInfo",
|
1587
1587
|
"name": "HostInfoSet",
|
1588
|
-
"
|
1588
|
+
"output_required": true,
|
1589
1589
|
"type": "list",
|
1590
1590
|
"value_allowed_null": true
|
1591
1591
|
},
|
@@ -1595,7 +1595,7 @@
|
|
1595
1595
|
"example": "10",
|
1596
1596
|
"member": "uint64",
|
1597
1597
|
"name": "TotalCount",
|
1598
|
-
"
|
1598
|
+
"output_required": true,
|
1599
1599
|
"type": "int",
|
1600
1600
|
"value_allowed_null": false
|
1601
1601
|
},
|
@@ -1758,7 +1758,7 @@
|
|
1758
1758
|
"example": "10",
|
1759
1759
|
"member": "uint64",
|
1760
1760
|
"name": "CvmCount",
|
1761
|
-
"
|
1761
|
+
"output_required": true,
|
1762
1762
|
"type": "int",
|
1763
1763
|
"value_allowed_null": false
|
1764
1764
|
},
|
@@ -1768,7 +1768,7 @@
|
|
1768
1768
|
"example": "10",
|
1769
1769
|
"member": "uint64",
|
1770
1770
|
"name": "HostCount",
|
1771
|
-
"
|
1771
|
+
"output_required": true,
|
1772
1772
|
"type": "int",
|
1773
1773
|
"value_allowed_null": false
|
1774
1774
|
},
|
@@ -1778,7 +1778,7 @@
|
|
1778
1778
|
"example": "AVAILABLE",
|
1779
1779
|
"member": "string",
|
1780
1780
|
"name": "VpnConnectionState",
|
1781
|
-
"
|
1781
|
+
"output_required": true,
|
1782
1782
|
"type": "string",
|
1783
1783
|
"value_allowed_null": true
|
1784
1784
|
},
|
@@ -1788,7 +1788,7 @@
|
|
1788
1788
|
"example": "无",
|
1789
1789
|
"member": "VpngwBandwidthData",
|
1790
1790
|
"name": "VpngwBandwidthData",
|
1791
|
-
"
|
1791
|
+
"output_required": true,
|
1792
1792
|
"type": "object",
|
1793
1793
|
"value_allowed_null": true
|
1794
1794
|
},
|
@@ -1798,7 +1798,7 @@
|
|
1798
1798
|
"example": "无",
|
1799
1799
|
"member": "LocalNetInfo",
|
1800
1800
|
"name": "LocalNetInfo",
|
1801
|
-
"
|
1801
|
+
"output_required": true,
|
1802
1802
|
"type": "object",
|
1803
1803
|
"value_allowed_null": true
|
1804
1804
|
},
|
@@ -1808,10 +1808,40 @@
|
|
1808
1808
|
"example": "无",
|
1809
1809
|
"member": "VpngwBandwidthData",
|
1810
1810
|
"name": "VpnConnectionBandwidthData",
|
1811
|
-
"
|
1811
|
+
"output_required": true,
|
1812
1812
|
"type": "list",
|
1813
1813
|
"value_allowed_null": true
|
1814
1814
|
},
|
1815
|
+
{
|
1816
|
+
"disabled": false,
|
1817
|
+
"document": "宿主机资源概览信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
1818
|
+
"example": "无",
|
1819
|
+
"member": "HostDetailInfo",
|
1820
|
+
"name": "HostDetailInfo",
|
1821
|
+
"output_required": false,
|
1822
|
+
"type": "list",
|
1823
|
+
"value_allowed_null": true
|
1824
|
+
},
|
1825
|
+
{
|
1826
|
+
"disabled": false,
|
1827
|
+
"document": "热备宿主机数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
1828
|
+
"example": "1",
|
1829
|
+
"member": "uint64",
|
1830
|
+
"name": "HostStandbyCount",
|
1831
|
+
"output_required": false,
|
1832
|
+
"type": "int",
|
1833
|
+
"value_allowed_null": true
|
1834
|
+
},
|
1835
|
+
{
|
1836
|
+
"disabled": false,
|
1837
|
+
"document": "普通宿主机数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
1838
|
+
"example": "1",
|
1839
|
+
"member": "uint64",
|
1840
|
+
"name": "HostNormalCount",
|
1841
|
+
"output_required": false,
|
1842
|
+
"type": "int",
|
1843
|
+
"value_allowed_null": true
|
1844
|
+
},
|
1815
1845
|
{
|
1816
1846
|
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
1817
1847
|
"member": "string",
|
@@ -2183,7 +2213,7 @@
|
|
2183
2213
|
"type": "object"
|
2184
2214
|
},
|
2185
2215
|
"DetailData": {
|
2186
|
-
"document": "
|
2216
|
+
"document": "带有时间戳的详细数据。",
|
2187
2217
|
"members": [
|
2188
2218
|
{
|
2189
2219
|
"disabled": false,
|
@@ -2208,6 +2238,62 @@
|
|
2208
2238
|
],
|
2209
2239
|
"usage": "out"
|
2210
2240
|
},
|
2241
|
+
"HostDetailInfo": {
|
2242
|
+
"document": "宿主机资源的概览详细信息。",
|
2243
|
+
"members": [
|
2244
|
+
{
|
2245
|
+
"disabled": false,
|
2246
|
+
"document": "类型族\n注意:此字段可能返回 null,表示取不到有效值。",
|
2247
|
+
"example": "标准型S5",
|
2248
|
+
"member": "string",
|
2249
|
+
"name": "HostTypeFamily",
|
2250
|
+
"output_required": false,
|
2251
|
+
"type": "string",
|
2252
|
+
"value_allowed_null": true
|
2253
|
+
},
|
2254
|
+
{
|
2255
|
+
"disabled": false,
|
2256
|
+
"document": "总CPU\n注意:此字段可能返回 null,表示取不到有效值。",
|
2257
|
+
"example": "64",
|
2258
|
+
"member": "float",
|
2259
|
+
"name": "CpuTotal",
|
2260
|
+
"output_required": false,
|
2261
|
+
"type": "float",
|
2262
|
+
"value_allowed_null": true
|
2263
|
+
},
|
2264
|
+
{
|
2265
|
+
"disabled": false,
|
2266
|
+
"document": "可用CPU\n注意:此字段可能返回 null,表示取不到有效值。",
|
2267
|
+
"example": "64",
|
2268
|
+
"member": "float",
|
2269
|
+
"name": "CpuAvailable",
|
2270
|
+
"output_required": false,
|
2271
|
+
"type": "float",
|
2272
|
+
"value_allowed_null": true
|
2273
|
+
},
|
2274
|
+
{
|
2275
|
+
"disabled": false,
|
2276
|
+
"document": "总内存\n注意:此字段可能返回 null,表示取不到有效值。",
|
2277
|
+
"example": "320",
|
2278
|
+
"member": "float",
|
2279
|
+
"name": "MemTotal",
|
2280
|
+
"output_required": false,
|
2281
|
+
"type": "float",
|
2282
|
+
"value_allowed_null": true
|
2283
|
+
},
|
2284
|
+
{
|
2285
|
+
"disabled": false,
|
2286
|
+
"document": "可用内存\n注意:此字段可能返回 null,表示取不到有效值。",
|
2287
|
+
"example": "320",
|
2288
|
+
"member": "float",
|
2289
|
+
"name": "MemAvailable",
|
2290
|
+
"output_required": false,
|
2291
|
+
"type": "float",
|
2292
|
+
"value_allowed_null": true
|
2293
|
+
}
|
2294
|
+
],
|
2295
|
+
"usage": "out"
|
2296
|
+
},
|
2211
2297
|
"HostInfo": {
|
2212
2298
|
"document": "CDC宿主机的详细信息",
|
2213
2299
|
"members": [
|
@@ -2716,7 +2802,7 @@
|
|
2716
2802
|
},
|
2717
2803
|
{
|
2718
2804
|
"disabled": false,
|
2719
|
-
"document": "是否满足下面环境条件:\n1、场地没有材料要求或验收标准会影响 CDC 设备配送和安装。\n2、确定的机架位置包含:\n温度范围为 41 到 104°F (5 到 40°C)。\n湿度范围为 10°F (-12°C)和 8% RH (相对湿度)到 70°F(21°C)和 80% RH。\n机架位置的气流方向为从前向后,且应具有足够的 CFM (每分钟立方英尺)
|
2805
|
+
"document": "是否满足下面环境条件:\n1、场地没有材料要求或验收标准会影响 CDC 设备配送和安装。\n2、确定的机架位置包含:\n温度范围为 41 到 104°F (5 到 40°C)。\n湿度范围为 10°F (-12°C)和 8% RH (相对湿度)到 70°F(21°C)和 80% RH。\n机架位置的气流方向为从前向后,且应具有足够的 CFM (每分钟立方英尺),散热功率须达到CDC运行功率值的 145.8 倍以上。",
|
2720
2806
|
"example": "true",
|
2721
2807
|
"member": "bool",
|
2722
2808
|
"name": "ConditionRequirement",
|
@@ -2734,7 +2820,7 @@
|
|
2734
2820
|
},
|
2735
2821
|
{
|
2736
2822
|
"disabled": false,
|
2737
|
-
"document": "是否提供冗余的上游设备(交换机或路由器)
|
2823
|
+
"document": "是否提供冗余的上游设备(交换机或路由器),以便实现网络出口的高可用。",
|
2738
2824
|
"example": "true",
|
2739
2825
|
"member": "bool",
|
2740
2826
|
"name": "RedundantNetworking",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
{
|
61
61
|
"document": "专用集群宿主机信息",
|
62
62
|
"input": "POST / HTTP/1.1\nHost: cdc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDedicatedClusterHosts\n<公共请求参数>\n\n{\n \"DedicatedClusterId\": \"cluster-nk6e8j6c\"\n}",
|
63
|
-
"output": "{\n \"Response\": {\n \"HostInfoSet\": [\n {\n \"HostIp\": \"50.4.2.2\",\n \"ServiceType\": \"云服务器宿主机\",\n \"HostStatus\": \"PENDING\",\n \"HostType\": \"标准型S5.21XLARGE320\",\n \"RunTime\": \"2022-03-29 16:37:01\",\n \"ExpireTime\": \"2025-03-29 16:37:01\",\n \"CpuAvailable\": 24,\n \"CpuTotal\": 24,\n \"MemAvailable\": 96,\n \"MemTotal\": 96\n },\n {\n \"HostIp\": \"50.4.2.3\",\n \"ServiceType\": \"云服务器宿主机\",\n \"HostStatus\": \"PENDING\",\n \"HostType\": \"标准型S5.21XLARGE320\",\n \"RunTime\": \"2022-03-30 16:37:01\",\n \"ExpireTime\": \"2025-03-30 16:37:01\",\n \"CpuAvailable\": 24,\n \"CpuTotal\": 24,\n \"MemAvailable\": 96,\n \"MemTotal\": 96\n }\n ],\n \"TotalCount\": 2,\n \"RequestId\": \"7ffc723c-49d2-45ae-82cc-270aa35d3c59\"\n }\n}",
|
63
|
+
"output": "{\n \"Response\": {\n \"HostInfoSet\": [\n {\n \"HostId\": \"host-xxxxxxxx\",\n \"HostIp\": \"50.4.2.2\",\n \"ServiceType\": \"云服务器宿主机\",\n \"HostStatus\": \"PENDING\",\n \"HostType\": \"标准型S5.21XLARGE320\",\n \"RunTime\": \"2022-03-29 16:37:01\",\n \"ExpireTime\": \"2025-03-29 16:37:01\",\n \"CpuAvailable\": 24,\n \"CpuTotal\": 24,\n \"MemAvailable\": 96,\n \"MemTotal\": 96\n },\n {\n \"HostId\": \"host-xxxxxxxx\",\n \"HostIp\": \"50.4.2.3\",\n \"ServiceType\": \"云服务器宿主机\",\n \"HostStatus\": \"PENDING\",\n \"HostType\": \"标准型S5.21XLARGE320\",\n \"RunTime\": \"2022-03-30 16:37:01\",\n \"ExpireTime\": \"2025-03-30 16:37:01\",\n \"CpuAvailable\": 24,\n \"CpuTotal\": 24,\n \"MemAvailable\": 96,\n \"MemTotal\": 96\n }\n ],\n \"TotalCount\": 2,\n \"RequestId\": \"7ffc723c-49d2-45ae-82cc-270aa35d3c59\"\n }\n}",
|
64
64
|
"title": "专用集群宿主机信息"
|
65
65
|
}
|
66
66
|
],
|
@@ -84,7 +84,7 @@
|
|
84
84
|
{
|
85
85
|
"document": "专用集群概览信息",
|
86
86
|
"input": "POST / HTTP/1.1\nHost: cdc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDedicatedClusterOverview\n<公共请求参数>\n\n{\n \"DedicatedClusterId\": \"cluster-nk6e8j6c\"\n}",
|
87
|
-
"output": "{\n \"Response\": {\n \"CvmCount\":
|
87
|
+
"output": "{\n \"Response\": {\n \"CvmCount\": 1,\n \"HostCount\": 1,\n \"HostStandbyCount\": 1,\n \"HostNormalCount\": 1,\n \"VpnConnectionState\": \"abc\",\n \"VpngwBandwidthData\": {\n \"OutBandwidth\": {\n \"Timestamps\": [\n 0\n ],\n \"Values\": [\n 0\n ]\n },\n \"InBandwidth\": {\n \"Timestamps\": [\n 0\n ],\n \"Values\": [\n 0\n ]\n }\n },\n \"LocalNetInfo\": {\n \"Protocol\": \"abc\",\n \"VpcId\": \"abc\",\n \"BGPRoute\": \"abc\",\n \"LocalIp\": \"abc\"\n },\n \"VpnConnectionBandwidthData\": [\n {\n \"OutBandwidth\": {\n \"Timestamps\": [\n 0\n ],\n \"Values\": [\n 0\n ]\n },\n \"InBandwidth\": {\n \"Timestamps\": [\n 0\n ],\n \"Values\": [\n 0\n ]\n }\n }\n ],\n \"HostDetailInfo\": [\n {\n \"HostTypeFamily\": \"abc\",\n \"CpuTotal\": 0,\n \"CpuAvailable\": 0,\n \"MemTotal\": 0,\n \"MemAvailable\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
88
88
|
"title": "专用集群概览信息"
|
89
89
|
}
|
90
90
|
],
|