tccli-intl-en 3.0.1258.1__py2.py3-none-any.whl → 3.0.1283.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/argument.py +1 -1
- tccli/services/__init__.py +14 -1
- tccli/services/advisor/advisor_client.py +10 -4
- tccli/services/aiart/aiart_client.py +5 -2
- tccli/services/ams/ams_client.py +20 -8
- tccli/services/antiddos/antiddos_client.py +350 -140
- tccli/services/apigateway/apigateway_client.py +465 -186
- tccli/services/apm/apm_client.py +835 -68
- tccli/services/apm/v20210622/api.json +3936 -1145
- tccli/services/apm/v20210622/examples.json +133 -23
- tccli/services/asr/asr_client.py +10 -4
- tccli/services/autoscaling/autoscaling_client.py +290 -116
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/batch/batch_client.py +140 -56
- tccli/services/bi/bi_client.py +120 -48
- tccli/services/billing/billing_client.py +210 -84
- tccli/services/cam/cam_client.py +405 -162
- tccli/services/captcha/captcha_client.py +5 -2
- tccli/services/car/car_client.py +165 -66
- tccli/services/cbs/cbs_client.py +190 -76
- tccli/services/ccc/ccc_client.py +515 -146
- tccli/services/ccc/v20200210/api.json +511 -27
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +665 -266
- tccli/services/cdc/cdc_client.py +100 -40
- tccli/services/cdn/cdn_client.py +220 -88
- tccli/services/cdwdoris/cdwdoris_client.py +385 -154
- tccli/services/cdwpg/cdwpg_client.py +120 -48
- 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 +80 -32
- tccli/services/cfs/cfs_client.py +195 -78
- tccli/services/cfw/cfw_client.py +330 -132
- tccli/services/chdfs/chdfs_client.py +145 -58
- tccli/services/ciam/ciam_client.py +80 -32
- tccli/services/ckafka/ckafka_client.py +629 -131
- tccli/services/ckafka/v20190819/api.json +2749 -1470
- tccli/services/ckafka/v20190819/examples.json +209 -155
- tccli/services/clb/clb_client.py +415 -166
- tccli/services/clb/v20180317/api.json +29 -14
- tccli/services/cloudaudit/cloudaudit_client.py +90 -36
- tccli/services/cls/cls_client.py +434 -173
- tccli/services/cmq/cmq_client.py +10 -4
- tccli/services/config/config_client.py +30 -12
- tccli/services/controlcenter/controlcenter_client.py +5 -2
- tccli/services/csip/csip_client.py +170 -68
- tccli/services/ctsdb/ctsdb_client.py +10 -4
- tccli/services/cvm/cvm_client.py +572 -214
- tccli/services/cvm/v20170312/api.json +371 -133
- tccli/services/cvm/v20170312/examples.json +123 -101
- tccli/services/cwp/cwp_client.py +2325 -930
- tccli/services/cynosdb/cynosdb_client.py +1887 -577
- tccli/services/cynosdb/v20190107/api.json +11763 -7697
- tccli/services/cynosdb/v20190107/examples.json +132 -4
- tccli/services/dataintegration/dataintegration_client.py +5 -2
- tccli/services/dayu/dayu_client.py +515 -206
- tccli/services/dbbrain/dbbrain_client.py +210 -84
- tccli/services/dc/dc_client.py +90 -36
- tccli/services/dcdb/dcdb_client.py +310 -124
- tccli/services/dlc/dlc_client.py +859 -214
- tccli/services/dlc/v20210125/api.json +637 -13
- tccli/services/dlc/v20210125/examples.json +48 -0
- tccli/services/dms/dms_client.py +10 -4
- tccli/services/dnspod/dnspod_client.py +302 -76
- tccli/services/dnspod/v20210323/api.json +153 -0
- tccli/services/dnspod/v20210323/examples.json +16 -0
- tccli/services/domain/domain_client.py +120 -48
- tccli/services/dts/dts_client.py +415 -166
- tccli/services/eb/eb_client.py +130 -52
- tccli/services/ecdn/ecdn_client.py +75 -30
- tccli/services/ecm/ecm_client.py +620 -248
- tccli/services/eiam/eiam_client.py +200 -80
- tccli/services/emr/emr_client.py +385 -154
- tccli/services/es/es_client.py +105 -42
- tccli/services/facefusion/facefusion_client.py +15 -6
- tccli/services/faceid/faceid_client.py +95 -38
- tccli/services/faceid/v20180301/api.json +16 -7
- tccli/services/faceid/v20180301/examples.json +2 -2
- tccli/services/gaap/gaap_client.py +440 -176
- tccli/services/gme/gme_client.py +50 -20
- tccli/services/gpm/gpm_client.py +90 -36
- tccli/services/gse/gse_client.py +110 -44
- tccli/services/gwlb/gwlb_client.py +90 -36
- tccli/services/iai/iai_client.py +145 -58
- tccli/services/iap/iap_client.py +30 -12
- tccli/services/ims/ims_client.py +5 -2
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +210 -84
- tccli/services/iotcloud/iotcloud_client.py +100 -40
- tccli/services/ip/ip_client.py +30 -12
- tccli/services/kms/kms_client.py +340 -136
- tccli/services/lcic/lcic_client.py +265 -106
- tccli/services/lighthouse/lighthouse_client.py +370 -148
- tccli/services/live/live_client.py +600 -240
- tccli/services/lke/lke_client.py +450 -180
- tccli/services/lkeap/lkeap_client.py +142 -12
- tccli/services/lkeap/v20240522/api.json +263 -0
- tccli/services/lkeap/v20240522/examples.json +35 -1
- tccli/services/mariadb/mariadb_client.py +250 -100
- tccli/services/mdc/mdc_client.py +90 -36
- tccli/services/mdl/mdl_client.py +165 -66
- tccli/services/mdl/v20200326/api.json +186 -12
- tccli/services/mdl/v20200326/examples.json +16 -16
- tccli/services/mdp/mdp_client.py +416 -124
- tccli/services/mdp/v20200527/api.json +146 -14
- tccli/services/mdp/v20200527/examples.json +95 -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 +369 -58
- tccli/services/mongodb/v20190725/api.json +811 -226
- tccli/services/mongodb/v20190725/examples.json +54 -22
- tccli/services/monitor/monitor_client.py +1008 -296
- tccli/services/monitor/v20180724/api.json +657 -8
- tccli/services/monitor/v20180724/examples.json +152 -4
- tccli/services/mps/mps_client.py +684 -184
- tccli/services/mps/v20190612/api.json +2719 -375
- tccli/services/mps/v20190612/examples.json +63 -13
- tccli/services/msp/msp_client.py +35 -14
- tccli/services/ocr/ocr_client.py +246 -76
- tccli/services/ocr/v20181119/api.json +83 -4
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/omics/omics_client.py +100 -40
- tccli/services/organization/organization_client.py +580 -232
- tccli/services/postgres/postgres_client.py +455 -182
- tccli/services/privatedns/privatedns_client.py +155 -62
- tccli/services/pts/pts_client.py +240 -96
- 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 +5 -2
- tccli/services/redis/redis_client.py +545 -218
- tccli/services/redis/v20180412/api.json +225 -113
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/region/region_client.py +15 -6
- tccli/services/rum/rum_client.py +300 -120
- tccli/services/scf/scf_client.py +210 -84
- tccli/services/ses/ses_client.py +145 -58
- tccli/services/sms/sms_client.py +90 -36
- tccli/services/sqlserver/sqlserver_client.py +695 -278
- tccli/services/ssl/ssl_client.py +190 -76
- tccli/services/ssm/ssm_client.py +120 -48
- tccli/services/sts/sts_client.py +25 -10
- tccli/services/tag/tag_client.py +150 -60
- tccli/services/tat/tat_client.py +95 -38
- tccli/services/tbaas/tbaas_client.py +20 -8
- tccli/services/tcaplusdb/tcaplusdb_client.py +260 -104
- tccli/services/tcaplusdb/v20190823/api.json +836 -760
- tccli/services/tcaplusdb/v20190823/examples.json +3 -3
- tccli/services/tchd/tchd_client.py +5 -2
- tccli/services/tcmpp/tcmpp_client.py +520 -208
- tccli/services/tcr/tcr_client.py +380 -152
- tccli/services/tcsas/tcsas_client.py +295 -118
- tccli/services/tcsas/v20250106/api.json +101 -61
- tccli/services/tcsas/v20250106/examples.json +2 -2
- tccli/services/tcss/tcss_client.py +1650 -660
- tccli/services/tdid/tdid_client.py +240 -96
- tccli/services/tdmq/tdmq_client.py +470 -188
- tccli/services/tem/tem_client.py +280 -112
- tccli/services/teo/teo_client.py +1365 -483
- tccli/services/teo/v20220901/api.json +361 -46
- 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 +255 -102
- tccli/services/tke/tke_client.py +690 -276
- tccli/services/tms/tms_client.py +5 -2
- tccli/services/tmt/tmt_client.py +5 -2
- tccli/services/trabbit/trabbit_client.py +145 -58
- tccli/services/trro/trro_client.py +95 -38
- tccli/services/trtc/trtc_client.py +255 -102
- tccli/services/trtc/v20190722/api.json +120 -16
- tccli/services/trtc/v20190722/examples.json +7 -7
- tccli/services/tts/tts_client.py +5 -2
- tccli/services/vclm/vclm_client.py +10 -4
- tccli/services/vm/vm_client.py +20 -8
- tccli/services/vod/vod_client.py +895 -358
- tccli/services/vpc/v20170312/api.json +970 -75
- tccli/services/vpc/v20170312/examples.json +106 -10
- tccli/services/vpc/vpc_client.py +2159 -644
- tccli/services/waf/waf_client.py +535 -214
- tccli/services/wedata/v20250806/api.json +13644 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +6067 -1263
- tccli/services/yunjing/yunjing_client.py +355 -142
- {tccli_intl_en-3.0.1258.1.dist-info → tccli_intl_en-3.0.1283.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1258.1.dist-info → tccli_intl_en-3.0.1283.1.dist-info}/RECORD +197 -179
- {tccli_intl_en-3.0.1258.1.dist-info → tccli_intl_en-3.0.1283.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1258.1.dist-info → tccli_intl_en-3.0.1283.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1258.1.dist-info → tccli_intl_en-3.0.1283.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1258.1.dist-info → tccli_intl_en-3.0.1283.1.dist-info}/top_level.txt +0 -0
|
@@ -2,16 +2,16 @@
|
|
|
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": [
|
|
12
12
|
{
|
|
13
13
|
"document": " ",
|
|
14
|
-
"input": "
|
|
14
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssociateInstancesKeyPairs\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-1e4r6y8i\",\n \"ins-3e56fg78\"\n ],\n \"KeyIds\": [\n \"skey-4e5ty7i8\"\n ]\n}",
|
|
15
15
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
16
16
|
"title": "Binding a key pair to CVM"
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"AssociateSecurityGroups": [
|
|
20
20
|
{
|
|
21
21
|
"document": " ",
|
|
22
|
-
"input": "
|
|
22
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssociateSecurityGroups\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-915zrb0p\",\n \"ins-2zvpghhc\"\n ],\n \"SecurityGroupIds\": [\n \"sg-9id3l839\"\n ]\n}",
|
|
23
23
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3385dcf2-e1f0-4ed8-a924-c296721ab65f\"\n }\n}",
|
|
24
24
|
"title": "Associating multiple instances with one security group"
|
|
25
25
|
}
|
|
@@ -27,32 +27,32 @@
|
|
|
27
27
|
"ConfigureChcAssistVpc": [
|
|
28
28
|
{
|
|
29
29
|
"document": "This example shows you how to configure the out-of-band network and deployment network of a CHC host.",
|
|
30
|
-
"input": "
|
|
31
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
30
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ConfigureChcAssistVpc\n<Common request parameters>\n\n{\n \"ChcIds\": [\n \"chc-1a2b3c4d\",\n \"chc-adf34aft\"\n ],\n \"BmcVirtualPrivateCloud\": {\n \"VpcId\": \"vpc-12345678\",\n \"SubnetId\": \"subnet-12345678\",\n \"PrivateIpAddresses\": [\n \"10.0.0.2\",\n \"10.0.0.3\"\n ]\n },\n \"BmcSecurityGroupIds\": [\n \"sg-12345678\"\n ],\n \"DeployVirtualPrivateCloud\": {\n \"VpcId\": \"vpc-1234abcd8\",\n \"SubnetId\": \"subnet-1234abcd\",\n \"PrivateIpAddresses\": [\n \"10.0.1.2\",\n \"10.0.1.3\"\n ]\n },\n \"DeploySecurityGroupIds\": [\n \"sg-8a7f6d5s\"\n ]\n}",
|
|
31
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
32
32
|
"title": "Configuring the out-of-band network and deployment network of a CHC"
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"ConfigureChcDeployVpc": [
|
|
36
36
|
{
|
|
37
37
|
"document": "This example shows you how to configure the deployment network of a CHC.",
|
|
38
|
-
"input": "
|
|
39
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
38
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ConfigureChcDeployVpc\n<Common request parameters>\n\n{\n \"ChcIds\": [\n \"chc-ej2pc1yr\"\n ],\n \"DeployVirtualPrivateCloud\": {\n \"VpcId\": \"vpc-oa69jq11\",\n \"SubnetId\": \"subnet-ov1xx3u3\",\n \"PrivateIpAddresses\": [\n \"11.97.4.66\"\n ]\n },\n \"DeploySecurityGroupIds\": [\n \"sg-j9ro1lex\"\n ]\n}",
|
|
39
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a35f2e81-435f-4bb0-898c-35e3bc9cb5f3\"\n }\n}",
|
|
40
40
|
"title": "Configuring the deployment network of a CHC host"
|
|
41
41
|
}
|
|
42
42
|
],
|
|
43
43
|
"ConvertOperatingSystems": [
|
|
44
44
|
{
|
|
45
45
|
"document": "This example shows you how to perform operating system switching on instance ins-6pb6lrmy.",
|
|
46
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
|
47
|
-
"output": "{\n \"Response\": {\n \"SupportTargetOSList\": [\n {\n \"TargetOSType\": \"TencentOS\",\n \"TargetOSVersion\": \"2.4\"\n }\n ],\n \"TaskId\": \"12345678\",\n \"RequestId\": \"
|
|
46
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ConvertOperatingSystems\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-6pb6lrmy\"\n ]\n}",
|
|
47
|
+
"output": "{\n \"Response\": {\n \"SupportTargetOSList\": [\n {\n \"TargetOSType\": \"TencentOS\",\n \"TargetOSVersion\": \"2.4\"\n }\n ],\n \"TaskId\": \"12345678\",\n \"RequestId\": \"120e85ba-f656-48a7-bdeb-dc17c4fa2xxx\"\n }\n}",
|
|
48
48
|
"title": "Performing Operating System Switching"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
51
|
"CreateDisasterRecoverGroup": [
|
|
52
52
|
{
|
|
53
53
|
"document": "This example shows you how to create a spread placement group.",
|
|
54
|
-
"input": "
|
|
55
|
-
"output": "{\n \"Response\": {\n \"
|
|
54
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDisasterRecoverGroup\n<Common request parameters>\n\n{\n \"Name\": \"MySWDisasterRecoverGroup\",\n \"Type\": \"SW\",\n \"Affinity\": 3,\n \"TagSpecification\": [\n {\n \"ResourceType\": \"ps\",\n \"Tags\": [\n {\n \"Key\": \"MySWDisasterRecoverGroupKey\",\n \"Value\": \"MySWDisasterRecoverGroupValue\"\n }\n ]\n }\n ]\n}",
|
|
55
|
+
"output": "{\n \"Response\": {\n \"CreateTime\": \"2025-11-17T07:43:06Z\",\n \"CurrentNum\": 0,\n \"CvmQuotaTotal\": 20,\n \"DisasterRecoverGroupId\": \"ps-39lmgkht\",\n \"Name\": \"MySWDisasterRecoverGroup\",\n \"RequestId\": \"59216e4c-c24d-46f8-bc88-ebc5081a595f\",\n \"Type\": \"SW\"\n }\n}",
|
|
56
56
|
"title": "Creating a spread placement group"
|
|
57
57
|
}
|
|
58
58
|
],
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"CreateKeyPair": [
|
|
68
68
|
{
|
|
69
69
|
"document": " ",
|
|
70
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateKeyPair\n<Common request parameters>\n\n
|
|
70
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateKeyPair\n<Common request parameters>\n\n{\n \"ProjectId\": 0,\n \"KeyName\": \"Tencent\"\n}",
|
|
71
71
|
"output": "{\n \"Response\": {\n \"KeyPair\": {\n \"KeyId\": \"skey-mv9yzyjj\",\n \"KeyName\": \"Tencent\",\n \"ProjectId\": 0,\n \"PublicKey\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDP0Yw2T4itUKOJQIK69c1Asy1UO88cxEbujR5Jbr0e/Ey1v4ZKAUzDnsBnFlf4hKPA1YvMB8RBYj4GcLtM7PrKnBNNram8rgl73X/klOO8oqKv+J/XUA7KHH1Y6wcn1RTRTMdDHbGhW1q/UpfeylNTbf+wEIWhEfaL5FKQm4hqCw== skey_112168\",\n \"PrivateKey\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIICXgIBAAKBgQDP0Yw2T4itUKOJQIK69c1Asy1UO88cxEbujR5Jbr0e/Ey1v4ZK\\nAUzDnsBnFlf4hKPA1YvMB8RBYj4GcLtM7PrKnBNNram8rgl73X/klOO8oqKv+J/X\\nUA7KHH1Y6wcn1RTRTMdDHbGhW1q/UpfeylNTbf+wEIWhEfaL5FKQm4hqCwIDAQAB\\nAoGBAJEvSu5SaCD02hs0F2C4Aln2E2/qjMoDEa7spcEVfUhdaNX8ZLvk5pUvnikm\\nwfSb7a71QUIcFu66zKxBK4kVcirBRCR8nTAQbQ6AhXQYP+y6ihZ9Z/g6BBEeqCpV\\nuGPmKnhdxdJ8Al2huEZKJFUQhKM8XdP7dqn6yFDm0L2sTK6RAkEA9IbhP4/2CVSC\\n6d8j5nj3ejPx25R3wc4G+st1tZn1O/TRqUknbVEvsxZC63bRjHiw086QIWr61L8f\\nqQBLZ58DMwJBANmRv3aHVxv5sMlV0F3hD5ZgWEDIIjxD7oiBzU1rqvF6OpTQc1cF\\nrnwxAXDtYYJ75B8qQEL1ph/zIE5YW0hlfckCQQCyVTwpUyCopU3kqqxQBaDXKtMU\\nxS6h1VQZzBDIpMPJOj8+Ku/qNe+HuJCNkVY6EDtF/bv340GTrt+0LVbQ95MpAkEA\\nxcvwUdTXB9LnuxKuHTsoDaFHepW4MivcJvRC7njM7z4dFf+wbFP4/mUbF0xoUtVJ\\nXl/uDjH/tpo1K6S+UEIcqQJAfLQywCQdZ/qOJn0PwxiOhwniikSnZuZPNSw8T+kg\\n/oxijESOLAJBnt3S/g+D530Enjitvfc9mEB7mh0VmwWvPg==\\n-----END RSA PRIVATE KEY-----\\n\"\n },\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
72
72
|
"title": "Creating a Key Pair"
|
|
73
73
|
}
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
],
|
|
83
83
|
"CreateLaunchTemplateVersion": [
|
|
84
84
|
{
|
|
85
|
-
"document": "This example shows you how to create a new launch template version in Guangzhou Zone
|
|
86
|
-
"input": "
|
|
85
|
+
"document": "This example shows you how to create a new launch template version in Guangzhou Zone 6.",
|
|
86
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLaunchTemplateVersion\n<Common request parameters>\n\n{\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-6\"\n },\n \"LaunchTemplateId\": \"lt-f6q777hr\"\n}",
|
|
87
87
|
"output": "{\n \"Response\": {\n \"LaunchTemplateVersionNumber\": 7,\n \"RequestId\": \"9b4ad85f-1657-4445-111d-3c0a9fbec309\"\n }\n}",
|
|
88
88
|
"title": "Creating an instance launch template version"
|
|
89
89
|
}
|
|
@@ -91,21 +91,21 @@
|
|
|
91
91
|
"DeleteDisasterRecoverGroups": [
|
|
92
92
|
{
|
|
93
93
|
"document": "This example shows you how to delete a spread placement group.",
|
|
94
|
-
"input": "
|
|
95
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
94
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDisasterRecoverGroups\n<Common request parameters>\n\n{\n \"DisasterRecoverGroupIds\": [\n \"ps-39lmgkht\"\n ]\n}",
|
|
95
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"4f57ce54-4639-4daa-b29f-37ab55f82809\"\n }\n}",
|
|
96
96
|
"title": "Deleting a spread placement group"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
99
|
"DeleteImages": [
|
|
100
100
|
{
|
|
101
101
|
"document": "This example shows you how to delete the image `img-34vaef8fe`. If the image is in use or the image ID does not exist, no operation will be performed, and an error code will be returned.",
|
|
102
|
-
"input": "
|
|
102
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteImages\n<Common request parameters>\n\n{\n \"ImageIds\": [\n \"img-34vaef8fe\"\n ]\n}",
|
|
103
103
|
"output": "{\n \"Response\": {\n \"RequestId\": \"71e69b56-32be-4412-ab45-49eded6a87be\"\n }\n}",
|
|
104
104
|
"title": "Deleting an image"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"document": "This example shows you how to delete the image `img-34vaef8fe`. If the image is in use or the image ID does not exist, no operation will be performed and an error code will be returned.",
|
|
108
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteImages\n<Common request parameters>\n\n{\n \"ImageIds\": [\n \"img-mfih409y\"\n ],\n \"DryRun\":
|
|
108
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteImages\n<Common request parameters>\n\n{\n \"ImageIds\": [\n \"img-mfih409y\"\n ],\n \"DryRun\": true,\n \"DeleteBindedSnap\": true\n}",
|
|
109
109
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f24aca43-5135-4c9b-81fb-734969ce4c78\"\n }\n}",
|
|
110
110
|
"title": "Checking whether the specified image can be deleted"
|
|
111
111
|
}
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"DeleteKeyPairs": [
|
|
114
114
|
{
|
|
115
115
|
"document": " ",
|
|
116
|
-
"input": "
|
|
116
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteKeyPairs\n<Common request parameters>\n\n{\n \"KeyIds\": [\n \"skey-mv9yzyjj\"\n ]\n}",
|
|
117
117
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
118
118
|
"title": "Deleting a key pair"
|
|
119
119
|
}
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"DeleteLaunchTemplate": [
|
|
122
122
|
{
|
|
123
123
|
"document": " ",
|
|
124
|
-
"input": "
|
|
124
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteLaunchTemplate\n<Common request parameters>\n\n{\n \"LaunchTemplateId\": \"lt-34vaef8fe\"\n}",
|
|
125
125
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9b4ad85f-1657-4445-111d-3c0a9fbec311\"\n }\n}",
|
|
126
126
|
"title": "Deleting an instance launch template"
|
|
127
127
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"DeleteLaunchTemplateVersions": [
|
|
130
130
|
{
|
|
131
131
|
"document": "This example deletes version 2 and 3 of the instance launch template `lt-34vaef8fe`.",
|
|
132
|
-
"input": "
|
|
132
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteLaunchTemplateVersions\n<Common request parameters>\n\n{\n \"LaunchTemplateId\": \"lt-34vaef8fe\",\n \"LaunchTemplateVersions\": [\n 2,\n 3\n ]\n}",
|
|
133
133
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9b4ad85f-1657-4445-111d-3c0a9fbec311\"\n }\n}",
|
|
134
134
|
"title": "Deletes one or more instance launch template versions"
|
|
135
135
|
}
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"DescribeDisasterRecoverGroupQuota": [
|
|
154
154
|
{
|
|
155
155
|
"document": "This example shows you how to query the quota of your placement groups.",
|
|
156
|
-
"input": "
|
|
156
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDisasterRecoverGroupQuota\n<Common request parameters>\n\n{}",
|
|
157
157
|
"output": "{\n \"Response\": {\n \"GroupQuota\": 10,\n \"CvmInHostGroupQuota\": 50,\n \"CvmInSwGroupQuota\": 20,\n \"CvmInRackGroupQuota\": 30,\n \"CurrentNum\": 25,\n \"RequestId\": \"a13da94a-1cbc-42ca-ac6c-e14ef0c76a7c\"\n }\n}",
|
|
158
158
|
"title": "Querying placement group quota"
|
|
159
159
|
}
|
|
@@ -161,16 +161,16 @@
|
|
|
161
161
|
"DescribeDisasterRecoverGroups": [
|
|
162
162
|
{
|
|
163
163
|
"document": "This example shows you how to query the information of a spread placement group.",
|
|
164
|
-
"input": "
|
|
165
|
-
"output": "{\n \"Response\": {\n \"DisasterRecoverGroupSet\": [\n {\n \"DisasterRecoverGroupId\": \"ps-
|
|
164
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDisasterRecoverGroups\n<Common request parameters>\n\n{\n \"Offset\": 0,\n \"Limit\": 100,\n \"Filters\": [\n {\n \"Name\": \"tag:FOO_886\",\n \"Values\": [\n \"BAR_886\"\n ]\n }\n ]\n}",
|
|
165
|
+
"output": "{\n \"Response\": {\n \"DisasterRecoverGroupSet\": [\n {\n \"Affinity\": 1,\n \"CreateTime\": \"2024-08-28T10:04:56Z\",\n \"CurrentNum\": 0,\n \"CvmQuotaTotal\": 60,\n \"DisasterRecoverGroupId\": \"ps-0f03mwkn\",\n \"InstanceIds\": [],\n \"Name\": \"HostDisasterRecoverGroup\",\n \"Tags\": [\n {\n \"Key\": \"FOO_886\",\n \"Value\": \"BAR_886\"\n }\n ],\n \"Type\": \"HOST\"\n },\n {\n \"Affinity\": 1,\n \"CreateTime\": \"2024-08-13T04:16:19Z\",\n \"CurrentNum\": 0,\n \"CvmQuotaTotal\": 20,\n \"DisasterRecoverGroupId\": \"ps-ali72vwj\",\n \"InstanceIds\": [],\n \"Name\": \"SWDisasterRecoverGroup\",\n \"Tags\": [\n {\n \"Key\": \"FOO_886\",\n \"Value\": \"BAR_886\"\n }\n ],\n \"Type\": \"SW\"\n }\n ],\n \"RequestId\": \"52eca90d-08c8-4887-abf0-78d8155cfcfd\",\n \"TotalCount\": 2\n }\n}",
|
|
166
166
|
"title": "Querying the information of a spread placement group"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
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
|
],
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"DescribeImageQuota": [
|
|
186
186
|
{
|
|
187
187
|
"document": "This example shows you how to query your image quota.",
|
|
188
|
-
"input": "
|
|
188
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImageQuota\n<Common request parameters>\n\n{}",
|
|
189
189
|
"output": "{\n \"Response\": {\n \"RequestId\": \"71e69b56-32be-4412-ab45-49eded6a87be\",\n \"ImageNumQuota\": 20\n }\n}",
|
|
190
190
|
"title": "Querying image quota"
|
|
191
191
|
}
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"DescribeImageSharePermission": [
|
|
194
194
|
{
|
|
195
195
|
"document": "This example shows you how to query the sharing information of an image whose image ID is img-6pb6lrmy.",
|
|
196
|
-
"input": "
|
|
196
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImageSharePermission\n<Common request parameters>\n\n{\n \"ImageId\": \"img-6pb6lrmy\"\n}",
|
|
197
197
|
"output": "{\n \"Response\": {\n \"SharePermissionSet\": [\n {\n \"CreatedTime\": \"2018-06-10T11:02:50Z\",\n \"AccountId\": \"101104350000\"\n },\n {\n \"CreatedTime\": \"2018-06-13T15:03:25Z\",\n \"AccountId\": \"101104350001\"\n }\n ],\n \"RequestId\": \"71e69b56-32be-4412-ab45-49eded6a87be\"\n }\n}",
|
|
198
198
|
"title": "Querying sharing information of a specified image"
|
|
199
199
|
}
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"DescribeImportImageOs": [
|
|
216
216
|
{
|
|
217
217
|
"document": " ",
|
|
218
|
-
"input": "
|
|
218
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImportImageOs\n<Common request parameters>\n\n{}",
|
|
219
219
|
"output": "{\n \"Response\": {\n \"ImportImageOsListSupported\": {\n \"Linux\": [\n \"CentOS\",\n \"Ubuntu\",\n \"Debian\",\n \"OpenSUSE\",\n \"SUSE\",\n \"CoreOS\",\n \"FreeBSD\",\n \"Other Linux\"\n ],\n \"Windows\": [\n \"Windows Server 2008\",\n \"Windows Server 2012\",\n \"Windows Server 2016\"\n ]\n },\n \"ImportImageOsVersionSet\": [\n {\n \"OsName\": \"Windows Server 2008\",\n \"OsVersions\": [\n \"-\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"Windows Server 2012\",\n \"OsVersions\": [\n \"-\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"Windows Server 2016\",\n \"OsVersions\": [\n \"-\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"CentOS\",\n \"OsVersions\": [\n \"5\",\n \"6\",\n \"7\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"CoreOS\",\n \"OsVersions\": [\n \"7\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"Debian\",\n \"OsVersions\": [\n \"6\",\n \"7\",\n \"8\",\n \"9\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"FreeBSD\",\n \"OsVersions\": [\n \"10\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"Redhat\",\n \"OsVersions\": [\n \"5\",\n \"6\",\n \"7\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"OpenSUSE\",\n \"OsVersions\": [\n \"11\",\n \"12\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"SUSE\",\n \"OsVersions\": [\n \"10\",\n \"11\",\n \"12\",\n \"13\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"Ubuntu\",\n \"OsVersions\": [\n \"10\",\n \"12\",\n \"14\",\n \"16\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n },\n {\n \"OsName\": \"Other Linux\",\n \"OsVersions\": [\n \"-\"\n ],\n \"Architecture\": [\n \"x86_64\",\n \"i386\"\n ]\n }\n ],\n \"RequestId\": \"32064a8f-8d3f-4670-8d4f-60123ca97042\"\n }\n}",
|
|
220
220
|
"title": "Querying the supported operating systems of imported images"
|
|
221
221
|
}
|
|
@@ -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 \"LatestOperationState\": \"SUCCESS\",\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\": \"\",\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 \"
|
|
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 \"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\": \"
|
|
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
|
}
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"DescribeInternetChargeTypeConfigs": [
|
|
276
276
|
{
|
|
277
277
|
"document": "This example shows you how to query the list of all network billing modes and select one for the CVM created using the API.",
|
|
278
|
-
"input": "
|
|
278
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInternetChargeTypeConfigs\n<Common request parameters>\n\n{}",
|
|
279
279
|
"output": "{\n \"Response\": {\n \"InternetChargeTypeConfigSet\": [\n {\n \"InternetChargeType\": \"BANDWIDTH_PREPAID\",\n \"Description\": \"Bill by monthly bandwidth subscription\"\n },\n {\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"Description\": \"Bill by traffic\"\n },\n {\n \"InternetChargeType\": \"BANDWIDTH_POSTPAID_BY_HOUR\",\n \"Description\": \"Bill by bandwidth usage period\"\n },\n {\n \"InternetChargeType\": \"BANDWIDTH_PACKAGE\",\n \"Description\": \"Bill by bandwidth package\"\n }\n ],\n \"RequestId\": \"c2abdac4-ea7b-4653-b07c-87cc303fabf0\"\n }\n}",
|
|
280
280
|
"title": "Querying network billing modes"
|
|
281
281
|
}
|
|
@@ -283,16 +283,16 @@
|
|
|
283
283
|
"DescribeKeyPairs": [
|
|
284
284
|
{
|
|
285
285
|
"document": "This example shows you how to query the list of key pairs.",
|
|
286
|
-
"input": "
|
|
287
|
-
"output": "{\n \"Response\": {\n \"
|
|
286
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n{\n \"Filters\": [\n {\n \"Name\": \"key-name\",\n \"Values\": [\n \"MyKeyPair\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
|
287
|
+
"output": "{\n \"Response\": {\n \"KeyPairSet\": [\n {\n \"AssociatedInstanceIds\": [],\n \"CreatedTime\": \"2025-10-16T08:12:48Z\",\n \"Description\": \"\",\n \"KeyId\": \"skey-1q8j7b93\",\n \"KeyName\": \"MyKeyPair\",\n \"ProjectId\": 0,\n \"PublicKey\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8gSdflU6iZDlLp3uRgfIQ7d9gl4SzF2yO9BJ1VyzhgWkbYsUS8u7qbwxC6UeAc8364FhT4MjVjXi/+6hYpDnnMiK6lqKBxotLupUtkVmYt+osdPP+y3OcCzTqHWCsY3s7AvyvD41+nuH6LrpXZ4LlHJynPc66eqd5gpnCyg2O1sxW+pd2Zigk0QGWiCuVtm4ICEp3DNHG/9wlVzd++xODf398JU3ebxBsXfe46mFSkyBVbsJLuNueZd4eGDS3q0WhimnvpgZoYOGsNPl4GBLCGOHWZrl/9hE+az6P8W7QwpVe5gvy5MG3usk6zpc0f/diZrdXX7 skey-1q8j7b93\",\n \"Tags\": [\n {\n \"Key\": \"MyKeyPairTagKey\",\n \"Value\": \"MyKeyPairTagValue\"\n }\n ]\n }\n ],\n \"RequestId\": \"eebd54d0-a305-4716-9a84-6017ac14e8c8\",\n \"TotalCount\": 120\n }\n}",
|
|
288
288
|
"title": "Querying the List of Key Pairs"
|
|
289
289
|
}
|
|
290
290
|
],
|
|
291
291
|
"DescribeLaunchTemplateVersions": [
|
|
292
292
|
{
|
|
293
293
|
"document": " ",
|
|
294
|
-
"input": "
|
|
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\": \"
|
|
294
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLaunchTemplateVersions\n<Common request parameters>\n\n{\n \"LaunchTemplateId\": \"lt-b8v1kcyq\",\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
|
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\": \"S5.16XLARGE256\",\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,7 +339,7 @@
|
|
|
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
|
|
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
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
|
}
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
"DisassociateInstancesKeyPairs": [
|
|
362
362
|
{
|
|
363
363
|
"document": " ",
|
|
364
|
-
"input": "
|
|
364
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DisassociateInstancesKeyPairs\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-w34e5rl9\"\n ],\n \"KeyIds\": [\n \"skey-e3r6y7ji\"\n ]\n}",
|
|
365
365
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
366
366
|
"title": "Disassociating a key pair from an instance"
|
|
367
367
|
}
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
"DisassociateSecurityGroups": [
|
|
370
370
|
{
|
|
371
371
|
"document": " ",
|
|
372
|
-
"input": "
|
|
372
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DisassociateSecurityGroups\n<Common request parameters>\n\n{\n \"SecurityGroupIds\": [\n \"sg-9id3l839\"\n ],\n \"InstanceIds\": [\n \"ins-2zvpghhc\",\n \"ins-915zrb0p\"\n ]\n}",
|
|
373
373
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3385dcf2-e1f0-4ed8-a924-c296721ab65f\"\n }\n}",
|
|
374
374
|
"title": "Disassociating instances from security groups"
|
|
375
375
|
}
|
|
@@ -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,6 +422,14 @@
|
|
|
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
|
+
],
|
|
425
433
|
"InquiryPriceRenewInstances": [
|
|
426
434
|
{
|
|
427
435
|
"document": "This example shows you how to perform a renewal instance inquiry with a duration of one month.",
|
|
@@ -433,7 +441,7 @@
|
|
|
433
441
|
"InquiryPriceResetInstance": [
|
|
434
442
|
{
|
|
435
443
|
"document": " ",
|
|
436
|
-
"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}",
|
|
437
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}",
|
|
438
446
|
"title": "Inquiring About the Price of a Pay-as-You-Go Instance with New Configurations"
|
|
439
447
|
}
|
|
@@ -441,7 +449,7 @@
|
|
|
441
449
|
"InquiryPriceResetInstancesInternetMaxBandwidth": [
|
|
442
450
|
{
|
|
443
451
|
"document": "This example shows you how to inquire about the price for changing the bandwidth of the instance ins-fd8spnmq to 20 Mbps.",
|
|
444
|
-
"input": "
|
|
452
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceResetInstancesInternetMaxBandwidth\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-fd8spnmq\"\n ],\n \"InternetAccessible\": {\n \"InternetMaxBandwidthOut\": 20\n }\n}",
|
|
445
453
|
"output": "{\n \"Response\": {\n \"Price\": {\n \"BandwidthPrice\": {\n \"UnitPrice\": 0.8,\n \"ChargeUnit\": \"GB\"\n }\n },\n \"RequestId\": \"700864b9-85da-4cb9-bc80-d99eaf9fa047\"\n }\n}",
|
|
446
454
|
"title": "Inquiring About the Price of a Pay-as-You-Go Instance with a New Bandwidth Cap"
|
|
447
455
|
}
|
|
@@ -449,7 +457,7 @@
|
|
|
449
457
|
"InquiryPriceResetInstancesType": [
|
|
450
458
|
{
|
|
451
459
|
"document": " ",
|
|
452
|
-
"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}",
|
|
453
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}",
|
|
454
462
|
"title": "Querying the Price of a Monthly Subscription Instance with Adjusted Configuration"
|
|
455
463
|
}
|
|
@@ -465,27 +473,27 @@
|
|
|
465
473
|
"InquiryPriceRunInstances": [
|
|
466
474
|
{
|
|
467
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.",
|
|
468
|
-
"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}",
|
|
469
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}",
|
|
470
478
|
"title": "Inquiring About the Price of a Monthly Subscription Instance"
|
|
471
479
|
},
|
|
472
480
|
{
|
|
473
|
-
"document": "This example shows you how to
|
|
474
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
475
|
-
"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}",
|
|
476
484
|
"title": "Inquiring About the Price of an Instance with Only Required Parameters"
|
|
477
485
|
},
|
|
478
486
|
{
|
|
479
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.",
|
|
480
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
481
|
-
"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}",
|
|
482
490
|
"title": "Inquiring About the Price of an Hourly-Billed Pay-as-You-Go Instance"
|
|
483
491
|
}
|
|
484
492
|
],
|
|
485
493
|
"ModifyChcAttribute": [
|
|
486
494
|
{
|
|
487
495
|
"document": "This example shows you how to modify the CHC attributes.",
|
|
488
|
-
"input": "
|
|
496
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyChcAttribute\n<Common request parameters>\n\n{\n \"ChcIds\": [\n \"chc-r8hr2upy\",\n \"chc-5d8a23rs\"\n ],\n \"InstanceName\": \"server1\",\n \"DeviceType\": \"CHC_HS1\"\n}",
|
|
489
497
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
490
498
|
"title": "Modifying the CHC host attributes"
|
|
491
499
|
}
|
|
@@ -493,15 +501,15 @@
|
|
|
493
501
|
"ModifyDisasterRecoverGroupAttribute": [
|
|
494
502
|
{
|
|
495
503
|
"document": "This example shows you how to modify the name of a spread placement group.",
|
|
496
|
-
"input": "
|
|
497
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
504
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDisasterRecoverGroupAttribute\n<Common request parameters>\n\n{\n \"DisasterRecoverGroupId\": \"ps-39lmgkht\",\n \"Name\": \"NewDisasterRecoverGroupName\"\n}",
|
|
505
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0b184884-c513-4cd3-92c9-d4a69b05f44b\"\n }\n}",
|
|
498
506
|
"title": "Modifying the name of a spread placement group"
|
|
499
507
|
}
|
|
500
508
|
],
|
|
501
509
|
"ModifyHostsAttribute": [
|
|
502
510
|
{
|
|
503
511
|
"document": "This example shows you how to modify the `HostName` attribute of a specified CDH instance.",
|
|
504
|
-
"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}",
|
|
505
513
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
|
506
514
|
"title": "Modifying the attributes of a CDH instance"
|
|
507
515
|
}
|
|
@@ -509,7 +517,7 @@
|
|
|
509
517
|
"ModifyImageAttribute": [
|
|
510
518
|
{
|
|
511
519
|
"document": "This example shows you how to rename the image `img-6pb6lrmy` to `sample`.",
|
|
512
|
-
"input": "
|
|
520
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyImageAttribute\n<Common request parameters>\n\n{\n \"ImageId\": \"img-6pb6lrmy\",\n \"ImageName\": \"NewImageName\"\n}",
|
|
513
521
|
"output": "{\n \"Response\": {\n \"RequestId\": \"71e69b56-32be-4412-ab45-49eded6a87be\"\n }\n}",
|
|
514
522
|
"title": "Modifying image name"
|
|
515
523
|
}
|
|
@@ -530,10 +538,24 @@
|
|
|
530
538
|
"title": "Renaming instances"
|
|
531
539
|
}
|
|
532
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
|
+
],
|
|
533
555
|
"ModifyInstancesDisasterRecoverGroup": [
|
|
534
556
|
{
|
|
535
557
|
"document": "This example shows you how to adjust the instance location in an instance placement group.",
|
|
536
|
-
"input": "
|
|
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}",
|
|
537
559
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
538
560
|
"title": "Adjusting Instance Placement Groups"
|
|
539
561
|
}
|
|
@@ -541,7 +563,7 @@
|
|
|
541
563
|
"ModifyInstancesProject": [
|
|
542
564
|
{
|
|
543
565
|
"document": "This example shows you how to change the projects of two instances.",
|
|
544
|
-
"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}",
|
|
545
567
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
546
568
|
"title": "Modifying the projects of two instances"
|
|
547
569
|
}
|
|
@@ -549,7 +571,7 @@
|
|
|
549
571
|
"ModifyInstancesRenewFlag": [
|
|
550
572
|
{
|
|
551
573
|
"document": "This example shows you how to modify the renewal tags of two instances.",
|
|
552
|
-
"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}",
|
|
553
575
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
554
576
|
"title": "Modifying the Renewal Flags of Two Instances"
|
|
555
577
|
}
|
|
@@ -565,13 +587,13 @@
|
|
|
565
587
|
"ModifyKeyPairAttribute": [
|
|
566
588
|
{
|
|
567
589
|
"document": "This example shows you how to modify the key pair name.",
|
|
568
|
-
"input": "
|
|
590
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyKeyPairAttribute\n<Common request parameters>\n\n{\n \"KeyId\": \"skey-mv9yzyjj\",\n \"KeyName\": \"MyKeyName\"\n}",
|
|
569
591
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
570
592
|
"title": "Modifying the key pair name"
|
|
571
593
|
},
|
|
572
594
|
{
|
|
573
595
|
"document": "This example shows you how to modify the key pair description.",
|
|
574
|
-
"input": "
|
|
596
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyKeyPairAttribute\n<Common request parameters>\n\n{\n \"KeyId\": \"skey-mv9yzyjj\",\n \"Description\": \"MyKeyPairDescription\"\n}",
|
|
575
597
|
"output": "{\n \"Response\": {\n \"RequestId\": \"aea2227b-fbb7-4cc7-bf29-d49b2b6db97c\"\n }\n}",
|
|
576
598
|
"title": "Modifying the key pair description"
|
|
577
599
|
}
|
|
@@ -579,7 +601,7 @@
|
|
|
579
601
|
"ModifyLaunchTemplateDefaultVersion": [
|
|
580
602
|
{
|
|
581
603
|
"document": "This example sets the Version 2 of the instance launch template `lt-34vaef8fe` as the default version.",
|
|
582
|
-
"input": "
|
|
604
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyLaunchTemplateDefaultVersion\n<Common request parameters>\n\n{\n \"LaunchTemplateId\": \"lt-34vaef8fe\",\n \"DefaultVersion\": 2\n}",
|
|
583
605
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9b4ad85f-1657-4445-111d-3c0a9fbec311\"\n }\n}",
|
|
584
606
|
"title": "Modifying the default version of the instance launch template"
|
|
585
607
|
}
|
|
@@ -603,16 +625,16 @@
|
|
|
603
625
|
"RemoveChcAssistVpc": [
|
|
604
626
|
{
|
|
605
627
|
"document": "This example shows you how to remove the out-of-band network and deployment network of a CHC host.",
|
|
606
|
-
"input": "
|
|
607
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
628
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveChcAssistVpc\n<Common request parameters>\n\n{\n \"ChcIds\": [\n \"chc-1a2b3c4d\",\n \"chc-adf34aft\"\n ]\n}",
|
|
629
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"30cf6d80-8789-43db-aed3-317d0e99b5ba\"\n }\n}",
|
|
608
630
|
"title": "Removing the out-of-band network and deployment network of a CHC host"
|
|
609
631
|
}
|
|
610
632
|
],
|
|
611
633
|
"RemoveChcDeployVpc": [
|
|
612
634
|
{
|
|
613
635
|
"document": "This example shows you how to remove the deployment network of a CHC host.",
|
|
614
|
-
"input": "
|
|
615
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
636
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveChcDeployVpc\n<Common request parameters>\n\n{\n \"ChcIds\": [\n \"chc-ejzpceyo\"\n ]\n}",
|
|
637
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0b0bf55c-0340-451d-8dde-1211c3ba6d38\"\n }\n}",
|
|
616
638
|
"title": "Removing the deployment network of a CHC host"
|
|
617
639
|
}
|
|
618
640
|
],
|
|
@@ -627,7 +649,7 @@
|
|
|
627
649
|
"ResetInstance": [
|
|
628
650
|
{
|
|
629
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.",
|
|
630
|
-
"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}",
|
|
631
653
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a0a66377-b79f-4a21-846c-d997d6022968\"\n }\n}",
|
|
632
654
|
"title": "Reinstalling an instance"
|
|
633
655
|
}
|
|
@@ -635,7 +657,7 @@
|
|
|
635
657
|
"ResetInstancesInternetMaxBandwidth": [
|
|
636
658
|
{
|
|
637
659
|
"document": "This example shows you how to modify the public network bandwidth cap of an instance.",
|
|
638
|
-
"input": "
|
|
660
|
+
"input": "POST / HTTP/1.1\nHost: cvm.intl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetInstancesInternetMaxBandwidth\n<Common request parameters>\n\n{\n \"InstanceIds\": [\n \"ins-dyhinflx\"\n ],\n \"InternetAccessible\": {\n \"InternetMaxBandwidthOut\": 10\n },\n \"StartTime\": \"2025-11-18\",\n \"EndTime\": \"2025-11-19\"\n}",
|
|
639
661
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
640
662
|
"title": "Modifying the public network bandwidth cap of an instance"
|
|
641
663
|
}
|
|
@@ -643,7 +665,7 @@
|
|
|
643
665
|
"ResetInstancesPassword": [
|
|
644
666
|
{
|
|
645
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.",
|
|
646
|
-
"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}",
|
|
647
669
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
648
670
|
"title": "Resetting the password of a Linux/Windows instance"
|
|
649
671
|
}
|
|
@@ -659,7 +681,7 @@
|
|
|
659
681
|
"ResizeInstanceDisks": [
|
|
660
682
|
{
|
|
661
683
|
"document": " ",
|
|
662
|
-
"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}",
|
|
663
685
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
664
686
|
"title": "Resetting the disk size of a specific instance"
|
|
665
687
|
}
|
|
@@ -667,39 +689,39 @@
|
|
|
667
689
|
"RunInstances": [
|
|
668
690
|
{
|
|
669
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.",
|
|
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-
|
|
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}",
|
|
672
694
|
"title": "Purchasing a CDH Instance"
|
|
673
695
|
},
|
|
674
696
|
{
|
|
675
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.",
|
|
676
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
677
|
-
"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}",
|
|
678
700
|
"title": "Purchasing a Monthly Subscription Instance"
|
|
679
701
|
},
|
|
680
702
|
{
|
|
681
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.",
|
|
682
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
683
|
-
"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}",
|
|
684
706
|
"title": "Purchasing an Instance with Only Required Parameters"
|
|
685
707
|
},
|
|
686
708
|
{
|
|
687
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.",
|
|
688
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
689
|
-
"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}",
|
|
690
712
|
"title": "Purchasing an Hourly-Billed Pay-as-You-Go Instance"
|
|
691
713
|
},
|
|
692
714
|
{
|
|
693
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.",
|
|
694
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
695
|
-
"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}",
|
|
696
718
|
"title": "Creating an Instance with the Private IP Address Specified"
|
|
697
719
|
}
|
|
698
720
|
],
|
|
699
721
|
"StartInstances": [
|
|
700
722
|
{
|
|
701
723
|
"document": "This example shows you how to start up two shutdown instances at once.",
|
|
702
|
-
"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}",
|
|
703
725
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
704
726
|
"title": "Starting up instances with the specified IDs"
|
|
705
727
|
}
|
|
@@ -707,7 +729,7 @@
|
|
|
707
729
|
"StopInstances": [
|
|
708
730
|
{
|
|
709
731
|
"document": "This example shows you how to shut down two instances.",
|
|
710
|
-
"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}",
|
|
711
733
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
|
712
734
|
"title": "Shutting down instances"
|
|
713
735
|
}
|