tccli-intl-en 3.1.16.1__py2.py3-none-any.whl → 3.1.17.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 CHANGED
@@ -1 +1 @@
1
- __version__ = '3.1.16.1'
1
+ __version__ = '3.1.17.1'
@@ -3994,7 +3994,7 @@
3994
3994
  {
3995
3995
  "disabled": false,
3996
3996
  "document": "Number of availability zones.",
3997
- "example": "",
3997
+ "example": "1",
3998
3998
  "member": "uint64",
3999
3999
  "name": "TotalCount",
4000
4000
  "output_required": true,
@@ -5312,7 +5312,7 @@
5312
5312
  "members": [
5313
5313
  {
5314
5314
  "disabled": false,
5315
- "document": "One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.",
5315
+ "document": "One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.com/zh/document/api/213/33258). The maximum number of instances per request is 100.",
5316
5316
  "example": "[\"ins-2zvpghhc\"]",
5317
5317
  "member": "string",
5318
5318
  "name": "InstanceIds",
@@ -5632,7 +5632,7 @@
5632
5632
  },
5633
5633
  {
5634
5634
  "disabled": false,
5635
- "document": "[Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images</li><li>Custom images</li><li>Shared images</li><br/>You can obtain the available image IDs in the following ways: <br/><li>For IDs of `public images`, `custom images`, and `shared images`, log in to the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the information. </li><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>\n <b>Note: `ImageId` is required when `LaunchTemplate` is not specified. If both the parameters are passed in, `ImageId` prevails.</b>",
5635
+ "document": "[Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images</li><li>Custom images</li><li>Shared images</li><br/>You can obtain the available image IDs in the following ways: <br/><li>For IDs of `public images`, `custom images`, and `shared images`, log in to the [CVM console](https://console.tencentcloud.com/cvm/image/index?rid=1&tab=PUBLIC_IMAGE&imageType=PUBLIC_IMAGE) to query the information. </li><li>Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>\n <b>Note: `ImageId` is required when `LaunchTemplate` is not specified. If both the parameters are passed in, `ImageId` prevails.</b>",
5636
5636
  "example": "img-pmqg1cw7",
5637
5637
  "member": "string",
5638
5638
  "name": "ImageId",
@@ -5659,7 +5659,7 @@
5659
5659
  },
5660
5660
  {
5661
5661
  "disabled": false,
5662
- "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>.",
5662
+ "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 [DescribeInstanceTypeConfig](https://www.tencentcloud.com/document/product/1119/45686?lang=en) api for the latest specification table or referring to [instance specifications](https://www.tencentcloud.com/document/product/213/11518). 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>.",
5663
5663
  "example": "S5.MEDIUM2",
5664
5664
  "member": "string",
5665
5665
  "name": "InstanceType",
@@ -5686,7 +5686,7 @@
5686
5686
  },
5687
5687
  {
5688
5688
  "disabled": false,
5689
- "document": "VPC configurations (VPC ID, subnet ID, etc). If it’s not specified, the classic network will be used by default. If a VPC IP is specified in this parameter, the `InstanceCount` can only be 1.",
5689
+ "document": "VPC configurations (VPC ID, subnet ID, etc). If It's not specified, the classic network will be used by default. If a VPC IP is specified in this parameter, the `InstanceCount` can only be 1.",
5690
5690
  "example": "无",
5691
5691
  "member": "VirtualPrivateCloud",
5692
5692
  "name": "VirtualPrivateCloud",
@@ -5695,7 +5695,7 @@
5695
5695
  },
5696
5696
  {
5697
5697
  "disabled": false,
5698
- "document": "Configuration of public network bandwidth. If its not specified, 0 Mbps is used by default.",
5698
+ "document": "Configuration of public network bandwidth. If it's not specified, 0 Mbps is used by default.",
5699
5699
  "example": "无",
5700
5700
  "member": "InternetAccessible",
5701
5701
  "name": "InternetAccessible",
@@ -5731,7 +5731,7 @@
5731
5731
  },
5732
5732
  {
5733
5733
  "disabled": false,
5734
- "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",
5734
+ "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.com/document/product/215/15808). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.",
5735
5735
  "example": "[\"sg-efil73jd\"]",
5736
5736
  "member": "string",
5737
5737
  "name": "SecurityGroupIds",
@@ -7903,7 +7903,7 @@
7903
7903
  "members": [
7904
7904
  {
7905
7905
  "disabled": false,
7906
- "document": "Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.",
7906
+ "document": "Instance ID(s). To obtain the instance IDs, you can call [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.",
7907
7907
  "example": "[\"ins-rf6ogz49\"]",
7908
7908
  "member": "string",
7909
7909
  "name": "InstanceIds",
@@ -7966,7 +7966,7 @@
7966
7966
  },
7967
7967
  {
7968
7968
  "disabled": false,
7969
- "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.",
7969
+ "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.com/document/product/1219/67889) or [GetRole](https://www.tencentcloud.com/document/product/598/33557?lang=en). 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.",
7970
7970
  "example": "user",
7971
7971
  "member": "string",
7972
7972
  "name": "CamRoleType",
@@ -8401,7 +8401,7 @@
8401
8401
  },
8402
8402
  {
8403
8403
  "disabled": false,
8404
- "document": "Instance'S project ID. obtain this parameter by calling the `ProjectId` field in the return value of [DescribeProject](https://www.tencentcloud.com/document/product/651/54679). default value 0 means default project.",
8404
+ "document": "Instance'S project ID. obtain this parameter by calling the `ProjectId` field in the return value of [DescribeProjects](https://www.tencentcloud.com/document/product/651/54679). default value 0 means default project.",
8405
8405
  "example": "0",
8406
8406
  "member": "int64",
8407
8407
  "name": "ProjectId",
@@ -8671,7 +8671,7 @@
8671
8671
  "members": [
8672
8672
  {
8673
8673
  "disabled": false,
8674
- "document": "One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.",
8674
+ "document": "One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.com/document/api/213/33258). The maximum number of instances per request is 100.",
8675
8675
  "example": "[\"ins-r8hr2upy\"]",
8676
8676
  "member": "string",
8677
8677
  "name": "InstanceIds",
@@ -10588,7 +10588,7 @@
10588
10588
  "members": [
10589
10589
  {
10590
10590
  "disabled": false,
10591
- "document": "Availability zone name, for example, ap-guangzhou-3.\n\nThe names of availability zones across the network are as follows:\n<li> ap-chongqing-1 </li>\n<li> ap-seoul-1 </li>\n<li> ap-seoul-2 </li>\n<li> ap-chengdu-1 </li>\n<li> ap-chengdu-2 </li>\n<li> ap-hongkong-1 (sold out)</li>\n<li> ap-hongkong-2 </li>\n<li> ap-hongkong-3 </li>\n<li> ap-shenzhen-fsi-1 </li>\n<li> ap-shenzhen-fsi-2 </li>\n<li> ap-shenzhen-fsi-3 (sold out)</li>\n<li> ap-guangzhou-1 (sold out)</li>\n<li> ap-guangzhou-2 (sold out)</li>\n<li> ap-guangzhou-3 </li>\n<li> ap-guangzhou-4 </li>\n<li> ap-guangzhou-6 </li>\n<li> ap-guangzhou-7 </li>\n<li> ap-tokyo-1 </li>\n<li> ap-tokyo-2 </li>\n<li> ap-singapore-1 </li>\n<li> ap-singapore-2 </li>\n<li> ap-singapore-3 </li>\n<li>ap-singapore-4 </li>\n<li> ap-shanghai-fsi-1 </li>\n<li> ap-shanghai-fsi-2 </li>\n<li> ap-shanghai-fsi-3 </li>\n<li> ap-bangkok-1 </li>\n<li> ap-bangkok-2 </li>\n<li> ap-shanghai-1 (sold out)</li>\n<li> ap-shanghai-2 </li>\n<li> ap-shanghai-3 </li>\n<li> ap-shanghai-4 </li>\n<li> ap-shanghai-5 </li>\n<li> ap-shanghai-8 </li>\n<li> ap-mumbai-1 </li>\n<li> ap-mumbai-2 </li>\n<li> ap-beijing-1 (sold out)</li>\n<li> ap-beijing-2 </li>\n<li> ap-beijing-3 </li>\n<li> ap-beijing-4 </li>\n<li> ap-beijing-5 </li>\n<li> ap-beijing-6 </li>\n<li> ap-beijing-7 </li>\n<li> na-siliconvalley-1 </li>\n<li> na-siliconvalley-2 </li>\n<li> eu-frankfurt-1 </li>\n<li> eu-frankfurt-2 </li>\n<li> na-ashburn-1 </li>\n<li> na-ashburn-2 </li>\n<li> ap-nanjing-1 </li>\n<li> ap-nanjing-2 </li>\n<li> ap-nanjing-3 </li>\n<li> sa-saopaulo-1</li>\n<li> ap-jakarta-1 </li>\n<li> ap-jakarta-2 </li>",
10591
+ "document": "Availability zone name, for example, ap-guangzhou-3.\n\nThe names of availability zones across the network are as follows:\n<li> ap-chongqing-1 </li>\n<li> ap-seoul-1 </li>\n<li> ap-seoul-2 </li>\n<li> ap-chengdu-1 </li>\n<li> ap-chengdu-2 </li>\n<li> ap-hongkong-1 (sold out)</li>\n<li> ap-hongkong-2 </li>\n<li> ap-hongkong-3 </li>\n<li> ap-shenzhen-fsi-1 </li>\n<li> ap-shenzhen-fsi-2 </li>\n<li> ap-shenzhen-fsi-3 (sold out)</li>\n<li> ap-guangzhou-1 (sold out)</li>\n<li> ap-guangzhou-3 </li>\n<li> ap-guangzhou-4 </li>\n<li> ap-guangzhou-6 </li>\n<li> ap-guangzhou-7 </li>\n<li> ap-tokyo-1 </li>\n<li> ap-tokyo-2 </li>\n<li> ap-singapore-1 </li>\n<li> ap-singapore-2 </li>\n<li> ap-singapore-3 </li>\n<li>ap-singapore-4 </li>\n<li> ap-shanghai-fsi-1 </li>\n<li> ap-shanghai-fsi-2 </li>\n<li> ap-shanghai-fsi-3 </li>\n<li> ap-bangkok-1 </li>\n<li> ap-bangkok-2 </li>\n<li> ap-shanghai-1 (sold out)</li>\n<li> ap-shanghai-2 </li>\n<li> ap-shanghai-3 </li>\n<li> ap-shanghai-4 </li>\n<li> ap-shanghai-5 </li>\n<li> ap-shanghai-8 </li>\n<li> ap-mumbai-1 </li>\n<li> ap-mumbai-2 </li>\n<li> ap-beijing-1 (sold out)</li>\n<li> ap-beijing-2 </li>\n<li> ap-beijing-3 </li>\n<li> ap-beijing-4 </li>\n<li> ap-beijing-5 </li>\n<li> ap-beijing-6 </li>\n<li> ap-beijing-7 </li>\n<li> na-siliconvalley-1 </li>\n<li> na-siliconvalley-2 </li>\n<li> eu-frankfurt-1 </li>\n<li> eu-frankfurt-2 </li>\n<li> na-ashburn-1 </li>\n<li> na-ashburn-2 </li>\n<li> ap-nanjing-1 </li>\n<li> ap-nanjing-2 </li>\n<li> ap-nanjing-3 </li>\n<li> sa-saopaulo-1</li>\n<li> ap-jakarta-1 </li>\n<li> ap-jakarta-2 </li>",
10592
10592
  "example": "ap-guangzhou-3",
10593
10593
  "member": "string",
10594
10594
  "name": "Zone",
@@ -348,13 +348,13 @@
348
348
  {
349
349
  "document": "This example shows you how to query information of availability zones in the Guangzhou region. To return its Chinese name of the availability zone, you need to pass the parameter `Language=zh-CN`.",
350
350
  "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZones\nX-TC-Language: zh-CN\n&<Common request parameters>\n\n{}",
351
- "output": "{\n \"Response\": {\n \"TotalCount\": 5,\n \"ZoneSet\": [\n {\n \"ZoneState\": \"UNAVAILABLE\",\n \"ZoneId\": \"100001\",\n \"Zone\": \"ap-guangzhou-1\",\n \"ZoneName\": \"Guangzhou Zone 1\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100002\",\n \"Zone\": \"ap-guangzhou-2\",\n \"ZoneName\": \"Guangzhou Zone 2\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100003\",\n \"Zone\": \"ap-guangzhou-3\",\n \"ZoneName\": \"Guangzhou Zone 3\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100004\",\n \"Zone\": \"ap-guangzhou-4\",\n \"ZoneName\": \"Guangzhou Zone 4\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100005\",\n \"Zone\": \"ap-guangzhou-5\",\n \"ZoneName\": \"Guangzhou Zone 5\"\n }\n ],\n \"RequestId\": \"62DDFFC6-FDB5-44F7-20A6-59152E3D129A\"\n }\n}",
351
+ "output": "{\n \"Response\": {\n \"TotalCount\": 3,\n \"ZoneSet\": [\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100003\",\n \"Zone\": \"ap-guangzhou-3\",\n \"ZoneName\": \"Guangzhou Zone 3\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100004\",\n \"Zone\": \"ap-guangzhou-4\",\n \"ZoneName\": \"Guangzhou Zone 4\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100006\",\n \"Zone\": \"ap-guangzhou-6\",\n \"ZoneName\": \"Guangzhou Zone 6\"\n }\n ],\n \"RequestId\": \"2087557d-d804-4509-8fc9-74a38f74c692\"\n }\n}",
352
352
  "title": "Querying the Chinese name of an availability zone"
353
353
  },
354
354
  {
355
355
  "document": "This example shows you how to query the availability zones in the Guangzhou region. Its English name will be returned by default if the parameter `Language` is not passed in.",
356
- "input": "https://cvm.tencentcloudapi.com/?Action=DescribeZones\n&<Common request parameters>",
357
- "output": "{\n \"Response\": {\n \"TotalCount\": 5,\n \"ZoneSet\": [\n {\n \"ZoneState\": \"UNAVAILABLE\",\n \"ZoneId\": \"100001\",\n \"Zone\": \"ap-guangzhou-1\",\n \"ZoneName\": \"Guangzhou Zone 1\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100002\",\n \"Zone\": \"ap-guangzhou-2\",\n \"ZoneName\": \"Guangzhou Zone 2\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100003\",\n \"Zone\": \"ap-guangzhou-3\",\n \"ZoneName\": \"Guangzhou Zone 3\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100004\",\n \"Zone\": \"ap-guangzhou-4\",\n \"ZoneName\": \"Guangzhou Zone 4\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100005\",\n \"Zone\": \"ap-guangzhou-5\",\n \"ZoneName\": \"Guangzhou Zone 5\"\n }\n ],\n \"RequestId\": \"62DDFFC6-FDB5-44F7-20A6-59152E3D129A\"\n }\n}",
356
+ "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZones\n&<Common request parameters>\n\n{}",
357
+ "output": "{\n \"Response\": {\n \"TotalCount\": 3,\n \"ZoneSet\": [\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100003\",\n \"Zone\": \"ap-guangzhou-3\",\n \"ZoneName\": \"Guangzhou Zone 3\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100004\",\n \"Zone\": \"ap-guangzhou-4\",\n \"ZoneName\": \"Guangzhou Zone 4\"\n },\n {\n \"ZoneState\": \"AVAILABLE\",\n \"ZoneId\": \"100006\",\n \"Zone\": \"ap-guangzhou-6\",\n \"ZoneName\": \"Guangzhou Zone 6\"\n }\n ],\n \"RequestId\": \"2087557d-d804-4509-8fc9-74a38f74c692\"\n }\n}",
358
358
  "title": "Querying the English name of an availability zone"
359
359
  }
360
360
  ],
@@ -237,7 +237,7 @@ def doDescribeAllScenes(args, parsed_globals):
237
237
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
238
238
 
239
239
 
240
- def doDescribeDiskDiscount(args, parsed_globals):
240
+ def doCancelShareBlueprintAcrossAccounts(args, parsed_globals):
241
241
  g_param = parse_global_arg(parsed_globals)
242
242
 
243
243
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -269,11 +269,11 @@ def doDescribeDiskDiscount(args, parsed_globals):
269
269
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
270
270
  client._sdkVersion += ("_CLI_" + __version__)
271
271
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
272
- model = models.DescribeDiskDiscountRequest()
272
+ model = models.CancelShareBlueprintAcrossAccountsRequest()
273
273
  model.from_json_string(json.dumps(args))
274
274
  start_time = time.time()
275
275
  while True:
276
- rsp = client.DescribeDiskDiscount(model)
276
+ rsp = client.CancelShareBlueprintAcrossAccounts(model)
277
277
  result = rsp.to_json_string()
278
278
  try:
279
279
  json_obj = json.loads(result)
@@ -1667,6 +1667,61 @@ def doDescribeDisksDeniedActions(args, parsed_globals):
1667
1667
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1668
1668
 
1669
1669
 
1670
+ def doRenewInstances(args, parsed_globals):
1671
+ g_param = parse_global_arg(parsed_globals)
1672
+
1673
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1674
+ cred = credential.CVMRoleCredential()
1675
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1676
+ cred = credential.STSAssumeRoleCredential(
1677
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1678
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1679
+ )
1680
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1681
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1682
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1683
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1684
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1685
+ else:
1686
+ cred = credential.Credential(
1687
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1688
+ )
1689
+ http_profile = HttpProfile(
1690
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1691
+ reqMethod="POST",
1692
+ endpoint=g_param[OptionsDefine.Endpoint],
1693
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1694
+ )
1695
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1696
+ if g_param[OptionsDefine.Language]:
1697
+ profile.language = g_param[OptionsDefine.Language]
1698
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1699
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
1700
+ client._sdkVersion += ("_CLI_" + __version__)
1701
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1702
+ model = models.RenewInstancesRequest()
1703
+ model.from_json_string(json.dumps(args))
1704
+ start_time = time.time()
1705
+ while True:
1706
+ rsp = client.RenewInstances(model)
1707
+ result = rsp.to_json_string()
1708
+ try:
1709
+ json_obj = json.loads(result)
1710
+ except TypeError as e:
1711
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1712
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1713
+ break
1714
+ cur_time = time.time()
1715
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1716
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1717
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1718
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1719
+ else:
1720
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1721
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1722
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1723
+
1724
+
1670
1725
  def doDescribeModifyInstanceBundles(args, parsed_globals):
1671
1726
  g_param = parse_global_arg(parsed_globals)
1672
1727
 
@@ -2877,7 +2932,7 @@ def doTerminateInstances(args, parsed_globals):
2877
2932
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
2933
 
2879
2934
 
2880
- def doRenewInstances(args, parsed_globals):
2935
+ def doSyncBlueprint(args, parsed_globals):
2881
2936
  g_param = parse_global_arg(parsed_globals)
2882
2937
 
2883
2938
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2909,11 +2964,11 @@ def doRenewInstances(args, parsed_globals):
2909
2964
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
2910
2965
  client._sdkVersion += ("_CLI_" + __version__)
2911
2966
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2912
- model = models.RenewInstancesRequest()
2967
+ model = models.SyncBlueprintRequest()
2913
2968
  model.from_json_string(json.dumps(args))
2914
2969
  start_time = time.time()
2915
2970
  while True:
2916
- rsp = client.RenewInstances(model)
2971
+ rsp = client.SyncBlueprint(model)
2917
2972
  result = rsp.to_json_string()
2918
2973
  try:
2919
2974
  json_obj = json.loads(result)
@@ -3647,7 +3702,7 @@ def doModifyFirewallRuleDescription(args, parsed_globals):
3647
3702
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3648
3703
 
3649
3704
 
3650
- def doResetAttachCcn(args, parsed_globals):
3705
+ def doDescribeDiskDiscount(args, parsed_globals):
3651
3706
  g_param = parse_global_arg(parsed_globals)
3652
3707
 
3653
3708
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3679,11 +3734,11 @@ def doResetAttachCcn(args, parsed_globals):
3679
3734
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
3680
3735
  client._sdkVersion += ("_CLI_" + __version__)
3681
3736
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3682
- model = models.ResetAttachCcnRequest()
3737
+ model = models.DescribeDiskDiscountRequest()
3683
3738
  model.from_json_string(json.dumps(args))
3684
3739
  start_time = time.time()
3685
3740
  while True:
3686
- rsp = client.ResetAttachCcn(model)
3741
+ rsp = client.DescribeDiskDiscount(model)
3687
3742
  result = rsp.to_json_string()
3688
3743
  try:
3689
3744
  json_obj = json.loads(result)
@@ -3812,6 +3867,61 @@ def doCreateInstances(args, parsed_globals):
3812
3867
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3813
3868
 
3814
3869
 
3870
+ def doModifyImageSharePermission(args, parsed_globals):
3871
+ g_param = parse_global_arg(parsed_globals)
3872
+
3873
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3874
+ cred = credential.CVMRoleCredential()
3875
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3876
+ cred = credential.STSAssumeRoleCredential(
3877
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3878
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3879
+ )
3880
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3881
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3882
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3883
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3884
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3885
+ else:
3886
+ cred = credential.Credential(
3887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3888
+ )
3889
+ http_profile = HttpProfile(
3890
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3891
+ reqMethod="POST",
3892
+ endpoint=g_param[OptionsDefine.Endpoint],
3893
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3894
+ )
3895
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3896
+ if g_param[OptionsDefine.Language]:
3897
+ profile.language = g_param[OptionsDefine.Language]
3898
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3899
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
3900
+ client._sdkVersion += ("_CLI_" + __version__)
3901
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3902
+ model = models.ModifyImageSharePermissionRequest()
3903
+ model.from_json_string(json.dumps(args))
3904
+ start_time = time.time()
3905
+ while True:
3906
+ rsp = client.ModifyImageSharePermission(model)
3907
+ result = rsp.to_json_string()
3908
+ try:
3909
+ json_obj = json.loads(result)
3910
+ except TypeError as e:
3911
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3912
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3913
+ break
3914
+ cur_time = time.time()
3915
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3916
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3917
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3918
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3919
+ else:
3920
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3921
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3922
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3923
+
3924
+
3815
3925
  def doRenewDisks(args, parsed_globals):
3816
3926
  g_param = parse_global_arg(parsed_globals)
3817
3927
 
@@ -3867,6 +3977,61 @@ def doRenewDisks(args, parsed_globals):
3867
3977
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3868
3978
 
3869
3979
 
3980
+ def doDescribeSnapshotsDeniedActions(args, parsed_globals):
3981
+ g_param = parse_global_arg(parsed_globals)
3982
+
3983
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3984
+ cred = credential.CVMRoleCredential()
3985
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3986
+ cred = credential.STSAssumeRoleCredential(
3987
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3988
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3989
+ )
3990
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3991
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3992
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3993
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3994
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3995
+ else:
3996
+ cred = credential.Credential(
3997
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3998
+ )
3999
+ http_profile = HttpProfile(
4000
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4001
+ reqMethod="POST",
4002
+ endpoint=g_param[OptionsDefine.Endpoint],
4003
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4004
+ )
4005
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4006
+ if g_param[OptionsDefine.Language]:
4007
+ profile.language = g_param[OptionsDefine.Language]
4008
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4009
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
4010
+ client._sdkVersion += ("_CLI_" + __version__)
4011
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4012
+ model = models.DescribeSnapshotsDeniedActionsRequest()
4013
+ model.from_json_string(json.dumps(args))
4014
+ start_time = time.time()
4015
+ while True:
4016
+ rsp = client.DescribeSnapshotsDeniedActions(model)
4017
+ result = rsp.to_json_string()
4018
+ try:
4019
+ json_obj = json.loads(result)
4020
+ except TypeError as e:
4021
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4022
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4023
+ break
4024
+ cur_time = time.time()
4025
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4026
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4027
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4028
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4029
+ else:
4030
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4031
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4032
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4033
+
4034
+
3870
4035
  def doCreateBlueprint(args, parsed_globals):
3871
4036
  g_param = parse_global_arg(parsed_globals)
3872
4037
 
@@ -3922,7 +4087,7 @@ def doCreateBlueprint(args, parsed_globals):
3922
4087
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3923
4088
 
3924
4089
 
3925
- def doDescribeSnapshotsDeniedActions(args, parsed_globals):
4090
+ def doResetAttachCcn(args, parsed_globals):
3926
4091
  g_param = parse_global_arg(parsed_globals)
3927
4092
 
3928
4093
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3954,11 +4119,11 @@ def doDescribeSnapshotsDeniedActions(args, parsed_globals):
3954
4119
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
3955
4120
  client._sdkVersion += ("_CLI_" + __version__)
3956
4121
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3957
- model = models.DescribeSnapshotsDeniedActionsRequest()
4122
+ model = models.ResetAttachCcnRequest()
3958
4123
  model.from_json_string(json.dumps(args))
3959
4124
  start_time = time.time()
3960
4125
  while True:
3961
- rsp = client.DescribeSnapshotsDeniedActions(model)
4126
+ rsp = client.ResetAttachCcn(model)
3962
4127
  result = rsp.to_json_string()
3963
4128
  try:
3964
4129
  json_obj = json.loads(result)
@@ -4102,7 +4267,7 @@ ACTION_MAP = {
4102
4267
  "DeleteBlueprints": doDeleteBlueprints,
4103
4268
  "CreateDisks": doCreateDisks,
4104
4269
  "DescribeAllScenes": doDescribeAllScenes,
4105
- "DescribeDiskDiscount": doDescribeDiskDiscount,
4270
+ "CancelShareBlueprintAcrossAccounts": doCancelShareBlueprintAcrossAccounts,
4106
4271
  "CreateFirewallRules": doCreateFirewallRules,
4107
4272
  "DescribeInstancesReturnable": doDescribeInstancesReturnable,
4108
4273
  "ModifyInstancesAttribute": doModifyInstancesAttribute,
@@ -4128,6 +4293,7 @@ ACTION_MAP = {
4128
4293
  "ResetInstancesPassword": doResetInstancesPassword,
4129
4294
  "ModifyInstancesRenewFlag": doModifyInstancesRenewFlag,
4130
4295
  "DescribeDisksDeniedActions": doDescribeDisksDeniedActions,
4296
+ "RenewInstances": doRenewInstances,
4131
4297
  "DescribeModifyInstanceBundles": doDescribeModifyInstanceBundles,
4132
4298
  "DescribeDisks": doDescribeDisks,
4133
4299
  "DescribeGeneralResourceQuotas": doDescribeGeneralResourceQuotas,
@@ -4150,7 +4316,7 @@ ACTION_MAP = {
4150
4316
  "DescribeSnapshots": doDescribeSnapshots,
4151
4317
  "ModifyFirewallRules": doModifyFirewallRules,
4152
4318
  "TerminateInstances": doTerminateInstances,
4153
- "RenewInstances": doRenewInstances,
4319
+ "SyncBlueprint": doSyncBlueprint,
4154
4320
  "TerminateDisks": doTerminateDisks,
4155
4321
  "DescribeInstanceVncUrl": doDescribeInstanceVncUrl,
4156
4322
  "ModifySnapshotAttribute": doModifySnapshotAttribute,
@@ -4164,12 +4330,14 @@ ACTION_MAP = {
4164
4330
  "IsolateInstances": doIsolateInstances,
4165
4331
  "DescribeDiskConfigs": doDescribeDiskConfigs,
4166
4332
  "ModifyFirewallRuleDescription": doModifyFirewallRuleDescription,
4167
- "ResetAttachCcn": doResetAttachCcn,
4333
+ "DescribeDiskDiscount": doDescribeDiskDiscount,
4168
4334
  "RebootInstances": doRebootInstances,
4169
4335
  "CreateInstances": doCreateInstances,
4336
+ "ModifyImageSharePermission": doModifyImageSharePermission,
4170
4337
  "RenewDisks": doRenewDisks,
4171
- "CreateBlueprint": doCreateBlueprint,
4172
4338
  "DescribeSnapshotsDeniedActions": doDescribeSnapshotsDeniedActions,
4339
+ "CreateBlueprint": doCreateBlueprint,
4340
+ "ResetAttachCcn": doResetAttachCcn,
4173
4341
  "CreateInstanceSnapshot": doCreateInstanceSnapshot,
4174
4342
  "ModifyInstancesBundle": doModifyInstancesBundle,
4175
4343
 
@@ -28,6 +28,13 @@
28
28
  "output": "AttachDisksResponse",
29
29
  "status": "online"
30
30
  },
31
+ "CancelShareBlueprintAcrossAccounts": {
32
+ "document": "This API is used to cancel image sharing across accounts.\nAn image to be canceled sharing must be a custom image that is originally shared from another account to your account.",
33
+ "input": "CancelShareBlueprintAcrossAccountsRequest",
34
+ "name": "Cancels image sharing across accounts",
35
+ "output": "CancelShareBlueprintAcrossAccountsResponse",
36
+ "status": "online"
37
+ },
31
38
  "CreateBlueprint": {
32
39
  "document": "This API is used to create an image.",
33
40
  "input": "CreateBlueprintRequest",
@@ -413,6 +420,13 @@
413
420
  "output": "ModifyFirewallRulesResponse",
414
421
  "status": "online"
415
422
  },
423
+ "ModifyImageSharePermission": {
424
+ "document": "This API is used to share and cancel sharing of CVM custom images to the Lighthouse service.\nSharing CVM images to Lighthouse requires the following conditions to be met:\n1. Images that have been shared cannot be shared again.\n2. Images imported from external sources are not supported for sharing.\n3. Full-instance images are not supported for sharing.\n4. Images need to support CloudInit to be eligible for sharing.\n5. The Platform and OsName of the images must meet the sharing conditions before the images are eligible for sharing.\n6. Only images in the NORMAL status are supported for sharing.",
425
+ "input": "ModifyImageSharePermissionRequest",
426
+ "name": "Modifies CVM image sharing information",
427
+ "output": "ModifyImageSharePermissionResponse",
428
+ "status": "online"
429
+ },
416
430
  "ModifyInstancesAttribute": {
417
431
  "document": "This API is used to modify an instance attribute. \n* The instance name is used only for users’ convenience. \n* Batch operations are supported. The maximum number of instances in each request is 100.",
418
432
  "input": "ModifyInstancesAttributeRequest",
@@ -504,6 +518,13 @@
504
518
  "output": "StopInstancesResponse",
505
519
  "status": "online"
506
520
  },
521
+ "SyncBlueprint": {
522
+ "document": "This API is used to synchronize a custom image to other regions.\n\n* Synchronization to multiple regions is supported. Up to 10 regions are supported.\n* Synchronization to the source region is not supported.\n* Only images in the NORMAL status are supported for synchronization.\n* Synchronization between Chinese mainland regions and regions outside the Chinese mainland is not supported.\n * You can use the [DescribeBlueprints](https://www.tencentcloud.comom/document/api/1207/47689?from_cn_redirect=1) API to query the image status. When the status is NORMAL, it indicates that the source region synchronization ends.",
523
+ "input": "SyncBlueprintRequest",
524
+ "name": "Synchronizes an image",
525
+ "output": "SyncBlueprintResponse",
526
+ "status": "online"
527
+ },
507
528
  "TerminateDisks": {
508
529
  "document": "This API is used to terminate one or more cloud disk.",
509
530
  "input": "TerminateDisksRequest",
@@ -1185,6 +1206,42 @@
1185
1206
  ],
1186
1207
  "usage": "out"
1187
1208
  },
1209
+ "CancelShareBlueprintAcrossAccountsRequest": {
1210
+ "document": "CancelShareBlueprintAcrossAccounts request structure.",
1211
+ "members": [
1212
+ {
1213
+ "disabled": false,
1214
+ "document": "Image ID, which can be obtained through the BlueprintId returned by the [DescribeBlueprints](https://www.tencentcloud.comom/document/product/1207/47689?from_cn_redirect=1) API.",
1215
+ "example": "\"lhbp-6jc6l8yb\"",
1216
+ "member": "string",
1217
+ "name": "BlueprintId",
1218
+ "required": true,
1219
+ "type": "string"
1220
+ },
1221
+ {
1222
+ "disabled": false,
1223
+ "document": "List of [account IDs](https://www.tencentcloud.comom/document/product/213/4944?from_cn_redirect=1#.E8.8E.B7.E5.8F.96.E4.B8.BB.E8.B4.A6.E5.8F.B7.E7.9A.84.E8.B4.A6.E5.8F.B7-id) that receive the shared images. The account ID is different from the QQ number. To query a user account ID, view the account ID column in the account information. The maximum number of accounts is 10.",
1224
+ "example": "[\"700000164995\"]",
1225
+ "member": "string",
1226
+ "name": "AccountIds",
1227
+ "required": true,
1228
+ "type": "list"
1229
+ }
1230
+ ],
1231
+ "type": "object"
1232
+ },
1233
+ "CancelShareBlueprintAcrossAccountsResponse": {
1234
+ "document": "CancelShareBlueprintAcrossAccounts response structure.",
1235
+ "members": [
1236
+ {
1237
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
1238
+ "member": "string",
1239
+ "name": "RequestId",
1240
+ "type": "string"
1241
+ }
1242
+ ],
1243
+ "type": "object"
1244
+ },
1188
1245
  "CcnAttachedInstance": {
1189
1246
  "document": "List of instances associated with the CCN instance.",
1190
1247
  "members": [
@@ -3562,6 +3619,32 @@
3562
3619
  ],
3563
3620
  "type": "object"
3564
3621
  },
3622
+ "DestinationRegionBlueprint": {
3623
+ "document": "Image information of the target region.",
3624
+ "members": [
3625
+ {
3626
+ "disabled": false,
3627
+ "document": "Target region.",
3628
+ "example": "ap-guangzhou",
3629
+ "member": "string",
3630
+ "name": "Region",
3631
+ "output_required": true,
3632
+ "type": "string",
3633
+ "value_allowed_null": false
3634
+ },
3635
+ {
3636
+ "disabled": false,
3637
+ "document": "Target region image ID.",
3638
+ "example": "lhbp-lf3gjs2f",
3639
+ "member": "string",
3640
+ "name": "BlueprintId",
3641
+ "output_required": true,
3642
+ "type": "string",
3643
+ "value_allowed_null": false
3644
+ }
3645
+ ],
3646
+ "usage": "out"
3647
+ },
3565
3648
  "DetachCcnRequest": {
3566
3649
  "document": "DetachCcn request structure.",
3567
3650
  "members": [
@@ -5844,6 +5927,52 @@
5844
5927
  ],
5845
5928
  "type": "object"
5846
5929
  },
5930
+ "ModifyImageSharePermissionRequest": {
5931
+ "document": "ModifyImageSharePermission request structure.",
5932
+ "members": [
5933
+ {
5934
+ "disabled": false,
5935
+ "document": "Image ID, which can be obtained through the ImageId in the returned value of the [DescribeImages](https://www.tencentcloud.comom/document/api/213/15715?from_cn_redirect=1) API.",
5936
+ "example": "img-dw8adx",
5937
+ "member": "string",
5938
+ "name": "ImageId",
5939
+ "required": true,
5940
+ "type": "string"
5941
+ },
5942
+ {
5943
+ "disabled": false,
5944
+ "document": "Sharing property, including SHARE and CANCEL. Among them, SHARE indicates sharing, and CANCEL indicates canceling sharing.",
5945
+ "example": "SHARE",
5946
+ "member": "string",
5947
+ "name": "Permission",
5948
+ "required": true,
5949
+ "type": "string"
5950
+ }
5951
+ ],
5952
+ "type": "object"
5953
+ },
5954
+ "ModifyImageSharePermissionResponse": {
5955
+ "document": "ModifyImageSharePermission response structure.",
5956
+ "members": [
5957
+ {
5958
+ "disabled": false,
5959
+ "document": "Image ID after a CVM custom image is shared to Lighthouse.\nNote: This field may return null, indicating that no valid values can be obtained.",
5960
+ "example": "lhbp-xkeh87da",
5961
+ "member": "string",
5962
+ "name": "BlueprintId",
5963
+ "required": true,
5964
+ "type": "string",
5965
+ "value_allowed_null": true
5966
+ },
5967
+ {
5968
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
5969
+ "member": "string",
5970
+ "name": "RequestId",
5971
+ "type": "string"
5972
+ }
5973
+ ],
5974
+ "type": "object"
5975
+ },
5847
5976
  "ModifyInstancesAttributeRequest": {
5848
5977
  "document": "ModifyInstancesAttribute request structure.",
5849
5978
  "members": [
@@ -6823,6 +6952,52 @@
6823
6952
  ],
6824
6953
  "type": "object"
6825
6954
  },
6955
+ "SyncBlueprintRequest": {
6956
+ "document": "SyncBlueprint request structure.",
6957
+ "members": [
6958
+ {
6959
+ "disabled": false,
6960
+ "document": "Image ID.",
6961
+ "example": "lhbp-sdeji832",
6962
+ "member": "string",
6963
+ "name": "BlueprintId",
6964
+ "required": true,
6965
+ "type": "string"
6966
+ },
6967
+ {
6968
+ "disabled": false,
6969
+ "document": "List of target regions for image synchronization.",
6970
+ "example": "[\"ap-beijing\",\"ap-shanghai\"]",
6971
+ "member": "string",
6972
+ "name": "DestinationRegions",
6973
+ "required": true,
6974
+ "type": "list"
6975
+ }
6976
+ ],
6977
+ "type": "object"
6978
+ },
6979
+ "SyncBlueprintResponse": {
6980
+ "document": "SyncBlueprint response structure.",
6981
+ "members": [
6982
+ {
6983
+ "disabled": false,
6984
+ "document": "Image information of the target region.",
6985
+ "example": "无",
6986
+ "member": "DestinationRegionBlueprint",
6987
+ "name": "DestinationRegionBlueprintSet",
6988
+ "output_required": true,
6989
+ "type": "list",
6990
+ "value_allowed_null": false
6991
+ },
6992
+ {
6993
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
6994
+ "member": "string",
6995
+ "name": "RequestId",
6996
+ "type": "string"
6997
+ }
6998
+ ],
6999
+ "type": "object"
7000
+ },
6826
7001
  "SystemDisk": {
6827
7002
  "document": "Information on the block device where the operating system is installed, namely the system disk.",
6828
7003
  "members": [
@@ -32,6 +32,14 @@
32
32
  "title": "Attaching a cloud disk "
33
33
  }
34
34
  ],
35
+ "CancelShareBlueprintAcrossAccounts": [
36
+ {
37
+ "document": "",
38
+ "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CancelShareBlueprintAcrossAccounts\n<Common request parameters>\n\n{\n \"BlueprintId\": \"lhbp-6jc6l8yb\",\n \"AccountIds\": [\n \"700000164995\"\n ]\n}",
39
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d339efa9-f637-4ba9-a7c6-fb89ce67d76f\"\n }\n}",
40
+ "title": "Canceling Image Sharing Across Accounts"
41
+ }
42
+ ],
35
43
  "CreateBlueprint": [
36
44
  {
37
45
  "document": "This example shows you how to create an image.",
@@ -478,6 +486,20 @@
478
486
  "title": "Modifying firewall rules"
479
487
  }
480
488
  ],
489
+ "ModifyImageSharePermission": [
490
+ {
491
+ "document": "This example shows you how to share a CVM image to Lighthouse.",
492
+ "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyImageSharePermission\n<Common request parameters>\n\n{\n \"ImageId\": \"img-xkd784jw\",\n \"Permission\": \"SHARE\"\n}",
493
+ "output": "{\n \"Response\": {\n \"BlueprintId\": \"lhbp-su83x02a\",\n \"RequestId\": \"4fe640d6-4912-4b43-9b3a-cc3bbab4cef2\"\n }\n}",
494
+ "title": "Sharing a CVM Image to Lighthouse"
495
+ },
496
+ {
497
+ "document": "This example shows you how to cancel the sharing of a CVM image to Lighthouse.",
498
+ "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyImageSharePermission\n<Common request parameters>\n\n{\n \"ImageId\": \"img-xkd784jw\",\n \"Permission\": \"CANEL\"\n}",
499
+ "output": "{\n \"Response\": {\n \"BlueprintId\": null,\n \"RequestId\": \"4fe640d6-4912-4b43-9b3a-cc3bbab4cef2\"\n }\n}",
500
+ "title": "Canceling the Sharing of a CVM Image to Lighthouse"
501
+ }
502
+ ],
481
503
  "ModifyInstancesAttribute": [
482
504
  {
483
505
  "document": "This example shows you how to rename two instances.",
@@ -582,6 +604,14 @@
582
604
  "title": "Shutting down instances"
583
605
  }
584
606
  ],
607
+ "SyncBlueprint": [
608
+ {
609
+ "document": "This example shows you how to synchronize a custom image to two regions.",
610
+ "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncBlueprint\n<Common request parameters>\n\n{\n \"BlueprintId\": \"lhbp-ls883feh\",\n \"DestinationRegions\": [\n \"ap-singapore\",\n \"ap-hongkong\"\n ]\n}",
611
+ "output": "{\n \"Response\": {\n \"DestinationRegionBlueprintSet\": [\n {\n \"Region\": \"ap-singapore\",\n \"BlueprintId\": \"lhbp-lf3gjs2f\"\n },\n {\n \"Region\": \"ap-hongkong\",\n \"BlueprintId\": \"lhbp-lfle246l\"\n }\n ],\n \"RequestId\": \"e35a5b7b-4dfa-49f8-8729-ba5c504807e0\"\n }\n}",
612
+ "title": "Cross-Region Synchronization of Custom Images"
613
+ }
614
+ ],
585
615
  "TerminateDisks": [
586
616
  {
587
617
  "document": "This example shows you how to terminates cloud disks.",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli-intl-en
3
- Version: 3.1.16.1
3
+ Version: 3.1.17.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-cli-intl-en.git
6
6
  Author: Tencent Cloud
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.4
21
21
  Classifier: Programming Language :: Python :: 3.5
22
22
  Classifier: Programming Language :: Python :: 3.6
23
23
  License-File: LICENSE
24
- Requires-Dist: tencentcloud-sdk-python-intl-en >=3.1.16
24
+ Requires-Dist: tencentcloud-sdk-python-intl-en >=3.1.17
25
25
  Requires-Dist: jmespath ==0.10.0
26
26
  Requires-Dist: six ==1.16.0
27
27
 
@@ -1,4 +1,4 @@
1
- tccli/__init__.py,sha256=OLWnS1JR7sgLgRCMOoPHqc8iCYZ7nBtSWnrRQj0YihQ,26
1
+ tccli/__init__.py,sha256=LwpUtAa2iq2ubecO8AxSuMDayqavPY8NNeTa8udnzKk,26
2
2
  tccli/argparser.py,sha256=WtfpBhj2R6JHSzagy6w6Q4y3YVmyIC_yK80w3tqBPgU,5589
3
3
  tccli/argument.py,sha256=_ictuLaeci9t9bvWGZ1QcpMLMztqKkpVH7UyiUwOc-g,8092
4
4
  tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
@@ -202,8 +202,8 @@ tccli/services/ctsdb/v20230202/api.json,sha256=OdVCQn1d5ROlJirmxcGLM2TkLzDH2cunz
202
202
  tccli/services/ctsdb/v20230202/examples.json,sha256=GB60VeEhL_lUbM6kjgL-9fqXGd7dc1C7TUCK6KRrrV4,3720
203
203
  tccli/services/cvm/__init__.py,sha256=TlF7VMjJTb_ELng-8ghL1Zvrmu7MJyuNBU5KLiWrFnw,85
204
204
  tccli/services/cvm/cvm_client.py,sha256=AaUfG_inZazAAiUDO9vOknDYWe9F7h8_jaRb9lRoUEQ,268363
205
- tccli/services/cvm/v20170312/api.json,sha256=KkG35l-pKPlbx42wZkqiOf5NTIRmdaPyZYCtOY55LUk,489082
206
- tccli/services/cvm/v20170312/examples.json,sha256=oQ7bqMJ02pd-W24LWuqgROjr52R5IHsHdK7U9SnzBw8,123705
205
+ tccli/services/cvm/v20170312/api.json,sha256=zq8bEtWjgP_Qefg67VwliGOdc4bei4Zr0dvC7cO5EQY,488939
206
+ tccli/services/cvm/v20170312/examples.json,sha256=8xqK-RIA6xX3GTQ0r7Keza8XJydnKopeYCREQDEYUOI,122888
207
207
  tccli/services/cwp/__init__.py,sha256=VzfiK7QzpNmTiO4zrmILRFSkKMJka8elLwzYLTjUPFw,85
208
208
  tccli/services/cwp/cwp_client.py,sha256=F33EOyd7GPA13BsS3Sghk8txWpGgXi9815SX4rDJaDs,1457621
209
209
  tccli/services/cwp/v20180228/api.json,sha256=dl5bSD0_GMwxmOIItlWCGJLcHilwgdV9x096K8Do1Oc,2098126
@@ -345,9 +345,9 @@ tccli/services/lcic/lcic_client.py,sha256=wSJGyyqjmGEM3YK7-Td_FQbSXPnYqdZLybGaKL
345
345
  tccli/services/lcic/v20220817/api.json,sha256=by2AqUHHEoHfqBwSjovoHvSy3GHXogDLQTh8YFPK9aE,206324
346
346
  tccli/services/lcic/v20220817/examples.json,sha256=qaLWkEiuuCIb4ayXg74PgMWtZ6-8g399ig2l1q3JEh0,42203
347
347
  tccli/services/lighthouse/__init__.py,sha256=mthGX-k-GPfpudeGSVAEXUMitx-xg7Aw2ZcXxrjf_78,99
348
- tccli/services/lighthouse/lighthouse_client.py,sha256=Jj4XOpCZJUEHnxiW5x5ApiWyVlX08e3FdWcrHRLydWE,236720
349
- tccli/services/lighthouse/v20200324/api.json,sha256=qpWmLPoSaPbZgj2STcUB_dX524bDbSgdXkW5jMhigy0,261946
350
- tccli/services/lighthouse/v20200324/examples.json,sha256=dlw4Oj0ywbzpG_1HqYbufdXW3bSpvClS-Ki5lHBMcig,92967
348
+ tccli/services/lighthouse/lighthouse_client.py,sha256=_K5IiX2xQa9sNyI2Uy8cGDU5Eqtkx9I0CYkxYtlmeWQ,246130
349
+ tccli/services/lighthouse/v20200324/api.json,sha256=SLiYaLRxVMBT9sEzFsElsP9KZHcRQBP8A9QiwvmRRKk,269967
350
+ tccli/services/lighthouse/v20200324/examples.json,sha256=zj-NNVw-R0yXEsT2S-DfO9vF55IQgpCofkqXHAPSkkk,95673
351
351
  tccli/services/live/__init__.py,sha256=RcvY72t1P1PSv7r9d9SCa9Iv7qvP8ok30HwiMcPVAs4,87
352
352
  tccli/services/live/live_client.py,sha256=YazbVcHCgyoChuLRrcJ2TQpgMRaFkr-gxvCww3VBexs,381503
353
353
  tccli/services/live/v20180801/api.json,sha256=sOpWYdA5KXf0jqzkrF0vMjO-f9kMquF1j02b5-XKZpo,488531
@@ -608,9 +608,9 @@ tccli/services/yunjing/__init__.py,sha256=8HTKN8_ow1j67tspqAbBMQgeteXAagLvtb9WAf
608
608
  tccli/services/yunjing/yunjing_client.py,sha256=TgW9P5c1WrxNFj8viq_OLbeC5HYRdjHm7qv_hYr-Lqs,227266
609
609
  tccli/services/yunjing/v20180228/api.json,sha256=zYojacZyPgPCi71CLBjuHsQR9mIxcZjCX5JwA9TYr1s,173428
610
610
  tccli/services/yunjing/v20180228/examples.json,sha256=j3GL3TtNTkZpNLlksz0nJNCVDxYGUqfRqOt94Y-P8OE,58723
611
- tccli_intl_en-3.1.16.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
612
- tccli_intl_en-3.1.16.1.dist-info/METADATA,sha256=8q6-iuot4wwyqjwT6M27TNoijrBXXouoKUg-isfK7Go,3063
613
- tccli_intl_en-3.1.16.1.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
614
- tccli_intl_en-3.1.16.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
615
- tccli_intl_en-3.1.16.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
616
- tccli_intl_en-3.1.16.1.dist-info/RECORD,,
611
+ tccli_intl_en-3.1.17.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
612
+ tccli_intl_en-3.1.17.1.dist-info/METADATA,sha256=uBBPn16zTocgA5YXBbxYoJ3JRlDeyGoU1ARuevsKLAc,3063
613
+ tccli_intl_en-3.1.17.1.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
614
+ tccli_intl_en-3.1.17.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
615
+ tccli_intl_en-3.1.17.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
616
+ tccli_intl_en-3.1.17.1.dist-info/RECORD,,