tccli-intl-en 3.0.1237.1__py2.py3-none-any.whl → 3.0.1282.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +17 -1
- tccli/services/advisor/advisor_client.py +8 -2
- tccli/services/aiart/aiart_client.py +4 -1
- tccli/services/ams/ams_client.py +16 -4
- tccli/services/antiddos/antiddos_client.py +280 -70
- tccli/services/apigateway/apigateway_client.py +372 -93
- tccli/services/apm/apm_client.py +52 -13
- tccli/services/asr/asr_client.py +8 -2
- tccli/services/autoscaling/autoscaling_client.py +232 -58
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/batch/batch_client.py +112 -28
- tccli/services/bi/bi_client.py +1242 -4
- tccli/services/bi/v20220105/api.json +5340 -107
- tccli/services/bi/v20220105/examples.json +196 -1
- tccli/services/billing/billing_client.py +168 -42
- tccli/services/cam/cam_client.py +324 -81
- tccli/services/captcha/captcha_client.py +4 -1
- tccli/services/car/car_client.py +132 -33
- tccli/services/cbs/cbs_client.py +152 -38
- tccli/services/ccc/ccc_client.py +732 -98
- tccli/services/ccc/v20200210/api.json +1727 -196
- tccli/services/ccc/v20200210/examples.json +64 -0
- tccli/services/cdb/cdb_client.py +532 -133
- tccli/services/cdc/cdc_client.py +80 -20
- tccli/services/cdc/v20201214/api.json +2 -2
- tccli/services/cdc/v20201214/examples.json +4 -4
- tccli/services/cdn/cdn_client.py +176 -44
- tccli/services/cdwdoris/cdwdoris_client.py +308 -77
- tccli/services/cdwpg/cdwpg_client.py +96 -24
- tccli/services/cdz/__init__.py +4 -0
- tccli/services/cdz/cdz_client.py +210 -0
- tccli/services/cdz/v20221123/api.json +233 -0
- tccli/services/cdz/v20221123/examples.json +12 -0
- tccli/services/cfg/cfg_client.py +64 -16
- tccli/services/cfs/cfs_client.py +156 -39
- tccli/services/cfw/cfw_client.py +264 -66
- tccli/services/chdfs/chdfs_client.py +116 -29
- tccli/services/ciam/ciam_client.py +64 -16
- tccli/services/ckafka/ckafka_client.py +575 -77
- tccli/services/ckafka/v20190819/api.json +2749 -1470
- tccli/services/ckafka/v20190819/examples.json +209 -155
- tccli/services/clb/clb_client.py +332 -83
- tccli/services/clb/v20180317/api.json +29 -14
- tccli/services/cloudaudit/cloudaudit_client.py +72 -18
- tccli/services/cls/cls_client.py +348 -87
- tccli/services/cmq/cmq_client.py +12 -801
- tccli/services/cmq/v20190304/api.json +173 -1367
- tccli/services/cmq/v20190304/examples.json +0 -120
- tccli/services/config/config_client.py +24 -6
- tccli/services/controlcenter/controlcenter_client.py +4 -1
- tccli/services/csip/csip_client.py +136 -34
- tccli/services/ctsdb/ctsdb_client.py +8 -2
- tccli/services/cvm/cvm_client.py +627 -110
- tccli/services/cvm/v20170312/api.json +750 -340
- tccli/services/cvm/v20170312/examples.json +105 -59
- tccli/services/cwp/cwp_client.py +1860 -465
- tccli/services/cynosdb/cynosdb_client.py +1749 -439
- tccli/services/cynosdb/v20190107/api.json +11763 -7697
- tccli/services/cynosdb/v20190107/examples.json +132 -4
- tccli/services/dataintegration/dataintegration_client.py +4 -1
- tccli/services/dayu/dayu_client.py +412 -103
- tccli/services/dbbrain/dbbrain_client.py +168 -42
- tccli/services/dc/dc_client.py +72 -18
- tccli/services/dcdb/dcdb_client.py +248 -62
- tccli/services/dlc/dlc_client.py +756 -111
- tccli/services/dlc/v20210125/api.json +637 -13
- tccli/services/dlc/v20210125/examples.json +48 -0
- tccli/services/dms/dms_client.py +8 -2
- tccli/services/dnspod/dnspod_client.py +353 -74
- tccli/services/dnspod/v20210323/api.json +196 -0
- tccli/services/dnspod/v20210323/examples.json +24 -0
- tccli/services/domain/domain_client.py +96 -24
- tccli/services/dts/dts_client.py +332 -83
- tccli/services/eb/eb_client.py +104 -26
- tccli/services/ecdn/ecdn_client.py +60 -15
- tccli/services/ecm/ecm_client.py +496 -124
- tccli/services/eiam/eiam_client.py +160 -40
- tccli/services/emr/emr_client.py +2784 -115
- tccli/services/emr/v20190103/api.json +14647 -4756
- tccli/services/emr/v20190103/examples.json +408 -40
- tccli/services/es/es_client.py +84 -21
- tccli/services/facefusion/facefusion_client.py +12 -3
- tccli/services/faceid/faceid_client.py +76 -19
- tccli/services/faceid/v20180301/api.json +79 -14
- tccli/services/faceid/v20180301/examples.json +3 -3
- tccli/services/gaap/gaap_client.py +352 -88
- tccli/services/gme/gme_client.py +40 -10
- tccli/services/gpm/gpm_client.py +72 -18
- tccli/services/gse/gse_client.py +88 -22
- tccli/services/gwlb/gwlb_client.py +72 -18
- tccli/services/iai/iai_client.py +116 -29
- tccli/services/iap/iap_client.py +24 -6
- tccli/services/ims/ims_client.py +4 -1
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +168 -42
- tccli/services/intlpartnersmgt/v20220928/api.json +11 -11
- tccli/services/iotcloud/iotcloud_client.py +80 -20
- tccli/services/ip/ip_client.py +24 -6
- tccli/services/kms/kms_client.py +272 -68
- tccli/services/lcic/lcic_client.py +212 -53
- tccli/services/lighthouse/lighthouse_client.py +296 -74
- tccli/services/lighthouse/v20200324/api.json +14 -14
- tccli/services/lighthouse/v20200324/examples.json +5 -5
- tccli/services/live/live_client.py +480 -120
- tccli/services/lke/lke_client.py +360 -90
- tccli/services/lke/v20231130/api.json +182 -39
- tccli/services/lkeap/__init__.py +4 -0
- tccli/services/lkeap/lkeap_client.py +546 -0
- tccli/services/lkeap/v20240522/api.json +855 -0
- tccli/services/lkeap/v20240522/examples.json +72 -0
- tccli/services/mariadb/mariadb_client.py +200 -50
- tccli/services/mdc/mdc_client.py +72 -18
- tccli/services/mdl/mdl_client.py +132 -33
- tccli/services/mdl/v20200326/api.json +186 -12
- tccli/services/mdl/v20200326/examples.json +16 -16
- tccli/services/mdp/mdp_client.py +680 -70
- tccli/services/mdp/v20200527/api.json +748 -23
- tccli/services/mdp/v20200527/examples.json +143 -79
- tccli/services/message/__init__.py +4 -0
- tccli/services/message/message_client.py +210 -0
- tccli/services/message/v20181225/api.json +72 -0
- tccli/services/message/v20181225/examples.json +13 -0
- tccli/services/mongodb/mongodb_client.py +340 -29
- tccli/services/mongodb/v20190725/api.json +811 -226
- tccli/services/mongodb/v20190725/examples.json +54 -22
- tccli/services/monitor/monitor_client.py +864 -152
- tccli/services/monitor/v20180724/api.json +657 -8
- tccli/services/monitor/v20180724/examples.json +152 -4
- tccli/services/mps/mps_client.py +592 -92
- tccli/services/mps/v20190612/api.json +2931 -399
- tccli/services/mps/v20190612/examples.json +64 -14
- tccli/services/msp/msp_client.py +28 -7
- tccli/services/ocr/ocr_client.py +212 -45
- tccli/services/ocr/v20181119/api.json +872 -112
- tccli/services/ocr/v20181119/examples.json +12 -4
- tccli/services/omics/omics_client.py +80 -20
- tccli/services/organization/organization_client.py +464 -116
- tccli/services/postgres/postgres_client.py +364 -91
- tccli/services/postgres/v20170312/api.json +134 -109
- tccli/services/postgres/v20170312/examples.json +14 -14
- tccli/services/privatedns/privatedns_client.py +124 -31
- tccli/services/pts/pts_client.py +192 -48
- tccli/services/quota/__init__.py +4 -0
- tccli/services/quota/quota_client.py +434 -0
- tccli/services/quota/v20241204/api.json +548 -0
- tccli/services/quota/v20241204/examples.json +51 -0
- tccli/services/rce/rce_client.py +4 -1
- tccli/services/redis/redis_client.py +592 -106
- tccli/services/redis/v20180412/api.json +636 -240
- tccli/services/redis/v20180412/examples.json +98 -56
- tccli/services/region/region_client.py +12 -3
- tccli/services/rum/rum_client.py +240 -60
- tccli/services/scf/scf_client.py +168 -42
- tccli/services/ses/ses_client.py +116 -29
- tccli/services/sms/sms_client.py +72 -18
- tccli/services/sqlserver/sqlserver_client.py +3772 -387
- tccli/services/sqlserver/v20180328/api.json +9760 -3380
- tccli/services/sqlserver/v20180328/examples.json +478 -18
- tccli/services/ssl/ssl_client.py +152 -38
- tccli/services/ssm/ssm_client.py +96 -24
- tccli/services/sts/sts_client.py +20 -5
- tccli/services/tag/tag_client.py +120 -30
- tccli/services/tat/tat_client.py +76 -19
- tccli/services/tbaas/tbaas_client.py +16 -4
- tccli/services/tcaplusdb/tcaplusdb_client.py +208 -52
- tccli/services/tcaplusdb/v20190823/api.json +836 -760
- tccli/services/tcaplusdb/v20190823/examples.json +3 -3
- tccli/services/tchd/tchd_client.py +4 -1
- tccli/services/tcmpp/tcmpp_client.py +416 -104
- tccli/services/tcr/tcr_client.py +304 -76
- tccli/services/tcsas/tcsas_client.py +236 -59
- tccli/services/tcsas/v20250106/api.json +155 -79
- tccli/services/tcsas/v20250106/examples.json +3 -3
- tccli/services/tcss/tcss_client.py +1320 -330
- tccli/services/tdid/tdid_client.py +192 -48
- tccli/services/tdmq/tdmq_client.py +376 -94
- tccli/services/tem/tem_client.py +224 -56
- tccli/services/teo/teo_client.py +1127 -245
- tccli/services/teo/v20220901/api.json +382 -58
- tccli/services/teo/v20220901/examples.json +24 -0
- tccli/services/tione/__init__.py +4 -0
- tccli/services/tione/tione_client.py +210 -0
- tccli/services/tione/v20211111/api.json +3074 -0
- tccli/services/tione/v20211111/examples.json +12 -0
- tccli/services/tiw/tiw_client.py +204 -51
- tccli/services/tke/tke_client.py +552 -138
- tccli/services/tms/tms_client.py +4 -1
- tccli/services/tmt/tmt_client.py +4 -1
- tccli/services/trabbit/trabbit_client.py +116 -29
- tccli/services/trro/trro_client.py +76 -19
- tccli/services/trtc/trtc_client.py +420 -55
- tccli/services/trtc/v20190722/api.json +685 -23
- tccli/services/trtc/v20190722/examples.json +39 -7
- tccli/services/tts/tts_client.py +4 -1
- tccli/services/vclm/vclm_client.py +8 -2
- tccli/services/vm/vm_client.py +16 -4
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vod/vod_client.py +716 -179
- tccli/services/vpc/v20170312/api.json +970 -75
- tccli/services/vpc/v20170312/examples.json +106 -10
- tccli/services/vpc/vpc_client.py +1876 -361
- tccli/services/waf/v20180125/api.json +1372 -194
- tccli/services/waf/v20180125/examples.json +89 -1
- tccli/services/waf/waf_client.py +1051 -147
- tccli/services/wedata/v20250806/api.json +13644 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +5830 -1026
- tccli/services/yunjing/yunjing_client.py +284 -71
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/RECORD +214 -192
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1237.1.dist-info → tccli_intl_en-3.0.1282.1.dist-info}/top_level.txt +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"actions": {
|
|
3
3
|
"AllocateHosts": [
|
|
4
4
|
{
|
|
5
|
-
"document": "This example shows you how to purchase a
|
|
6
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AllocateHosts\n<Common request parameters>\n\n{\n \"
|
|
7
|
-
"output": "{\n \"Response\": {\n \"HostIdSet\": [\n \"host-
|
|
8
|
-
"title": "Purchasing a
|
|
5
|
+
"document": "This example shows you how to purchase a hourly-billed HC20 CDH instance in Singapore Zone 1.",
|
|
6
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AllocateHosts\n<Common request parameters>\n\n{\n \"Placement\": {\n \"Zone\": \"ap-singapore-1\"\n },\n \"HostChargeType\": \"POSTPAID_BY_HOUR\",\n \"HostType\": \"HC20\",\n \"HostCount\": 1,\n \"TagSpecification\": [\n {\n \"ResourceType\": \"host\",\n \"Tags\": [\n {\n \"Key\": \"MyKey\",\n \"Value\": \"MyValue\"\n }\n ]\n }\n ]\n}",
|
|
7
|
+
"output": "{\n \"Response\": {\n \"HostIdSet\": [\n \"host-hd25xn3s\"\n ],\n \"RequestId\": \"073aa87b-67a3-4409-b57d-e38ce3384b2b\"\n }\n}",
|
|
8
|
+
"title": "Purchasing a hourly-billed CDH instance"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"AssociateInstancesKeyPairs": [
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
],
|
|
75
75
|
"CreateLaunchTemplate": [
|
|
76
76
|
{
|
|
77
|
-
"document": "This example shows you how to only pass the required parameters such as Zone, image id and launch template ID, while other parameters use system default values. Specific configuration is as follows: The instance location is Guangzhou Zone
|
|
78
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLaunchTemplate\n<Common request parameters>\n\n{\n \"LaunchTemplateName\": \"myTemplate\",\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-
|
|
77
|
+
"document": "This example shows you how to only pass the required parameters such as Zone, image id and launch template ID, while other parameters use system default values. Specific configuration is as follows: The instance location is Guangzhou Zone 6, the image id is img-pmqg1cw7, and the instance launch template name is myTemplate.",
|
|
78
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLaunchTemplate\n<Common request parameters>\n\n{\n \"LaunchTemplateName\": \"myTemplate\",\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-6\"\n },\n \"ImageId\": \"img-pmqg1cw7\"\n}",
|
|
79
79
|
"output": "{\n \"Response\": {\n \"LaunchTemplateId\": \"lt-lobxe2yo\",\n \"RequestId\": \"9b4ad85f-1657-4445-111d-3c0a9fbec309\"\n }\n}",
|
|
80
80
|
"title": "Use the Simplest Parameters to Create an Instance Launch Template"
|
|
81
81
|
}
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
{
|
|
147
147
|
"document": "This example shows you how to query an instance by the CHC ID.",
|
|
148
148
|
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChcHosts\n<Common request parameters>\n\n{\n \"ChcIds\": [\n \"chc-1a2b3c4d\"\n ]\n}",
|
|
149
|
-
"output": "{\n \"Response\": {\n \"ChcHostSet\": [\n {\n \"ChcId\": \"chc-1a2b3c4d\",\n \"InstanceName\": \"Hosted CVM instance\",\n \"SerialNumber\": \"sn34asdfabd\",\n \"InstanceState\": \"RUNNING\",\n \"DeviceType\": \"CHC_HS1\",\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-
|
|
149
|
+
"output": "{\n \"Response\": {\n \"ChcHostSet\": [\n {\n \"ChcId\": \"chc-1a2b3c4d\",\n \"InstanceName\": \"Hosted CVM instance\",\n \"SerialNumber\": \"sn34asdfabd\",\n \"InstanceState\": \"RUNNING\",\n \"DeviceType\": \"CHC_HS1\",\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-6\"\n },\n \"BmcVirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-a2676p0e\",\n \"VpcId\": \"vpc-g7wzcv7n\"\n },\n \"BmcIp\": \"10.12.10.34\",\n \"BmcSecurityGroupIds\": [\n \"sg-1a2b3c4d\"\n ],\n \"DeployVirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-a26734fs\",\n \"VpcId\": \"vpc-g7wz234f\"\n },\n \"DeployIp\": \"10.12.20.34\",\n \"DeploySecurityGroupIds\": [\n \"sg-1a2b34af\"\n ],\n \"CvmInstanceId\": \"ins-1a2bafst\",\n \"CreatedTime\": \"2020-03-10T02:43:51Z\",\n \"HardwareDescription\": \"50C 128G 12*4T\",\n \"Memory\": 128,\n \"DeployMAC\": \"52:54:00:68:CC:00\",\n \"BmcMAC\": \"52:54:00:68:CC:01\",\n \"Disk\": \"12*4T\",\n \"CPU\": 50\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"62DDFFC6-FDB5-44F7-20A6-59152E3D129A\"\n }\n}",
|
|
150
150
|
"title": "Querying an instance by the CHC ID"
|
|
151
151
|
}
|
|
152
152
|
],
|
|
@@ -169,8 +169,8 @@
|
|
|
169
169
|
"DescribeHosts": [
|
|
170
170
|
{
|
|
171
171
|
"document": "This example shows you how to query the details of one or more CDH instances.",
|
|
172
|
-
"input": "
|
|
173
|
-
"output": "{\n
|
|
172
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHosts\n<Common request parameters>\n\n{\n \"Filters\": [\n {\n \"Name\": \"zone\",\n \"Values\": [\n \"ap-singapore-1\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
|
173
|
+
"output": "{\n \"Response\": {\n \"HostSet\": [\n {\n \"CageId\": \"\",\n \"CreatedTime\": \"2025-11-11T08:37:23Z\",\n \"ExpiredTime\": null,\n \"HostChargeType\": \"POSTPAID_BY_HOUR\",\n \"HostId\": \"host-hd25xn3s\",\n \"HostName\": \"Unnamed\",\n \"HostResource\": {\n \"CpuAvailable\": 32,\n \"CpuTotal\": 32,\n \"DiskAvailable\": 1000,\n \"DiskTotal\": 1000,\n \"DiskType\": \"LOCAL_SSD\",\n \"GpuAvailable\": 0,\n \"GpuTotal\": 0,\n \"MemAvailable\": 96,\n \"MemTotal\": 96\n },\n \"HostState\": \"RUNNING\",\n \"HostType\": \"HC20\",\n \"InstanceIds\": [],\n \"Placement\": {\n \"ProjectId\": 0,\n \"Zone\": \"ap-singapore-1\"\n },\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\"\n ],\n \"RequestId\": \"801f6cbc-d5eb-4263-90e0-2c568d437544\",\n \"TotalCount\": 2\n }\n}",
|
|
174
174
|
"title": "Querying the list of CDH instances"
|
|
175
175
|
}
|
|
176
176
|
],
|
|
@@ -223,29 +223,29 @@
|
|
|
223
223
|
"DescribeInstanceFamilyConfigs": [
|
|
224
224
|
{
|
|
225
225
|
"document": "This example shows you how to query the supported instance families in the Guangzhou region.",
|
|
226
|
-
"input": "
|
|
227
|
-
"output": "{\n \"Response\": {\n \"InstanceFamilyConfigSet\": [\n {\n \"InstanceFamilyName\": \"Standard S1\",\n \"InstanceFamily\": \"S1\"\n },\n {\n \"InstanceFamilyName\": \"Network-optimized N1\",\n \"InstanceFamily\": \"N1\"\n },\n {\n \"InstanceFamilyName\": \"High IO I1\",\n \"InstanceFamily\": \"I1\"\n },\n {\n \"InstanceFamilyName\": \"MEM optimized M1\",\n \"InstanceFamily\": \"M1\"\n },\n {\n \"InstanceFamilyName\": \"Standard S2\",\n \"InstanceFamily\": \"S2\"\n },\n {\n \"InstanceFamilyName\": \"Standard network enhanced SN2\",\n \"InstanceFamily\": \"SN2\"\n },\n {\n \"InstanceFamilyName\": \"High IO I2\",\n \"InstanceFamily\": \"I2\"\n },\n {\n \"InstanceFamilyName\": \"MEM optimized M2\",\n \"InstanceFamily\": \"M2\"\n },\n {\n \"InstanceFamilyName\": \"Compute C2\",\n \"InstanceFamily\": \"C2\"\n },\n {\n \"InstanceFamilyName\": \"Compute Network-optimized CN2\",\n \"InstanceFamily\": \"CN2\"\n },\n {\n \"InstanceFamilyName\": \"Standard S3\",\n \"InstanceFamily\": \"S3\"\n },\n {\n \"InstanceFamilyName\": \"Compute C3\",\n \"InstanceFamily\": \"C3\"\n },\n {\n \"InstanceFamilyName\": \"FPGA FX2\",\n \"InstanceFamily\": \"FX2\"\n },\n {\n \"InstanceFamilyName\": \"GPU compute GN2\",\n \"InstanceFamily\": \"GN2\"\n },\n {\n \"InstanceFamilyName\": \"GPU rendering GA2\",\n \"InstanceFamily\": \"GA2\"\n },\n {\n \"InstanceFamilyName\": \"GPU compute GN8\",\n \"InstanceFamily\": \"GN8\"\n },\n {\n \"InstanceFamilyName\": \"Dedicated\",\n \"InstanceFamily\": \"CDH\"\n },\n {\n \"InstanceFamilyName\": \"Shared core\",\n \"InstanceFamily\": \"SHARED\"\n }
|
|
226
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceFamilyConfigs\n&<Common request parameters>\n\n{}",
|
|
227
|
+
"output": "{\n \"Response\": {\n \"InstanceFamilyConfigSet\": [\n {\n \"InstanceFamilyName\": \"Standard S1\",\n \"InstanceFamily\": \"S1\"\n },\n {\n \"InstanceFamilyName\": \"Network-optimized N1\",\n \"InstanceFamily\": \"N1\"\n },\n {\n \"InstanceFamilyName\": \"High IO I1\",\n \"InstanceFamily\": \"I1\"\n },\n {\n \"InstanceFamilyName\": \"MEM optimized M1\",\n \"InstanceFamily\": \"M1\"\n },\n {\n \"InstanceFamilyName\": \"Standard S2\",\n \"InstanceFamily\": \"S2\"\n },\n {\n \"InstanceFamilyName\": \"Standard network enhanced SN2\",\n \"InstanceFamily\": \"SN2\"\n },\n {\n \"InstanceFamilyName\": \"High IO I2\",\n \"InstanceFamily\": \"I2\"\n },\n {\n \"InstanceFamilyName\": \"MEM optimized M2\",\n \"InstanceFamily\": \"M2\"\n },\n {\n \"InstanceFamilyName\": \"Compute C2\",\n \"InstanceFamily\": \"C2\"\n },\n {\n \"InstanceFamilyName\": \"Compute Network-optimized CN2\",\n \"InstanceFamily\": \"CN2\"\n },\n {\n \"InstanceFamilyName\": \"Standard S3\",\n \"InstanceFamily\": \"S3\"\n },\n {\n \"InstanceFamilyName\": \"Compute C3\",\n \"InstanceFamily\": \"C3\"\n },\n {\n \"InstanceFamilyName\": \"FPGA FX2\",\n \"InstanceFamily\": \"FX2\"\n },\n {\n \"InstanceFamilyName\": \"GPU compute GN2\",\n \"InstanceFamily\": \"GN2\"\n },\n {\n \"InstanceFamilyName\": \"GPU rendering GA2\",\n \"InstanceFamily\": \"GA2\"\n },\n {\n \"InstanceFamilyName\": \"GPU compute GN8\",\n \"InstanceFamily\": \"GN8\"\n },\n {\n \"InstanceFamilyName\": \"Dedicated\",\n \"InstanceFamily\": \"CDH\"\n },\n {\n \"InstanceFamilyName\": \"Shared core\",\n \"InstanceFamily\": \"SHARED\"\n }\n ],\n \"RequestId\": \"b061782b-934a-4e53-b1eb-d5f2fed8130e\"\n }\n}",
|
|
228
228
|
"title": "Querying supported instance families"
|
|
229
229
|
}
|
|
230
230
|
],
|
|
231
231
|
"DescribeInstances": [
|
|
232
232
|
{
|
|
233
|
-
"document": "This example shows you how to
|
|
234
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<Common request parameters>\n\n{\n \"Limit\":
|
|
235
|
-
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Uuid\": \"e85f1388-0422-410d-8e50-bef540e78c18\",\n \"InstanceState\": \"RUNNING\",\n \"
|
|
236
|
-
"title": "
|
|
233
|
+
"document": "This example shows you how to view instance information in Guangzhou Zone 3 or Guangzhou Zone 4 and limit return results to one.",
|
|
234
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<Common request parameters>\n\n{\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Values\": [\n \"ap-guangzhou-3\",\n \"ap-guangzhou-4\"\n ],\n \"Name\": \"zone\"\n }\n ],\n \"Offset\": 0\n}",
|
|
235
|
+
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Uuid\": \"e85f1388-0422-410d-8e50-bef540e78c18\",\n \"InstanceState\": \"RUNNING\",\n \"DisableApiTermination\": false,\n \"LatestOperationErrorMsg\": \"\",\n \"DefaultLoginPort\": 22,\n \"LicenseType\": \"TencentCloud\",\n \"DefaultLoginUser\": \"root\",\n \"LatestOperationState\": \"SUCCESS\",\n \"LoginSettings\": {\n \"KeyIds\": [\n \"skey-b4vakk62\"\n ]\n },\n \"IPv6Addresses\": [\n \"2001:0db8:86a3:08d3:1319:8a2e:0370:7344\"\n ],\n \"DedicatedClusterId\": \"\",\n \"RestrictState\": \"PROTECTIVELY_ISOLATED\",\n \"ExpiredTime\": \"2020-09-22T00:00:00+00:00\",\n \"DisasterRecoverGroupId\": \"\",\n \"Memory\": 1,\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"CPU\": 1,\n \"RdmaIpAddresses\": [],\n \"CamRoleName\": \"\",\n \"PublicIpAddresses\": [\n \"123.207.11.190\"\n ],\n \"Tags\": [\n {\n \"Key\": \"myKey\",\n \"Value\": \"myValue\"\n }\n ],\n \"InstanceId\": \"ins-xlsyru2j\",\n \"ImageId\": \"img-8toqc6s3\",\n \"StopChargingMode\": \"NOT_APPLICABLE\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InstanceType\": \"S2.SMALL2\",\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"CdcId\": \"cdc-xxxxxxxx\",\n \"DiskId\": \"disk-czsodtl1\",\n \"DiskType\": \"CLOUD_SSD\"\n },\n \"Placement\": {\n \"HostId\": \"host-h3m57oik\",\n \"ProjectId\": 1174660,\n \"HostIds\": [],\n \"Zone\": \"ap-guangzhou-3\"\n },\n \"PrivateIpAddresses\": [\n \"172.16.32.78\"\n ],\n \"OsName\": \"CentOS 7.4 64bit\",\n \"SecurityGroupIds\": [\n \"sg-p1ezv4wz\"\n ],\n \"InstanceName\": \"myInstance\",\n \"DataDisks\": [\n {\n \"DeleteWithInstance\": true,\n \"Encrypt\": true,\n \"CdcId\": \"cdc-xxxxxxxx\",\n \"DiskType\": \"CLOUD_SSD\",\n \"ThroughputPerformance\": 0,\n \"KmsKeyId\": null,\n \"DiskSize\": 50,\n \"DiskId\": \"disk-bzsodtn1\"\n }\n ],\n \"IsolatedSource\": \"NOTISOLATED\",\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-mv4sn55k\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 1,\n \"VpcId\": \"vpc-m0cnatxj\",\n \"PrivateIpAddresses\": [\n \"172.16.3.59\"\n ]\n },\n \"LatestOperationRequestId\": \"c7de1287-061d-4ace-8caf-6ad8e5a2f29a\",\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 1\n },\n \"HpcClusterId\": \"\",\n \"LatestOperation\": \"ResetInstancesType\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"d655191e-a39d-43d2-8349-8c3f2bf4b327\"\n }\n}",
|
|
236
|
+
"title": "View Instance List"
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
|
-
"document": "This example shows you how to query
|
|
240
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<Common request parameters>\n\n{\n \"Limit\":
|
|
241
|
-
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Uuid\": \"68b510db-b4c1-4630-a62b-73d0c7c970f9\",\n \"InstanceState\": \"RUNNING\",\n \"LatestOperationState\": \"SUCCESS\",\n \"OsName\": \"CentOS 7.6 64bit\",\n \"CreatedTime\": \"2020-03-10T02:43:51Z\",\n \"RestrictState\": \"NORMAL\",\n \"ExpiredTime\": \"2020-04-10T02:47:36Z\",\n \"DisasterRecoverGroupId\": \"\",\n \"Memory\": 1,\n \"IPv6Addresses\": null,\n \"CPU\": 1,\n \"CamRoleName\": \"\",\n \"PublicIpAddresses\": [\n \"123.207.11.190\"\n ],\n \"Tags\": [\n {\n \"
|
|
242
|
-
"title": "Querying
|
|
239
|
+
"document": "This example shows you how to query instances bound with the tag key-value pair (city:shenzhen).",
|
|
240
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<Common request parameters>\n\n{\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Values\": [\n \"shenzhen\"\n ],\n \"Name\": \"tag:city\"\n }\n ],\n \"Offset\": 0\n}",
|
|
241
|
+
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Uuid\": \"68b510db-b4c1-4630-a62b-73d0c7c970f9\",\n \"InstanceState\": \"RUNNING\",\n \"DisableApiTermination\": false,\n \"LatestOperationErrorMsg\": \"\",\n \"DefaultLoginPort\": 22,\n \"LicenseType\": \"TencentCloud\",\n \"DefaultLoginUser\": \"root\",\n \"LatestOperationState\": \"SUCCESS\",\n \"OsName\": \"CentOS 7.6 64bit\",\n \"CreatedTime\": \"2020-03-10T02:43:51Z\",\n \"RestrictState\": \"NORMAL\",\n \"ExpiredTime\": \"2020-04-10T02:47:36Z\",\n \"DisasterRecoverGroupId\": \"\",\n \"Memory\": 1,\n \"IPv6Addresses\": null,\n \"CPU\": 1,\n \"CamRoleName\": \"\",\n \"PublicIpAddresses\": [\n \"123.207.11.190\"\n ],\n \"Tags\": [\n {\n \"Key\": \"city\",\n \"Value\": \"shenzhen\"\n }\n ],\n \"InstanceId\": \"ins-9bxebleo\",\n \"ImageId\": \"img-9qabwvbn\",\n \"StopChargingMode\": \"NOT_APPLICABLE\",\n \"InstanceChargeType\": \"PREPAID\",\n \"InstanceType\": \"S1.SMALL1\",\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskId\": \"disk-nucurerk\",\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"IsolatedSource\": \"NOTISOLATED\",\n \"Placement\": {\n \"ProjectId\": 1174660,\n \"Zone\": \"ap-guangzhou-3\"\n },\n \"PrivateIpAddresses\": [\n \"172.16.32.78\"\n ],\n \"LoginSettings\": {\n \"KeyIds\": null\n },\n \"SecurityGroupIds\": [\n \"sg-p1ezv4wz\"\n ],\n \"DedicatedClusterId\": \"\",\n \"InstanceName\": \"Test instance\",\n \"DataDisks\": [],\n \"VirtualPrivateCloud\": {\n \"Ipv6AddressCount\": 1,\n \"PrivateIpAddresses\": [\n \"172.16.3.59\"\n ],\n \"SubnetId\": \"subnet-a2676p0e\",\n \"AsVpcGateway\": false,\n \"VpcId\": \"vpc-g7wzcv7n\"\n },\n \"LatestOperationRequestId\": \"3554eb5b-1cfa-471a-ae76-dc436c9d43e8\",\n \"InternetAccessible\": {\n \"InternetMaxBandwidthOut\": 1,\n \"InternetChargeType\": \"BANDWIDTH_PREPAID\"\n },\n \"RdmaIpAddresses\": [],\n \"HpcClusterId\": \"\",\n \"LatestOperation\": \"RenewInstances\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"62DDFFC6-FDB5-44F7-20A6-59152E3D129A\"\n }\n}",
|
|
242
|
+
"title": "Querying Instances Bound to Tags"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
"document": "This example shows you how to
|
|
246
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<Common request parameters>\n\n{\n \"Limit\":
|
|
247
|
-
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Uuid\": \"e85f1388-0422-410d-8e50-bef540e78c18\",\n \"InstanceState\": \"RUNNING\",\n \"
|
|
248
|
-
"title": "Querying the
|
|
245
|
+
"document": "This example shows you how to query the instance status after initiating StopInstances. You can check that the LatestOperation of the instance is StopInstances and the LatestOperationState is OPERATING using DescribeInstances.",
|
|
246
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<Common request parameters>\n\n{\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Values\": [\n \"ap-guangzhou-3\",\n \"ap-guangzhou-4\"\n ],\n \"Name\": \"zone\"\n }\n ],\n \"Offset\": 0\n}",
|
|
247
|
+
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Uuid\": \"e85f1388-0422-410d-8e50-bef540e78c18\",\n \"InstanceState\": \"RUNNING\",\n \"DisableApiTermination\": false,\n \"LatestOperationErrorMsg\": \"\",\n \"DefaultLoginPort\": 22,\n \"LicenseType\": \"TencentCloud\",\n \"DefaultLoginUser\": \"root\",\n \"LatestOperationState\": \"OPERATING\",\n \"LoginSettings\": {\n \"KeyIds\": [\n \"skey-b4vakk62\"\n ]\n },\n \"IPv6Addresses\": [\n \"2001:0db8:86a3:08d3:1319:8a2e:0370:7344\"\n ],\n \"RestrictState\": \"PROTECTIVELY_ISOLATED\",\n \"ExpiredTime\": \"2020-09-22T00:00:00+00:00\",\n \"DisasterRecoverGroupId\": \"ps-xxxxxxxx\",\n \"Memory\": 1,\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"CPU\": 1,\n \"RdmaIpAddresses\": [],\n \"CamRoleName\": \"\",\n \"DedicatedClusterId\": \"\",\n \"PublicIpAddresses\": [\n \"123.207.11.190\"\n ],\n \"Tags\": [\n {\n \"Key\": \"city\",\n \"Value\": \"shenzhen\"\n }\n ],\n \"InstanceId\": \"ins-xlsyru2j\",\n \"ImageId\": \"img-8toqc6s3\",\n \"StopChargingMode\": \"NOT_APPLICABLE\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InstanceType\": \"S2.SMALL2\",\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"CdcId\": \"cdc-xxxxxxxx\",\n \"DiskId\": \"disk-czsodtl1\",\n \"DiskType\": \"CLOUD_SSD\"\n },\n \"Placement\": {\n \"HostId\": \"host-h3m57oik\",\n \"ProjectId\": 1174660,\n \"HostIds\": [],\n \"Zone\": \"ap-guangzhou-3\"\n },\n \"PrivateIpAddresses\": [\n \"172.16.32.78\"\n ],\n \"OsName\": \"CentOS 7.4 64bit\",\n \"SecurityGroupIds\": [\n \"sg-p1ezv4wz\"\n ],\n \"InstanceName\": \"myInstance\",\n \"DataDisks\": [\n {\n \"DeleteWithInstance\": true,\n \"Encrypt\": true,\n \"CdcId\": \"cdc-xxxxxxxx\",\n \"DiskType\": \"CLOUD_SSD\",\n \"ThroughputPerformance\": 0,\n \"KmsKeyId\": null,\n \"DiskSize\": 50,\n \"DiskId\": \"disk-bzsodtn1\"\n }\n ],\n \"IsolatedSource\": \"NOTISOLATED\",\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-mv4sn55k\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 1,\n \"VpcId\": \"vpc-m0cnatxj\",\n \"PrivateIpAddresses\": [\n \"172.16.3.59\"\n ]\n },\n \"LatestOperationRequestId\": \"c7de1287-061d-4ace-8caf-6ad8e5a2f29a\",\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 1\n },\n \"HpcClusterId\": \"\",\n \"LatestOperation\": \"StopInstances\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"d655191e-a39d-43d2-8349-8c3f2bf4b327\"\n }\n}",
|
|
248
|
+
"title": "Querying the Latest Operation on an Instance"
|
|
249
249
|
}
|
|
250
250
|
],
|
|
251
251
|
"DescribeInstancesAttributes": [
|
|
@@ -259,15 +259,15 @@
|
|
|
259
259
|
"DescribeInstancesOperationLimit": [
|
|
260
260
|
{
|
|
261
261
|
"document": " ",
|
|
262
|
-
"input": "
|
|
263
|
-
"output": "{\n \"Response\": {\n \"InstanceOperationLimitSet\": [\n {\n \"
|
|
262
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancesOperationLimit\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r7ov05ke\"\n ],\n \"Operation\": \"INSTANCE_DEGRADE\"\n}",
|
|
263
|
+
"output": "{\n \"Response\": {\n \"InstanceOperationLimitSet\": [\n {\n \"CurrentCount\": 0,\n \"InstanceId\": \"ins-r7ov05ke\",\n \"LimitCount\": 5,\n \"Operation\": \"INSTANCE_DEGRADE\"\n }\n ],\n \"RequestId\": \"ce7aeaa3-37c9-48e2-abbf-7c1264cf5e9c\"\n }\n}",
|
|
264
264
|
"title": "Querying the number of configuration downgrade operations allowed"
|
|
265
265
|
}
|
|
266
266
|
],
|
|
267
267
|
"DescribeInstancesStatus": [
|
|
268
268
|
{
|
|
269
269
|
"document": "This example shows you how to query the status of two specified instances.",
|
|
270
|
-
"input": "
|
|
270
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancesStatus\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r8hr2upy\",\n \"ins-5d8a23rs\"\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
|
271
271
|
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"InstanceStatusSet\": [\n {\n \"InstanceId\": \"ins-r8hr2upy\",\n \"InstanceState\": \"RUNNING\"\n },\n {\n \"InstanceId\": \"ins-5d8a23rs\",\n \"InstanceState\": \"STOPPED\"\n }\n ],\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
272
272
|
"title": "Querying the list of instance status"
|
|
273
273
|
}
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
{
|
|
293
293
|
"document": " ",
|
|
294
294
|
"input": "https://cvm.tencentcloudapi.com/?Action=DescribeLaunchTemplateVersions\n&LaunchTemplateId=lt-b8v1kcyq\n&<Common request parameters>",
|
|
295
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LaunchTemplateVersionSet\": [\n {\n \"LaunchTemplateVersion\": 1,\n \"LaunchTemplateVersionData\": {\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-he88kvqu\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 0,\n \"VpcId\": \"vpc-dcteo7jd\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"ProjectId\": 0,\n \"Zone\": \"ap-guangzhou-
|
|
295
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LaunchTemplateVersionSet\": [\n {\n \"LaunchTemplateVersion\": 1,\n \"LaunchTemplateVersionData\": {\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-he88kvqu\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 0,\n \"VpcId\": \"vpc-dcteo7jd\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"ProjectId\": 0,\n \"Zone\": \"ap-guangzhou-6\"\n },\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"ImageId\": \"img-8toqc6s3\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"SecurityGroupIds\": [\n \"sg-rf6ogz49\"\n ],\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 100\n },\n \"InstanceName\": \"lt_test\",\n \"InstanceType\": \"S1.SMALL2\",\n \"DataDisks\": [\n {\n \"Encrypt\": false,\n \"DeleteWithInstance\": true,\n \"KmsKeyId\": \"\",\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n {\n \"Encrypt\": true,\n \"DeleteWithInstance\": true,\n \"KmsKeyId\": \"\",\n \"DiskSize\": 60,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n },\n \"CreationTime\": \"2020-12-17T01:54:31Z\",\n \"LaunchTemplateId\": \"lt-b8v1kcyq\",\n \"IsDefaultVersion\": true,\n \"LaunchTemplateVersionDescription\": \"\",\n \"CreatedBy\": \"251009920\"\n }\n ],\n \"RequestId\": \"b2da6ace-add1-48dc-ae73-6fc1eed95f1d\"\n }\n}",
|
|
296
296
|
"title": "Querying instance launch template versions"
|
|
297
297
|
}
|
|
298
298
|
],
|
|
@@ -315,8 +315,8 @@
|
|
|
315
315
|
"DescribeReservedInstances": [
|
|
316
316
|
{
|
|
317
317
|
"document": "This example shows you how to list purchased reserved instances.",
|
|
318
|
-
"input": "
|
|
319
|
-
"output": "{\n \"Response\": {\n \"
|
|
318
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedInstances\n<Common request parameters>\n\n{\n \"Offset\": 0,\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Name\": \"zone\",\n \"Values\": [\n \"ap-singapore-1\"\n ]\n }\n ]\n}",
|
|
319
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"dcb99aa2-f50d-43c6-aadd-74775f016db2\",\n \"ReservedInstancesSet\": [\n {\n \"CurrencyCode\": \"USD\",\n \"Duration\": 31536000,\n \"EndTime\": \"2024-07-30 10:59:59\",\n \"InstanceCount\": 1,\n \"InstanceFamily\": \"S5\",\n \"InstanceType\": \"S5.MEDIUM2\",\n \"OfferingType\": \"No Upfront\",\n \"ProductDescription\": \"linux\",\n \"ReservedInstanceId\": \"ri-je53w05q\",\n \"ReservedInstanceName\": \"Unnamed\",\n \"StartTime\": \"2023-07-31 10:00:00\",\n \"State\": \"retired\",\n \"Zone\": \"ap-singapore-1\"\n }\n ],\n \"TotalCount\": 3\n }\n}",
|
|
320
320
|
"title": "Listing Purchased Reserved Instances"
|
|
321
321
|
}
|
|
322
322
|
],
|
|
@@ -339,8 +339,8 @@
|
|
|
339
339
|
"DescribeZoneInstanceConfigInfos": [
|
|
340
340
|
{
|
|
341
341
|
"document": "This example shows you how to query the list of instance configurations using availability zone and billing mode as filter conditions.",
|
|
342
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZoneInstanceConfigInfos\n<Common request parameters>\n\n
|
|
343
|
-
"output": "{\n \"Response\": {\n \"InstanceTypeQuotaSet\": [\n {\n \"Status\": \"SELL\",\n \"Zone\": \"ap-guangzhou-
|
|
342
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZoneInstanceConfigInfos\n<Common request parameters>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"POSTPAID_BY_HOUR\"\n ],\n \"Name\": \"instance-charge-type\"\n },\n {\n \"Values\": [\n \"ap-guangzhou-6\"\n ],\n \"Name\": \"zone\"\n }\n ]\n}",
|
|
343
|
+
"output": "{\n \"Response\": {\n \"InstanceTypeQuotaSet\": [\n {\n \"Status\": \"SELL\",\n \"Zone\": \"ap-guangzhou-6\",\n \"NetworkCard\": 0,\n \"Price\": {\n \"DiscountPrice\": 59.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.0,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 59.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.0,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 708.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 587.64\n },\n \"InstanceFamily\": \"S2\",\n \"Externals\": {},\n \"InstanceType\": \"S2.SMALL1\",\n \"TypeName\": \"Standard S2\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"Memory\": 1,\n \"LocalDiskTypeList\": [],\n \"Cpu\": 1,\n \"SoldOutReason\": \"\",\n \"StorageBlockAmount\": 0,\n \"CpuType\": \"Intel Xeon E5-2680 v4\",\n \"InstancePps\": 20,\n \"InstanceBandwidth\": 1.5,\n \"Gpu\": 0,\n \"GpuCount\": 0.0,\n \"Fpga\": 0,\n \"Remark\": \"\",\n \"Frequency\": \"2.4GHz\"\n }\n ],\n \"RequestId\": \"c28559ca-d3cf-40f0-9664-2ab303484efa\"\n }\n}",
|
|
344
344
|
"title": "Obtaining the List of Instance Configurations in an Availability Zone"
|
|
345
345
|
}
|
|
346
346
|
],
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"EnterRescueMode": [
|
|
378
378
|
{
|
|
379
379
|
"document": " ",
|
|
380
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnterRescueMode\n<Common request parameters>\n\n
|
|
380
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnterRescueMode\n<Common request parameters>\n\n{\n \"InstanceId\": \"ins-axzc12s\",\n \"Password\": \"Qcloud@TestApi123++\"\n}",
|
|
381
381
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5920380e-277a-420a-a221-0caac3eb7159\"\n }\n}",
|
|
382
382
|
"title": "Entering the Rescue Mode"
|
|
383
383
|
}
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
"ExitRescueMode": [
|
|
386
386
|
{
|
|
387
387
|
"document": " ",
|
|
388
|
-
"input": "
|
|
388
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExitRescueMode\n<Common request parameters>\n\n{\n \"InstanceId\": \"ins-axzc12s\"\n}",
|
|
389
389
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5920380e-277a-420a-a221-0caac3eb7159\"\n }\n}",
|
|
390
390
|
"title": "Exiting the Rescue Mode"
|
|
391
391
|
}
|
|
@@ -422,10 +422,26 @@
|
|
|
422
422
|
"title": "Querying the Price of a Reserved Instance"
|
|
423
423
|
}
|
|
424
424
|
],
|
|
425
|
+
"InquiryPriceModifyInstancesChargeType": [
|
|
426
|
+
{
|
|
427
|
+
"document": "This example shows you how to perform a switchover for the billing mode of an instance to check the price.",
|
|
428
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyInstancesChargeType\n<Common request parameters>\n\n{\n \"InstanceChargeType\": \"PREPAID\",\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ],\n \"InstanceChargePrepaid\": {\n \"Period\": 1\n }\n}",
|
|
429
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 720,\n \"DiscountPrice\": 720\n }\n },\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
430
|
+
"title": "Switching the Billing Mode of an Instance for Price Inquiry"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"InquiryPriceRenewInstances": [
|
|
434
|
+
{
|
|
435
|
+
"document": "This example shows you how to perform a renewal instance inquiry with a duration of one month.",
|
|
436
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewInstances\n<Common request parameters>\n\n{\n \"InstanceChargePrepaid\": {\n \"Period\": 1\n },\n \"InstanceIds\": [\n \"ins-2zvpghhc\"\n ]\n}",
|
|
437
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 120,\n \"DiscountPrice\": 1.2\n }\n },\n \"RequestId\": \"e2e81b08-d747-455e-b27a-aecc5acafdba\"\n }\n}",
|
|
438
|
+
"title": "Renewal Instance Inquiry"
|
|
439
|
+
}
|
|
440
|
+
],
|
|
425
441
|
"InquiryPriceResetInstance": [
|
|
426
442
|
{
|
|
427
443
|
"document": " ",
|
|
428
|
-
"input": "
|
|
444
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceResetInstance\n<Common request parameters>\n\n{\n \"InstanceId\": \"ins-fd8spnmq\"\n}",
|
|
429
445
|
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"UnitPrice\": 0.66,\n \"ChargeUnit\": \"HOUR\",\n \"UnitPriceDiscount\": 0.66,\n \"Discount\": 100\n }\n },\n \"RequestId\": \"56d68b92-7004-4716-b3bf-3c2c231035c9\"\n }\n}",
|
|
430
446
|
"title": "Inquiring About the Price of a Pay-as-You-Go Instance with New Configurations"
|
|
431
447
|
}
|
|
@@ -441,7 +457,7 @@
|
|
|
441
457
|
"InquiryPriceResetInstancesType": [
|
|
442
458
|
{
|
|
443
459
|
"document": " ",
|
|
444
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceResetInstancesType\n<Common request parameters>\n\n
|
|
460
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceResetInstancesType\n<Common request parameters>\n\n{\n \"InstanceType\": \"S5.16XLARGE256\",\n \"InstanceIds\": [\n \"ins-xmf2ac34\"\n ]\n}",
|
|
445
461
|
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 8753,\n \"DiscountPrice\": 8753\n }\n },\n \"RequestId\": \"d345aa58-460a-4a13-8382-c6c99d0bc73f\"\n }\n}",
|
|
446
462
|
"title": "Querying the Price of a Monthly Subscription Instance with Adjusted Configuration"
|
|
447
463
|
}
|
|
@@ -457,20 +473,20 @@
|
|
|
457
473
|
"InquiryPriceRunInstances": [
|
|
458
474
|
{
|
|
459
475
|
"document": "This example shows you how to inquire about the price for purchasing 1 instance with the following configurations. Availability zone: Shanghai Zone 2; billing mode: monthly subscription for 1 month, with auto-renewal enabled; image ID: img-pmqg1cw7; model: 64C256G standard (S5.16XLARGE256); system disk: 50 GB premium cloud disk; data disk: 100 GB premium cloud disk; network type: VPC; public network billing: pay-as-you-go by traffic on an hourly basis; public network bandwidth cap: 10 Mbps; public IP address: randomly allocated; instance name: QCLOUD-TEST; login password: Qcloud@TestApi123++; Cloud Monitor: enabled; Cloud Security: enabled.",
|
|
460
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
476
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"PREPAID\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"InstanceChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\": 1\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
|
|
461
477
|
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 1804.9,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.0,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 8884.5,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.0,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n },\n \"BandwidthPrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.8,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.52,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n }\n },\n \"RequestId\": \"65b9edac-bca6-496b-a404-29f503b32495\"\n }\n}",
|
|
462
478
|
"title": "Inquiring About the Price of a Monthly Subscription Instance"
|
|
463
479
|
},
|
|
464
480
|
{
|
|
465
|
-
"document": "This example shows you how to
|
|
466
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
467
|
-
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\":
|
|
481
|
+
"document": "This example shows you how to purchase an instance in Shanghai Zone 2 with the image ID `img-pmqg1cw7`. Only the required `Placement.Zone` and `ImageId` parameters are provided. The other parameters use system default values.",
|
|
482
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n{\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"ImageId\": \"img-pmqg1cw7\"\n}",
|
|
483
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.2,\n \"UnitPriceThirdStep\": 0.1,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.06,\n \"UnitPriceSecondStep\": 0.12,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.06,\n \"UnitPriceDiscount\": 0.08,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n },\n \"BandwidthPrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.0,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.0,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n }\n },\n \"RequestId\": \"65b9edac-bca6-496b-a404-29f503b32495\"\n }\n}",
|
|
468
484
|
"title": "Inquiring About the Price of an Instance with Only Required Parameters"
|
|
469
485
|
},
|
|
470
486
|
{
|
|
471
487
|
"document": "This example shows you how to inquire about the price for purchasing 1 instance with the following configurations. Availability zone: Shanghai Zone 2; billing mode: pay-as-you-go on an hourly basis; image ID: img-pmqg1cw7; model: 64C256G standard (S5.16XLARGE256); system disk: 50 GB premium cloud disk; data disk: 100 GB premium cloud disk; network type: VPC; public network billing: pay-as-you-go by traffic on an hourly basis; public network bandwidth cap: 10 Mbps; public IP address: randomly allocated; instance name: QCLOUD-TEST; login password: Qcloud@TestApi123++; Cloud Monitor: enabled; Cloud Security: enabled.",
|
|
472
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
473
|
-
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\":
|
|
488
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": \"10\"\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
|
|
489
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 16.09,\n \"UnitPriceThirdStep\": 16.09,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 3.33,\n \"UnitPriceSecondStep\": 16.09,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 3.33,\n \"UnitPriceDiscount\": 3.33,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n },\n \"BandwidthPrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.8,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.52,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n }\n },\n \"RequestId\": \"65b9edac-bca6-496b-a404-29f503b32495\"\n }\n}",
|
|
474
490
|
"title": "Inquiring About the Price of an Hourly-Billed Pay-as-You-Go Instance"
|
|
475
491
|
}
|
|
476
492
|
],
|
|
@@ -493,7 +509,7 @@
|
|
|
493
509
|
"ModifyHostsAttribute": [
|
|
494
510
|
{
|
|
495
511
|
"document": "This example shows you how to modify the `HostName` attribute of a specified CDH instance.",
|
|
496
|
-
"input": "
|
|
512
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyHostsAttribute\n<Common request parameters>\n\n{\n \"HostIds\": [\n \"host-h4of75x4\"\n ],\n \"HostName\": \"webServer\"\n}",
|
|
497
513
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
498
514
|
"title": "Modifying the attributes of a CDH instance"
|
|
499
515
|
}
|
|
@@ -522,10 +538,32 @@
|
|
|
522
538
|
"title": "Renaming instances"
|
|
523
539
|
}
|
|
524
540
|
],
|
|
541
|
+
"ModifyInstancesChargeType": [
|
|
542
|
+
{
|
|
543
|
+
"document": "This example shows you how to switch the billing mode of an instance.",
|
|
544
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesChargeType\n<Common request parameters>\n\n{\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ]\n}",
|
|
545
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
546
|
+
"title": "Switching Instance Billing Mode to Hourly Postpaid in This Example"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"document": "This example shows you how to switch the billing mode of an instance.",
|
|
550
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesChargeType\n<Common request parameters>\n\n{\n \"InstanceChargeType\": \"PREPAID\",\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ],\n \"InstanceChargePrepaid\": {\n \"Period\": \"1\"\n }\n}",
|
|
551
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
552
|
+
"title": "This Example Switches Instance Billing Mode to Prepaid Mode with a Duration of 1 Month"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"ModifyInstancesDisasterRecoverGroup": [
|
|
556
|
+
{
|
|
557
|
+
"document": "This example shows you how to adjust the instance location in an instance placement group.",
|
|
558
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesDisasterRecoverGroup\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ],\n \"DisasterRecoverGroupId\": \"ps-a66w6rlb\"\n}",
|
|
559
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
560
|
+
"title": "Adjusting Instance Placement Groups"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
525
563
|
"ModifyInstancesProject": [
|
|
526
564
|
{
|
|
527
565
|
"document": "This example shows you how to change the projects of two instances.",
|
|
528
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesProject\n<Common request parameters>\n\n{\n \"ProjectId\":
|
|
566
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesProject\n<Common request parameters>\n\n{\n \"ProjectId\": 1045,\n \"InstanceIds\": [\n \"ins-5d8a23rs\",\n \"ins-r8hr2upy\"\n ]\n}",
|
|
529
567
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
530
568
|
"title": "Modifying the projects of two instances"
|
|
531
569
|
}
|
|
@@ -533,7 +571,7 @@
|
|
|
533
571
|
"ModifyInstancesRenewFlag": [
|
|
534
572
|
{
|
|
535
573
|
"document": "This example shows you how to modify the renewal tags of two instances.",
|
|
536
|
-
"input": "
|
|
574
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesRenewFlag\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r8hr2upy\",\n \"ins-5d8a23rs\"\n ],\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\"\n}",
|
|
537
575
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
538
576
|
"title": "Modifying the Renewal Flags of Two Instances"
|
|
539
577
|
}
|
|
@@ -600,10 +638,18 @@
|
|
|
600
638
|
"title": "Removing the deployment network of a CHC host"
|
|
601
639
|
}
|
|
602
640
|
],
|
|
641
|
+
"RenewInstances": [
|
|
642
|
+
{
|
|
643
|
+
"document": "This example shows you how to renew an instance, specify the instance Id as ins-r8hr2upy, renew for one month, notify that the account is about to expire upon expiration but auto-renewal is not performed.",
|
|
644
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewInstances\n<Common request parameters>\n\n{\n \"InstanceChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\",\n \"Period\": 1\n },\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ]\n}",
|
|
645
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
646
|
+
"title": "Renewing an Instance"
|
|
647
|
+
}
|
|
648
|
+
],
|
|
603
649
|
"ResetInstance": [
|
|
604
650
|
{
|
|
605
651
|
"document": "This example shows you how to reinstall an instance using the specified image, login password, and enhanced services, and expand the system disk of the instance.",
|
|
606
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetInstance\n<Common request parameters>\n\n{\n \"InstanceId\": \"ins-r8hr2upy\",\n \"SystemDisk\": {\n \"DiskSize\":
|
|
652
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetInstance\n<Common request parameters>\n\n{\n \"InstanceId\": \"ins-r8hr2upy\",\n \"SystemDisk\": {\n \"DiskSize\": 60\n },\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\"\n}",
|
|
607
653
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a0a66377-b79f-4a21-846c-d997d6022968\"\n }\n}",
|
|
608
654
|
"title": "Reinstalling an instance"
|
|
609
655
|
}
|
|
@@ -619,7 +665,7 @@
|
|
|
619
665
|
"ResetInstancesPassword": [
|
|
620
666
|
{
|
|
621
667
|
"document": "This example shows you how to reset the password of a Linux/Windows instance, and then use the new password to log in to the instance.",
|
|
622
|
-
"input": "
|
|
668
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetInstancesPassword\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r8hr2upy\",\n \"ins-5d8a23rs\"\n ],\n \"Password\": \"abc123ABC!@#\",\n \"ForceStop\": false\n}",
|
|
623
669
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
624
670
|
"title": "Resetting the password of a Linux/Windows instance"
|
|
625
671
|
}
|
|
@@ -635,7 +681,7 @@
|
|
|
635
681
|
"ResizeInstanceDisks": [
|
|
636
682
|
{
|
|
637
683
|
"document": " ",
|
|
638
|
-
"input": "
|
|
684
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResizeInstanceDisks\n<Common request parameters>\n\n{\n \"InstanceId\": \"ins-r8hr2upy\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100\n }\n ]\n}",
|
|
639
685
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
640
686
|
"title": "Resetting the disk size of a specific instance"
|
|
641
687
|
}
|
|
@@ -643,39 +689,39 @@
|
|
|
643
689
|
"RunInstances": [
|
|
644
690
|
{
|
|
645
691
|
"document": "This example shows you how to purchase 1 instance with the following configurations. Availability zone: Shanghai Zone 2; CDH: host-q88gab4i; billing mode: billed by CDH instance; image ID: img-pmqg1cw7; model: 1C1G; system disk: 50 GB premium cloud disk; data disk: 100 GB premium cloud disk; network type: VPC; public network billing: pay-as-you-go by traffic on an hourly basis; public network bandwidth cap: 10 Mbps; public IP address: randomly allocated; instance name: QCLOUD-TEST; login password: Qcloud@TestApi123++; Cloud Monitor: enabled; Cloud Security: enabled.",
|
|
646
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
647
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-
|
|
692
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"HostIds\": [\n \"host-q88gab4i\"\n ],\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"CDHPAID\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"CDH_1C1G\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
|
|
693
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-0s7wsh5x\"\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
648
694
|
"title": "Purchasing a CDH Instance"
|
|
649
695
|
},
|
|
650
696
|
{
|
|
651
697
|
"document": "This example shows you how to purchase 1 instance with the following configurations. Availability zone: Shanghai Zone 2; billing mode: monthly subscription for 1 month, with auto-renewal enabled; image ID: img-pmqg1cw7; model: 64C256G standard (S5.16XLARGE256); system disk: 50 GB premium cloud disk; data disk: 100 GB premium cloud disk; network type: VPC; public network billing: pay-as-you-go by traffic on an hourly basis; public network bandwidth cap: 10 Mbps; public IP address: randomly allocated; instance name: QCLOUD-TEST; login password: Qcloud@TestApi123++; Cloud Monitor: enabled; Cloud Security: enabled.",
|
|
652
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
653
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-
|
|
698
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"PREPAID\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"InstanceChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\": 1\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
|
|
699
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-bfw5zq3y\"\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
654
700
|
"title": "Purchasing a Monthly Subscription Instance"
|
|
655
701
|
},
|
|
656
702
|
{
|
|
657
703
|
"document": "This example shows you how to purchase an instance in Shanghai Zone 2 with the image ID `img-pmqg1cw7`. Only the required `Placement.Zone` and `ImageId` parameters are provided. The other parameters use system default values.",
|
|
658
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
659
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-
|
|
704
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n{\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"ImageId\": \"img-pmqg1cw7\"\n}",
|
|
705
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-1vogaxgk\"\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
660
706
|
"title": "Purchasing an Instance with Only Required Parameters"
|
|
661
707
|
},
|
|
662
708
|
{
|
|
663
709
|
"document": "This example shows you how to purchase 1 instance with the following configurations. Availability zone: Shanghai Zone 2; billing mode: pay-as-you-go on an hourly basis; image ID: img-pmqg1cw7; model: 64C256G standard (S5.16XLARGE256); system disk: 50 GB premium cloud disk; data disk: 100 GB premium cloud disk; network type: VPC; public network billing: pay-as-you-go by traffic on an hourly basis; public network bandwidth cap: 10 Mbps; public IP address: randomly allocated; instance name: QCLOUD-TEST; login password: Qcloud@TestApi123++; Cloud Monitor: enabled; Cloud Security: enabled.",
|
|
664
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
665
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-
|
|
710
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
|
|
711
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-32kcaqoa\"\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
666
712
|
"title": "Purchasing an Hourly-Billed Pay-as-You-Go Instance"
|
|
667
713
|
},
|
|
668
714
|
{
|
|
669
715
|
"document": "This example shows you how to purchase 2 instances with the following configurations. Availability zone: Shanghai Zone 2; billing mode: pay-as-you-go on an hourly basis; image ID: img-dkwyg6sr; model: 64C256G standard (S5.16XLARGE256); system disk: 50 GB premium cloud disk; network type: VPC; VPC ID: 1urkhbj4; subnet ID: dcs9x3gz; private IP address: 10.0.0.18 and 10.0.0.19.",
|
|
670
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
671
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-0s7wsh5x\"\n ],\n \"RequestId\": \"
|
|
716
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n{\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-dcs9x3gz\",\n \"VpcId\": \"vpc-1urkhbj4\",\n \"PrivateIpAddresses\": [\n \"10.0.0.19\",\n \"10.0.0.18\"\n ]\n },\n \"InstanceCount\": 2,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"ImageId\": \"img-dkwyg6sr\",\n \"InstanceType\": \"S5.16XLARGE256\"\n}",
|
|
717
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-0s7wsh5x\",\n \"ins-03lw8hok\"\n ],\n \"RequestId\": \"3c14def19-cfes-470e-b241-90787u6jf5uj\"\n }\n}",
|
|
672
718
|
"title": "Creating an Instance with the Private IP Address Specified"
|
|
673
719
|
}
|
|
674
720
|
],
|
|
675
721
|
"StartInstances": [
|
|
676
722
|
{
|
|
677
723
|
"document": "This example shows you how to start up two shutdown instances at once.",
|
|
678
|
-
"input": "
|
|
724
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartInstances\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r8hr2upy\",\n \"ins-5d8a23rs\"\n ]\n}",
|
|
679
725
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
680
726
|
"title": "Starting up instances with the specified IDs"
|
|
681
727
|
}
|
|
@@ -683,7 +729,7 @@
|
|
|
683
729
|
"StopInstances": [
|
|
684
730
|
{
|
|
685
731
|
"document": "This example shows you how to shut down two instances.",
|
|
686
|
-
"input": "
|
|
732
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopInstances\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-r8hr2upy\",\n \"ins-5d8a23rs\"\n ],\n \"StopType\": \"SOFT\"\n}",
|
|
687
733
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
688
734
|
"title": "Shutting down instances"
|
|
689
735
|
}
|