tccli-intl-en 3.0.1275.1__py2.py3-none-any.whl → 3.0.1277.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +34 -16
- tccli/services/cvm/v20170312/examples.json +16 -16
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +201 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/mdp/v20200527/api.json +8 -8
- tccli/services/mdp/v20200527/examples.json +6 -6
- tccli/services/tcsas/v20250106/api.json +101 -61
- tccli/services/tcsas/v20250106/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +59 -29
- tccli/services/vpc/v20170312/api.json +95 -21
- tccli/services/vpc/v20170312/examples.json +1 -1
- {tccli_intl_en-3.0.1275.1.dist-info → tccli_intl_en-3.0.1277.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1275.1.dist-info → tccli_intl_en-3.0.1277.1.dist-info}/RECORD +20 -20
- {tccli_intl_en-3.0.1275.1.dist-info → tccli_intl_en-3.0.1277.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1275.1.dist-info → tccli_intl_en-3.0.1277.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1275.1.dist-info → tccli_intl_en-3.0.1277.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1275.1.dist-info → tccli_intl_en-3.0.1277.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1277.1'
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"status": "online"
|
|
65
65
|
},
|
|
66
66
|
"CreateNotificationConfiguration": {
|
|
67
|
-
"document": "This API is used to create a notification
|
|
67
|
+
"document": "This API is used to create a notification.\nThis API is used to send notifications to a CMQ topic or queue with the following message content:.\n```\n{\n \"Service\": \"Tencent Cloud Auto Scaling\",\n\"CreatedTime\": \"2021-10-11T10:15:11Z\", // Activity creation time.\n \"AppId\": \"100000000\",\n\"ActivityId\": \"asa-fznnvrja\", // scaling activity ID.\nThis API is used to specify the scaling group ID.\n\"ActivityType\": \"SCALE_OUT\", // scaling activity type.\n\"StatusCode\": \"SUCCESSFUL\".\n \"Description\": \"Activity was launched in response to a difference between desired capacity and actual capacity,\nThis API is used to scale out 1 instance.\nThis API is used to set the activity start time.\n\"EndTime\": \"2021-10-11T10:15:32Z\", // activity end time.\n\"DetailedStatusMessageSet\": [ // Collection of activity internal errors (non-empty does not mean activity failure).\n {\n \"Code\": \"InvalidInstanceType\",\n \"Zone\": \"ap-guangzhou-6\",\n \"InstanceId\": \"\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"SubnetId\": \"subnet-4t5mgeuu\",\n \"Message\": \"The specified instance type `S5.LARGE8` is invalid in `subnet-4t5mgeuu`, `ap-guangzhou-6`.\",\n \"InstanceType\": \"S5.LARGE8\"\n }\n ]\n}\n```",
|
|
68
68
|
"input": "CreateNotificationConfigurationRequest",
|
|
69
69
|
"name": "Creates a notification",
|
|
70
70
|
"output": "CreateNotificationConfigurationResponse",
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
"status": "online"
|
|
429
429
|
},
|
|
430
430
|
"ModifyInstancesAttribute": {
|
|
431
|
-
"document": "
|
|
431
|
+
"document": "This API is used to modify instance attributes.\n\nThis API is used to modify one attribute of the instance per request. The attribute must be specified.\nThe instance name is only for user convenience in management. Tencent Cloud does not use this name as the basis for online support or to perform instance management operations.\nThis API is used to support batch operations. The maximum of 100 batch instances per request is supported.\nThis API is used to modify the security group association. The originally associated security group of the instance will be unbound.\n* You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.\nThis API is used to modify the hostname. The instance restarts immediately after hostname modification, and the new hostname takes effect after restart.",
|
|
432
432
|
"input": "ModifyInstancesAttributeRequest",
|
|
433
433
|
"name": "Modifies instance attributes",
|
|
434
434
|
"output": "ModifyInstancesAttributeResponse",
|
|
@@ -2315,7 +2315,7 @@
|
|
|
2315
2315
|
},
|
|
2316
2316
|
{
|
|
2317
2317
|
"disabled": false,
|
|
2318
|
-
"document": "Specifies the data disk type. for restrictions on data disk types, refer to [storage overview](https://www.tencentcloud.
|
|
2318
|
+
"document": "Specifies the data disk type. for restrictions on data disk types, refer to [storage overview](https://www.tencentcloud.com/document/product/213/4952?from_cn_redirect=1). valid values: <br /><li>LOCAL_BASIC: LOCAL disk</li> <li>LOCAL_SSD: LOCAL SSD</li><li>LOCAL_NVME: LOCAL NVME disk, which is closely related to InstanceType and cannot be specified</li><li>LOCAL_PRO: LOCAL HDD, which is closely related to InstanceType and cannot be specified</li><li>cloud_BASIC: BASIC cloud disk</li><li>cloud_PREMIUM: high-performance cloud block storage</li><li>cloud_SSD: SSD cloud disk</li><li>cloud_HSSD: enhanced SSD cloud disk</li> <li>cloud_TSSD: ultra-fast SSD cbs</li><li>cloud_BSSD: universal SSD cloud disk</li><br />default: LOCAL_BASIC.<br/><br />this parameter is invalid for the `ResizeInstanceDisk` api.",
|
|
2319
2319
|
"example": "CLOUD_SSD",
|
|
2320
2320
|
"member": "string",
|
|
2321
2321
|
"name": "DiskType",
|
|
@@ -5585,7 +5585,7 @@
|
|
|
5585
5585
|
},
|
|
5586
5586
|
{
|
|
5587
5587
|
"disabled": false,
|
|
5588
|
-
"document": "
|
|
5588
|
+
"document": "Instance model. Different instance models specify different resource specifications.\n<br><li>For instances created with the payment modes PREPAID or POSTPAID_BY_HOUR, specifies the specific values obtained BY calling the [DescribeInstanceTypeConfigs](https://www.tencentcloud.comom/document/api/213/15749?from_cn_redirect=1) api for the latest specification table or referring to [instance specifications](https://www.tencentcloud.comom/document/product/213/11518?from_cn_redirect=1). if not specified, the system will dynamically assign a default model based on the current resource sales situation in a region.</li><br><li>for instances created with the payment mode CDHPAID, indicates this parameter uses the prefix \"CDH_\" and is generated based on CPU and memory configuration. the specific format is: CDH_XCXG. for example, for creating a CDH instance with 1 CPU core and 1 gb memory, this parameter should be CDH_1C1G.</li>.",
|
|
5589
5589
|
"example": "S5.MEDIUM2",
|
|
5590
5590
|
"member": "string",
|
|
5591
5591
|
"name": "InstanceType",
|
|
@@ -5639,7 +5639,7 @@
|
|
|
5639
5639
|
},
|
|
5640
5640
|
{
|
|
5641
5641
|
"disabled": false,
|
|
5642
|
-
"document": "Instance name
|
|
5642
|
+
"document": "Instance display name. <li>if no instance display name is specified, it will display 'unnamed' by default.</li> <li>when purchasing multiple instances, if the pattern string `{R:x}` is specified, it means generating numbers `[x, x+n-1]`, where `n` represents the number of purchased instances. for example, `server_{R:3}`: when purchasing 1 instance, the instance display name is `server_3`; when purchasing 2 instances, the instance display names are `server_3` and `server_4` respectively. supports specifying multiple pattern strings `{R:x}`.</li> <li>when purchasing multiple instances without specifying a pattern string, suffixes `1, 2...n` will be added to the instance display name, where `n` represents the number of purchased instances. for example, `server_`: when purchasing 2 instances, the instance display names are `server_1` and `server_2` respectively.</li> <li>supports up to 128 characters (including pattern strings).</li>.",
|
|
5643
5643
|
"example": "myInstance",
|
|
5644
5644
|
"member": "string",
|
|
5645
5645
|
"name": "InstanceName",
|
|
@@ -5657,7 +5657,7 @@
|
|
|
5657
5657
|
},
|
|
5658
5658
|
{
|
|
5659
5659
|
"disabled": false,
|
|
5660
|
-
"document": "Security
|
|
5660
|
+
"document": "Security group to which an instance belongs. obtain this parameter by calling the `SecurityGroupId` field in the return value of [DescribeSecurityGroups](https://www.tencentcloud.comom/document/api/215/15808?from_cn_redirect=1). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.\n",
|
|
5661
5661
|
"example": "[\"sg-efil73jd\"]",
|
|
5662
5662
|
"member": "string",
|
|
5663
5663
|
"name": "SecurityGroupIds",
|
|
@@ -5676,7 +5676,7 @@
|
|
|
5676
5676
|
{
|
|
5677
5677
|
"disabled": false,
|
|
5678
5678
|
"document": "A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.<br>For more information, see Ensuring Idempotency.",
|
|
5679
|
-
"example": "
|
|
5679
|
+
"example": "a521b4e4-c903-4d37-9de6-8096e3ad8eb7",
|
|
5680
5680
|
"member": "string",
|
|
5681
5681
|
"name": "ClientToken",
|
|
5682
5682
|
"required": false,
|
|
@@ -5709,6 +5709,15 @@
|
|
|
5709
5709
|
"required": false,
|
|
5710
5710
|
"type": "object"
|
|
5711
5711
|
},
|
|
5712
|
+
{
|
|
5713
|
+
"disabled": false,
|
|
5714
|
+
"document": "Custom metadata, supports creating key-value pairs of custom metadata when creating a CVM.\n\n**Note: this field is in beta test.**.",
|
|
5715
|
+
"example": "无",
|
|
5716
|
+
"member": "Metadata",
|
|
5717
|
+
"name": "Metadata",
|
|
5718
|
+
"required": false,
|
|
5719
|
+
"type": "object"
|
|
5720
|
+
},
|
|
5712
5721
|
{
|
|
5713
5722
|
"disabled": false,
|
|
5714
5723
|
"document": "HPC cluster ID.",
|
|
@@ -7825,7 +7834,7 @@
|
|
|
7825
7834
|
},
|
|
7826
7835
|
{
|
|
7827
7836
|
"disabled": false,
|
|
7828
|
-
"document": "
|
|
7837
|
+
"document": "Modified instance name. can be named as required but should not exceed 128 characters.",
|
|
7829
7838
|
"example": "MyInsName",
|
|
7830
7839
|
"member": "string",
|
|
7831
7840
|
"name": "InstanceName",
|
|
@@ -7843,7 +7852,7 @@
|
|
|
7843
7852
|
},
|
|
7844
7853
|
{
|
|
7845
7854
|
"disabled": false,
|
|
7846
|
-
"document": "
|
|
7855
|
+
"document": "Specifies the security group Id list of the specified instance after modification. the instance will reassociate with the security groups in the specified list, and the associated security group will be unbound.",
|
|
7847
7856
|
"example": "[\"sg-rf6ogz49\"]",
|
|
7848
7857
|
"member": "string",
|
|
7849
7858
|
"name": "SecurityGroups",
|
|
@@ -7879,7 +7888,7 @@
|
|
|
7879
7888
|
},
|
|
7880
7889
|
{
|
|
7881
7890
|
"disabled": false,
|
|
7882
|
-
"document": "
|
|
7891
|
+
"document": "Role type, used in conjunction with CamRoleName. this value can be obtained from the RoleType field in the API response of CAM [DescribeRoleList](https://www.tencentcloud.comom/document/product/598/36223?from_cn_redirect=1) or [GetRole](https://www.tencentcloud.comom/document/product/598/36221?from_cn_redirect=1). currently, only user, system, and service_linked types are accepted.\nFor example, when CamRoleName contains \"LinkedRoleIn\" (such as TKE_QCSLinkedRoleInPrometheusService), DescribeRoleList and GetRole return RoleType as service_linked, this parameter must also transmit service_linked.\nThe parameter default value is user. this parameter can be omitted if CameRoleName is not of the service_linked kind.",
|
|
7883
7892
|
"example": "user",
|
|
7884
7893
|
"member": "string",
|
|
7885
7894
|
"name": "CamRoleType",
|
|
@@ -9665,7 +9674,16 @@
|
|
|
9665
9674
|
},
|
|
9666
9675
|
{
|
|
9667
9676
|
"disabled": false,
|
|
9668
|
-
"document": "
|
|
9677
|
+
"document": "Specifies the minimum number of instances to create. value range: positive integer not greater than InstanceCount.\nSpecifies the minimum purchasable quantity, guarantees to create at least MinCount instances, and creates InstanceCount instances as much as possible.\nInsufficient inventory to meet the minimum purchasable quantity will trigger an error info indicating insufficient stock.\nOnly applicable to accounts, regions, and billing modes (annual/monthly subscription, pay-as-you-go, spot instance, exclusive sales) with partial support.",
|
|
9678
|
+
"example": "1",
|
|
9679
|
+
"member": "int64",
|
|
9680
|
+
"name": "MinCount",
|
|
9681
|
+
"required": false,
|
|
9682
|
+
"type": "int"
|
|
9683
|
+
},
|
|
9684
|
+
{
|
|
9685
|
+
"disabled": false,
|
|
9686
|
+
"document": "Instance display name. <li>if no instance display name is specified, it will display 'unnamed' by default.</li> <li>when purchasing multiple instances, if the pattern string `{R:x}` is specified, it means generating numbers `[x, x+n-1]`, where `n` represents the number of purchased instances. for example, `server_{R:3}`: when purchasing 1 instance, the instance display name is `server_3`; when purchasing 2 instances, the instance display names are `server_3` and `server_4` respectively. supports specifying multiple pattern strings `{R:x}`.</li> <li>when purchasing multiple instances without specifying a pattern string, suffixes `1, 2...n` will be added to the instance display name, where `n` represents the number of purchased instances. for example, `server_`: when purchasing 2 instances, the instance display names are `server_1` and `server_2` respectively.</li> <li>supports up to 128 characters (including pattern strings).</li>.",
|
|
9669
9687
|
"example": "server_{R:3}",
|
|
9670
9688
|
"member": "string",
|
|
9671
9689
|
"name": "InstanceName",
|
|
@@ -9683,7 +9701,7 @@
|
|
|
9683
9701
|
},
|
|
9684
9702
|
{
|
|
9685
9703
|
"disabled": false,
|
|
9686
|
-
"document": "Security
|
|
9704
|
+
"document": "Security group to which an instance belongs. obtain this parameter by calling the `SecurityGroupId` field in the return value of [DescribeSecurityGroups](https://www.tencentcloud.comom/document/api/215/15808?from_cn_redirect=1). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.\n",
|
|
9687
9705
|
"example": "[\"sg-ajhn9qtq\"]",
|
|
9688
9706
|
"member": "string",
|
|
9689
9707
|
"name": "SecurityGroupIds",
|
|
@@ -9729,7 +9747,7 @@
|
|
|
9729
9747
|
{
|
|
9730
9748
|
"disabled": false,
|
|
9731
9749
|
"document": "Placement group ID. You can only specify one.",
|
|
9732
|
-
"example": "[
|
|
9750
|
+
"example": "[\"sg-efil73jd\"]",
|
|
9733
9751
|
"member": "string",
|
|
9734
9752
|
"name": "DisasterRecoverGroupIds",
|
|
9735
9753
|
"required": false,
|
|
@@ -9764,7 +9782,7 @@
|
|
|
9764
9782
|
},
|
|
9765
9783
|
{
|
|
9766
9784
|
"disabled": false,
|
|
9767
|
-
"document": "",
|
|
9785
|
+
"document": "Custom metadata. specifies the support for creating custom metadata key-value pairs when creating a CVM.\n**Note: this field is in beta test.**.",
|
|
9768
9786
|
"example": "无",
|
|
9769
9787
|
"member": "Metadata",
|
|
9770
9788
|
"name": "Metadata",
|
|
@@ -9845,7 +9863,7 @@
|
|
|
9845
9863
|
},
|
|
9846
9864
|
{
|
|
9847
9865
|
"disabled": false,
|
|
9848
|
-
"document": "",
|
|
9866
|
+
"document": "Whether the instance enables jumbo frames. valid values:<br><li/> true: means the instance enables jumbo frames. only models supporting jumbo frames can be set to true.<br><li/> false: means the instance disables jumbo frames. only models supporting jumbo frames can be set to false.<br> instance specifications supporting jumbo frames: [instance specifications](https://www.tencentcloud.comom/document/product/213/11518?from_cn_redirect=1).",
|
|
9849
9867
|
"example": "false",
|
|
9850
9868
|
"member": "bool",
|
|
9851
9869
|
"name": "EnableJumboFrame",
|
|
@@ -9861,7 +9879,7 @@
|
|
|
9861
9879
|
{
|
|
9862
9880
|
"disabled": false,
|
|
9863
9881
|
"document": "If you use this API to create instance(s), this parameter will be returned, representing one or more instance IDs. Retuning the instance ID list does not necessarily mean that the instance(s) were created successfully. To check whether the instance(s) were created successfully, you can call [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and check the status of the instances in `InstancesSet` in the response. If the status of an instance changes from \"PENDING\" to \"RUNNING\", it means that the instance has been created successfully.",
|
|
9864
|
-
"example": "[
|
|
9882
|
+
"example": "[\"ins-rn79mzt1\"]",
|
|
9865
9883
|
"member": "string",
|
|
9866
9884
|
"name": "InstanceIdSet",
|
|
9867
9885
|
"output_required": true,
|
|
@@ -10332,7 +10350,7 @@
|
|
|
10332
10350
|
"members": [
|
|
10333
10351
|
{
|
|
10334
10352
|
"disabled": false,
|
|
10335
|
-
"document": "
|
|
10353
|
+
"document": "Specifies the resource type for Tag binding. valid values: \"instance\" (cloud virtual machine), \"host\" (cdh), \"image\" (mirror), \"keypair\" (key), \"ps\" (placement group), \"hpc\" (hyper computing cluster).",
|
|
10336
10354
|
"example": "instance",
|
|
10337
10355
|
"member": "string",
|
|
10338
10356
|
"name": "ResourceType",
|
|
@@ -473,20 +473,20 @@
|
|
|
473
473
|
"InquiryPriceRunInstances": [
|
|
474
474
|
{
|
|
475
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.",
|
|
476
|
-
"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}",
|
|
477
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}",
|
|
478
478
|
"title": "Inquiring About the Price of a Monthly Subscription Instance"
|
|
479
479
|
},
|
|
480
480
|
{
|
|
481
|
-
"document": "This example shows you how to
|
|
482
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
483
|
-
"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}",
|
|
484
484
|
"title": "Inquiring About the Price of an Instance with Only Required Parameters"
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
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.",
|
|
488
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<Common request parameters>\n\n
|
|
489
|
-
"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}",
|
|
490
490
|
"title": "Inquiring About the Price of an Hourly-Billed Pay-as-You-Go Instance"
|
|
491
491
|
}
|
|
492
492
|
],
|
|
@@ -689,32 +689,32 @@
|
|
|
689
689
|
"RunInstances": [
|
|
690
690
|
{
|
|
691
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.",
|
|
692
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
693
|
-
"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}",
|
|
694
694
|
"title": "Purchasing a CDH Instance"
|
|
695
695
|
},
|
|
696
696
|
{
|
|
697
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.",
|
|
698
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
699
|
-
"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}",
|
|
700
700
|
"title": "Purchasing a Monthly Subscription Instance"
|
|
701
701
|
},
|
|
702
702
|
{
|
|
703
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.",
|
|
704
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
705
|
-
"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}",
|
|
706
706
|
"title": "Purchasing an Instance with Only Required Parameters"
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
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.",
|
|
710
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
711
|
-
"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}",
|
|
712
712
|
"title": "Purchasing an Hourly-Billed Pay-as-You-Go Instance"
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
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.",
|
|
716
|
-
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RunInstances\n<Common request parameters>\n\n
|
|
717
|
-
"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}",
|
|
718
718
|
"title": "Creating an Instance with the Private IP Address Specified"
|
|
719
719
|
}
|
|
720
720
|
],
|
|
@@ -2461,6 +2461,58 @@ def doUpgradeProxy(args, parsed_globals):
|
|
|
2461
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2462
2462
|
|
|
2463
2463
|
|
|
2464
|
+
def doInquirePriceMultiSpec(args, parsed_globals):
|
|
2465
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2466
|
+
|
|
2467
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2468
|
+
cred = credential.CVMRoleCredential()
|
|
2469
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2470
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2471
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2472
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2473
|
+
)
|
|
2474
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2475
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2476
|
+
else:
|
|
2477
|
+
cred = credential.Credential(
|
|
2478
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2479
|
+
)
|
|
2480
|
+
http_profile = HttpProfile(
|
|
2481
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2482
|
+
reqMethod="POST",
|
|
2483
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2484
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2485
|
+
)
|
|
2486
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2487
|
+
if g_param[OptionsDefine.Language]:
|
|
2488
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2489
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2490
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2491
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2492
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2493
|
+
model = models.InquirePriceMultiSpecRequest()
|
|
2494
|
+
model.from_json_string(json.dumps(args))
|
|
2495
|
+
start_time = time.time()
|
|
2496
|
+
while True:
|
|
2497
|
+
rsp = client.InquirePriceMultiSpec(model)
|
|
2498
|
+
result = rsp.to_json_string()
|
|
2499
|
+
try:
|
|
2500
|
+
json_obj = json.loads(result)
|
|
2501
|
+
except TypeError as e:
|
|
2502
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2503
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2504
|
+
break
|
|
2505
|
+
cur_time = time.time()
|
|
2506
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2507
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2508
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2509
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2510
|
+
else:
|
|
2511
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2512
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2513
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2514
|
+
|
|
2515
|
+
|
|
2464
2516
|
def doDescribeClusters(args, parsed_globals):
|
|
2465
2517
|
g_param = parse_global_arg(parsed_globals)
|
|
2466
2518
|
|
|
@@ -7355,6 +7407,7 @@ ACTION_MAP = {
|
|
|
7355
7407
|
"DescribeInstancesWithinSameCluster": doDescribeInstancesWithinSameCluster,
|
|
7356
7408
|
"RestartInstance": doRestartInstance,
|
|
7357
7409
|
"UpgradeProxy": doUpgradeProxy,
|
|
7410
|
+
"InquirePriceMultiSpec": doInquirePriceMultiSpec,
|
|
7358
7411
|
"DescribeClusters": doDescribeClusters,
|
|
7359
7412
|
"CloseWan": doCloseWan,
|
|
7360
7413
|
"DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
|