tccli-intl-en 3.1.15.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.
@@ -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.",