tccli-intl-en 3.1.17.1__py2.py3-none-any.whl → 3.1.19.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/cdn/v20180606/api.json +22 -22
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +176 -8
- tccli/services/lighthouse/v20200324/api.json +313 -0
- tccli/services/lighthouse/v20200324/examples.json +24 -0
- tccli/services/lkeap/v20240522/api.json +36 -0
- tccli/services/lkeap/v20240522/examples.json +1 -1
- {tccli_intl_en-3.1.17.1.dist-info → tccli_intl_en-3.1.19.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.1.17.1.dist-info → tccli_intl_en-3.1.19.1.dist-info}/RECORD +14 -14
- {tccli_intl_en-3.1.17.1.dist-info → tccli_intl_en-3.1.19.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.1.17.1.dist-info → tccli_intl_en-3.1.19.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.1.17.1.dist-info → tccli_intl_en-3.1.19.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.1.17.1.dist-info → tccli_intl_en-3.1.19.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.1.
|
|
1
|
+
__version__ = '3.1.19.1'
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"status": "online"
|
|
44
44
|
},
|
|
45
45
|
"DescribeBillingData": {
|
|
46
|
-
"document": "This API is used to query billing data details.",
|
|
46
|
+
"document": "This API is used to query billing data details. \nNotes: \nDue to the impact of the billing and settlement methods, the data returned by the DescribeBillingData has a certain delay. For hourly-billed customers, the expected delay is 3 to 5 hours. For monthly-billed customers, the expected delay is 4 to 28 hours. Before 4:00 AM (UTC+8, excluding 4:00 AM), only data from two days prior can be queried; after 4:00 AM (including 4:00 AM), data from the previous day can be queried. \nIf you have a strong requirement for data timeliness, it is recommended to use the DescribeCdnData.",
|
|
47
47
|
"input": "DescribeBillingDataRequest",
|
|
48
48
|
"name": "Queries billing data",
|
|
49
49
|
"output": "DescribeBillingDataResponse",
|
|
@@ -2917,30 +2917,30 @@
|
|
|
2917
2917
|
{
|
|
2918
2918
|
"disabled": false,
|
|
2919
2919
|
"document": "Queries by the specified metric:\n`flux`: Traffic (in bytes)\n`bandwidth`: Bandwidth (in bps)\n`request`: Number of requests\n`fluxHitRate`: Traffic hit rate (in %)\n`statusCode`: Status code. The aggregate data for 2xx, 3xx, 4xx, and 5xx status codes will be returned (in entries)\n`2XX`: Returns the aggregate list of 2xx status codes and the data for status codes starting with 2 (in entries)\n`3XX`: Returns the aggregate list of 3xx status codes and the data for status codes starting with 3 (in entries)\n`4XX`: Returns the aggregate list of 4xx status codes and the data for status codes starting with 4 (in entries)\n`5XX`: Returns the aggregate list of 5xx status codes and the data for status codes starting with 5 (in entries)\nYou can also specify a status code for querying.",
|
|
2920
|
-
"example": "",
|
|
2920
|
+
"example": "flux",
|
|
2921
2921
|
"member": "string",
|
|
2922
2922
|
"name": "Metric",
|
|
2923
|
-
"
|
|
2923
|
+
"output_required": true,
|
|
2924
2924
|
"type": "string",
|
|
2925
2925
|
"value_allowed_null": false
|
|
2926
2926
|
},
|
|
2927
2927
|
{
|
|
2928
2928
|
"disabled": false,
|
|
2929
2929
|
"document": "Detailed data combination",
|
|
2930
|
-
"example": "",
|
|
2930
|
+
"example": "无",
|
|
2931
2931
|
"member": "TimestampData",
|
|
2932
2932
|
"name": "DetailData",
|
|
2933
|
-
"
|
|
2933
|
+
"output_required": true,
|
|
2934
2934
|
"type": "list",
|
|
2935
2935
|
"value_allowed_null": false
|
|
2936
2936
|
},
|
|
2937
2937
|
{
|
|
2938
2938
|
"disabled": false,
|
|
2939
2939
|
"document": "Aggregate data combination",
|
|
2940
|
-
"example": "",
|
|
2940
|
+
"example": "无",
|
|
2941
2941
|
"member": "SummarizedData",
|
|
2942
2942
|
"name": "SummarizedData",
|
|
2943
|
-
"
|
|
2943
|
+
"output_required": true,
|
|
2944
2944
|
"type": "object",
|
|
2945
2945
|
"value_allowed_null": false
|
|
2946
2946
|
}
|
|
@@ -3522,7 +3522,7 @@
|
|
|
3522
3522
|
"members": [
|
|
3523
3523
|
{
|
|
3524
3524
|
"disabled": false,
|
|
3525
|
-
"document": "Start time of the query, e.g
|
|
3525
|
+
"document": "Start time of the query, e.g. 2018-09-04 10:40:00.\nThe specified start time will be rounded down based on the granularity parameter `Interval`. For example, if you set the start time to 2018-09-04 10:40:00 with 1-hour granularity, the time will be rounded down to 2018-09-04 10:00:00.\nThe period between the start time and end time can be up to 90 days.",
|
|
3526
3526
|
"example": "2018-09-04 10:40:00",
|
|
3527
3527
|
"member": "datetime",
|
|
3528
3528
|
"name": "StartTime",
|
|
@@ -3622,7 +3622,7 @@
|
|
|
3622
3622
|
"example": "5min",
|
|
3623
3623
|
"member": "string",
|
|
3624
3624
|
"name": "Interval",
|
|
3625
|
-
"
|
|
3625
|
+
"output_required": true,
|
|
3626
3626
|
"type": "string",
|
|
3627
3627
|
"value_allowed_null": false
|
|
3628
3628
|
},
|
|
@@ -3632,7 +3632,7 @@
|
|
|
3632
3632
|
"example": "无",
|
|
3633
3633
|
"member": "ResourceBillingData",
|
|
3634
3634
|
"name": "Data",
|
|
3635
|
-
"
|
|
3635
|
+
"output_required": true,
|
|
3636
3636
|
"type": "list",
|
|
3637
3637
|
"value_allowed_null": false
|
|
3638
3638
|
},
|
|
@@ -9925,20 +9925,20 @@
|
|
|
9925
9925
|
{
|
|
9926
9926
|
"disabled": false,
|
|
9927
9927
|
"document": "Resource name, which is classified as follows based on different query filters:\nWhen a domain name is specified: Details of the domain name\n`multiDomains`: Aggregated details of multiple domain names\nA specific project ID: ID of the specifically queried project\n`all`: Details at the account level",
|
|
9928
|
-
"example": "",
|
|
9928
|
+
"example": "qq.com",
|
|
9929
9929
|
"member": "string",
|
|
9930
9930
|
"name": "Resource",
|
|
9931
|
-
"
|
|
9931
|
+
"output_required": true,
|
|
9932
9932
|
"type": "string",
|
|
9933
9933
|
"value_allowed_null": false
|
|
9934
9934
|
},
|
|
9935
9935
|
{
|
|
9936
9936
|
"disabled": false,
|
|
9937
9937
|
"document": "Billing data details",
|
|
9938
|
-
"example": "",
|
|
9938
|
+
"example": "无",
|
|
9939
9939
|
"member": "CdnData",
|
|
9940
9940
|
"name": "BillingData",
|
|
9941
|
-
"
|
|
9941
|
+
"output_required": true,
|
|
9942
9942
|
"type": "list",
|
|
9943
9943
|
"value_allowed_null": false
|
|
9944
9944
|
}
|
|
@@ -11367,20 +11367,20 @@
|
|
|
11367
11367
|
{
|
|
11368
11368
|
"disabled": false,
|
|
11369
11369
|
"document": "Aggregation method, which can be:\n`sum`: Aggregate summation\n`max`: Maximum value. In bandwidth mode, the peak bandwidth is calculated based on the data aggregated in 5 minutes.\n`avg`: Average value",
|
|
11370
|
-
"example": "",
|
|
11370
|
+
"example": "sum",
|
|
11371
11371
|
"member": "string",
|
|
11372
11372
|
"name": "Name",
|
|
11373
|
-
"
|
|
11373
|
+
"output_required": true,
|
|
11374
11374
|
"type": "string",
|
|
11375
11375
|
"value_allowed_null": false
|
|
11376
11376
|
},
|
|
11377
11377
|
{
|
|
11378
11378
|
"disabled": false,
|
|
11379
11379
|
"document": "Aggregated value",
|
|
11380
|
-
"example": "",
|
|
11380
|
+
"example": "1000",
|
|
11381
11381
|
"member": "float",
|
|
11382
11382
|
"name": "Value",
|
|
11383
|
-
"
|
|
11383
|
+
"output_required": true,
|
|
11384
11384
|
"type": "float",
|
|
11385
11385
|
"value_allowed_null": false
|
|
11386
11386
|
}
|
|
@@ -11419,20 +11419,20 @@
|
|
|
11419
11419
|
{
|
|
11420
11420
|
"disabled": false,
|
|
11421
11421
|
"document": "The start point of the sampling period. \nFor example, if the time is set to 13:35:00, and `interval` is `5min`, the data returned is collected between 13:35:00 and 13:39:59",
|
|
11422
|
-
"example": "",
|
|
11422
|
+
"example": "13:35:00",
|
|
11423
11423
|
"member": "datetime",
|
|
11424
11424
|
"name": "Time",
|
|
11425
|
-
"
|
|
11425
|
+
"output_required": true,
|
|
11426
11426
|
"type": "string",
|
|
11427
11427
|
"value_allowed_null": false
|
|
11428
11428
|
},
|
|
11429
11429
|
{
|
|
11430
11430
|
"disabled": false,
|
|
11431
11431
|
"document": "Data value",
|
|
11432
|
-
"example": "",
|
|
11432
|
+
"example": "100.00",
|
|
11433
11433
|
"member": "float",
|
|
11434
11434
|
"name": "Value",
|
|
11435
|
-
"
|
|
11435
|
+
"output_required": true,
|
|
11436
11436
|
"type": "float",
|
|
11437
11437
|
"value_allowed_null": false
|
|
11438
11438
|
}
|
|
@@ -1007,6 +1007,61 @@ def doImportKeyPair(args, parsed_globals):
|
|
|
1007
1007
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1008
1008
|
|
|
1009
1009
|
|
|
1010
|
+
def doDescribeImagesToShare(args, parsed_globals):
|
|
1011
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1012
|
+
|
|
1013
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1014
|
+
cred = credential.CVMRoleCredential()
|
|
1015
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1016
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1017
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1018
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1019
|
+
)
|
|
1020
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1021
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1022
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1023
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1024
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1025
|
+
else:
|
|
1026
|
+
cred = credential.Credential(
|
|
1027
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1028
|
+
)
|
|
1029
|
+
http_profile = HttpProfile(
|
|
1030
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1031
|
+
reqMethod="POST",
|
|
1032
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1033
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1034
|
+
)
|
|
1035
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1036
|
+
if g_param[OptionsDefine.Language]:
|
|
1037
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1038
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1039
|
+
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1040
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1041
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1042
|
+
model = models.DescribeImagesToShareRequest()
|
|
1043
|
+
model.from_json_string(json.dumps(args))
|
|
1044
|
+
start_time = time.time()
|
|
1045
|
+
while True:
|
|
1046
|
+
rsp = client.DescribeImagesToShare(model)
|
|
1047
|
+
result = rsp.to_json_string()
|
|
1048
|
+
try:
|
|
1049
|
+
json_obj = json.loads(result)
|
|
1050
|
+
except TypeError as e:
|
|
1051
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1052
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1053
|
+
break
|
|
1054
|
+
cur_time = time.time()
|
|
1055
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1056
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1057
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1058
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1059
|
+
else:
|
|
1060
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1061
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1062
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1063
|
+
|
|
1064
|
+
|
|
1010
1065
|
def doDescribeInstancesTrafficPackages(args, parsed_globals):
|
|
1011
1066
|
g_param = parse_global_arg(parsed_globals)
|
|
1012
1067
|
|
|
@@ -1392,6 +1447,61 @@ def doDescribeBundleDiscount(args, parsed_globals):
|
|
|
1392
1447
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1393
1448
|
|
|
1394
1449
|
|
|
1450
|
+
def doCreateInstances(args, parsed_globals):
|
|
1451
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1452
|
+
|
|
1453
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1454
|
+
cred = credential.CVMRoleCredential()
|
|
1455
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1456
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1457
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1458
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1459
|
+
)
|
|
1460
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1461
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1462
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1463
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1464
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1465
|
+
else:
|
|
1466
|
+
cred = credential.Credential(
|
|
1467
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1468
|
+
)
|
|
1469
|
+
http_profile = HttpProfile(
|
|
1470
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1471
|
+
reqMethod="POST",
|
|
1472
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1473
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1474
|
+
)
|
|
1475
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1476
|
+
if g_param[OptionsDefine.Language]:
|
|
1477
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1478
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1479
|
+
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1480
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1481
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1482
|
+
model = models.CreateInstancesRequest()
|
|
1483
|
+
model.from_json_string(json.dumps(args))
|
|
1484
|
+
start_time = time.time()
|
|
1485
|
+
while True:
|
|
1486
|
+
rsp = client.CreateInstances(model)
|
|
1487
|
+
result = rsp.to_json_string()
|
|
1488
|
+
try:
|
|
1489
|
+
json_obj = json.loads(result)
|
|
1490
|
+
except TypeError as e:
|
|
1491
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1492
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1493
|
+
break
|
|
1494
|
+
cur_time = time.time()
|
|
1495
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1496
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1497
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1498
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1499
|
+
else:
|
|
1500
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1501
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1502
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1503
|
+
|
|
1504
|
+
|
|
1395
1505
|
def doAttachCcn(args, parsed_globals):
|
|
1396
1506
|
g_param = parse_global_arg(parsed_globals)
|
|
1397
1507
|
|
|
@@ -3812,7 +3922,7 @@ def doRebootInstances(args, parsed_globals):
|
|
|
3812
3922
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3813
3923
|
|
|
3814
3924
|
|
|
3815
|
-
def
|
|
3925
|
+
def doCreateInstanceSnapshot(args, parsed_globals):
|
|
3816
3926
|
g_param = parse_global_arg(parsed_globals)
|
|
3817
3927
|
|
|
3818
3928
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3844,11 +3954,11 @@ def doCreateInstances(args, parsed_globals):
|
|
|
3844
3954
|
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3845
3955
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3846
3956
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3847
|
-
model = models.
|
|
3957
|
+
model = models.CreateInstanceSnapshotRequest()
|
|
3848
3958
|
model.from_json_string(json.dumps(args))
|
|
3849
3959
|
start_time = time.time()
|
|
3850
3960
|
while True:
|
|
3851
|
-
rsp = client.
|
|
3961
|
+
rsp = client.CreateInstanceSnapshot(model)
|
|
3852
3962
|
result = rsp.to_json_string()
|
|
3853
3963
|
try:
|
|
3854
3964
|
json_obj = json.loads(result)
|
|
@@ -4087,6 +4197,61 @@ def doCreateBlueprint(args, parsed_globals):
|
|
|
4087
4197
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4088
4198
|
|
|
4089
4199
|
|
|
4200
|
+
def doShareBlueprintAcrossAccounts(args, parsed_globals):
|
|
4201
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4202
|
+
|
|
4203
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4204
|
+
cred = credential.CVMRoleCredential()
|
|
4205
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4206
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4207
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4208
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4209
|
+
)
|
|
4210
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4211
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4212
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4213
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4214
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4215
|
+
else:
|
|
4216
|
+
cred = credential.Credential(
|
|
4217
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4218
|
+
)
|
|
4219
|
+
http_profile = HttpProfile(
|
|
4220
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4221
|
+
reqMethod="POST",
|
|
4222
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4223
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4224
|
+
)
|
|
4225
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4226
|
+
if g_param[OptionsDefine.Language]:
|
|
4227
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4228
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4229
|
+
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4230
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4231
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4232
|
+
model = models.ShareBlueprintAcrossAccountsRequest()
|
|
4233
|
+
model.from_json_string(json.dumps(args))
|
|
4234
|
+
start_time = time.time()
|
|
4235
|
+
while True:
|
|
4236
|
+
rsp = client.ShareBlueprintAcrossAccounts(model)
|
|
4237
|
+
result = rsp.to_json_string()
|
|
4238
|
+
try:
|
|
4239
|
+
json_obj = json.loads(result)
|
|
4240
|
+
except TypeError as e:
|
|
4241
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4242
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4243
|
+
break
|
|
4244
|
+
cur_time = time.time()
|
|
4245
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4246
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4247
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4248
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4249
|
+
else:
|
|
4250
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4251
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4252
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4253
|
+
|
|
4254
|
+
|
|
4090
4255
|
def doResetAttachCcn(args, parsed_globals):
|
|
4091
4256
|
g_param = parse_global_arg(parsed_globals)
|
|
4092
4257
|
|
|
@@ -4142,7 +4307,7 @@ def doResetAttachCcn(args, parsed_globals):
|
|
|
4142
4307
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4143
4308
|
|
|
4144
4309
|
|
|
4145
|
-
def
|
|
4310
|
+
def doResizeDisks(args, parsed_globals):
|
|
4146
4311
|
g_param = parse_global_arg(parsed_globals)
|
|
4147
4312
|
|
|
4148
4313
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4174,11 +4339,11 @@ def doCreateInstanceSnapshot(args, parsed_globals):
|
|
|
4174
4339
|
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4175
4340
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4176
4341
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4177
|
-
model = models.
|
|
4342
|
+
model = models.ResizeDisksRequest()
|
|
4178
4343
|
model.from_json_string(json.dumps(args))
|
|
4179
4344
|
start_time = time.time()
|
|
4180
4345
|
while True:
|
|
4181
|
-
rsp = client.
|
|
4346
|
+
rsp = client.ResizeDisks(model)
|
|
4182
4347
|
result = rsp.to_json_string()
|
|
4183
4348
|
try:
|
|
4184
4349
|
json_obj = json.loads(result)
|
|
@@ -4281,6 +4446,7 @@ ACTION_MAP = {
|
|
|
4281
4446
|
"DescribeCcnAttachedInstances": doDescribeCcnAttachedInstances,
|
|
4282
4447
|
"DescribeInstances": doDescribeInstances,
|
|
4283
4448
|
"ImportKeyPair": doImportKeyPair,
|
|
4449
|
+
"DescribeImagesToShare": doDescribeImagesToShare,
|
|
4284
4450
|
"DescribeInstancesTrafficPackages": doDescribeInstancesTrafficPackages,
|
|
4285
4451
|
"InquirePriceCreateBlueprint": doInquirePriceCreateBlueprint,
|
|
4286
4452
|
"AttachDisks": doAttachDisks,
|
|
@@ -4288,6 +4454,7 @@ ACTION_MAP = {
|
|
|
4288
4454
|
"DeleteFirewallRules": doDeleteFirewallRules,
|
|
4289
4455
|
"DisassociateInstancesKeyPairs": doDisassociateInstancesKeyPairs,
|
|
4290
4456
|
"DescribeBundleDiscount": doDescribeBundleDiscount,
|
|
4457
|
+
"CreateInstances": doCreateInstances,
|
|
4291
4458
|
"AttachCcn": doAttachCcn,
|
|
4292
4459
|
"DescribeBlueprints": doDescribeBlueprints,
|
|
4293
4460
|
"ResetInstancesPassword": doResetInstancesPassword,
|
|
@@ -4332,13 +4499,14 @@ ACTION_MAP = {
|
|
|
4332
4499
|
"ModifyFirewallRuleDescription": doModifyFirewallRuleDescription,
|
|
4333
4500
|
"DescribeDiskDiscount": doDescribeDiskDiscount,
|
|
4334
4501
|
"RebootInstances": doRebootInstances,
|
|
4335
|
-
"
|
|
4502
|
+
"CreateInstanceSnapshot": doCreateInstanceSnapshot,
|
|
4336
4503
|
"ModifyImageSharePermission": doModifyImageSharePermission,
|
|
4337
4504
|
"RenewDisks": doRenewDisks,
|
|
4338
4505
|
"DescribeSnapshotsDeniedActions": doDescribeSnapshotsDeniedActions,
|
|
4339
4506
|
"CreateBlueprint": doCreateBlueprint,
|
|
4507
|
+
"ShareBlueprintAcrossAccounts": doShareBlueprintAcrossAccounts,
|
|
4340
4508
|
"ResetAttachCcn": doResetAttachCcn,
|
|
4341
|
-
"
|
|
4509
|
+
"ResizeDisks": doResizeDisks,
|
|
4342
4510
|
"ModifyInstancesBundle": doModifyInstancesBundle,
|
|
4343
4511
|
|
|
4344
4512
|
}
|
|
@@ -203,6 +203,13 @@
|
|
|
203
203
|
"output": "DescribeGeneralResourceQuotasResponse",
|
|
204
204
|
"status": "online"
|
|
205
205
|
},
|
|
206
|
+
"DescribeImagesToShare": {
|
|
207
|
+
"document": "This API is used to query the list of Cloud Virtual Machine (CVM) custom images and share the images to Tencent Cloud Lighthouse (Lighthouse).",
|
|
208
|
+
"input": "DescribeImagesToShareRequest",
|
|
209
|
+
"name": "Queries the CVM image list",
|
|
210
|
+
"output": "DescribeImagesToShareResponse",
|
|
211
|
+
"status": "online"
|
|
212
|
+
},
|
|
206
213
|
"DescribeInstanceLoginKeyPairAttribute": {
|
|
207
214
|
"document": "This API is used to query the attributes of the default login key of an instance.",
|
|
208
215
|
"input": "DescribeInstanceLoginKeyPairAttributeRequest",
|
|
@@ -504,6 +511,20 @@
|
|
|
504
511
|
"output": "ResetInstancesPasswordResponse",
|
|
505
512
|
"status": "online"
|
|
506
513
|
},
|
|
514
|
+
"ResizeDisks": {
|
|
515
|
+
"document": "This API is used to scale out a cloud disk. The operation currently only supports cloud disks of the data disk type that are in the ATTACHED or UNATTACHED status.",
|
|
516
|
+
"input": "ResizeDisksRequest",
|
|
517
|
+
"name": "Scales out a cloud disk",
|
|
518
|
+
"output": "ResizeDisksResponse",
|
|
519
|
+
"status": "online"
|
|
520
|
+
},
|
|
521
|
+
"ShareBlueprintAcrossAccounts": {
|
|
522
|
+
"document": "This API is used to share an image across accounts.\nThis API is used to share custom images only, and the status of the shared image must be NORMAL.\nThe account receiving the shared image must be a root account.",
|
|
523
|
+
"input": "ShareBlueprintAcrossAccountsRequest",
|
|
524
|
+
"name": "Shares an image across accounts",
|
|
525
|
+
"output": "ShareBlueprintAcrossAccountsResponse",
|
|
526
|
+
"status": "online"
|
|
527
|
+
},
|
|
507
528
|
"StartInstances": {
|
|
508
529
|
"document": "This API is used to start one or more instances.\n\n* You can only perform this operation on instances whose status is `STOPPED`.\n* The instance status will become `STARTING` when the API is called successfully and will become `RUNNING` when the instance is successfully started.\n* Batch operations are supported. The maximum number of instances in each request is 100.\n* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.",
|
|
509
530
|
"input": "StartInstancesRequest",
|
|
@@ -2768,6 +2789,80 @@
|
|
|
2768
2789
|
],
|
|
2769
2790
|
"type": "object"
|
|
2770
2791
|
},
|
|
2792
|
+
"DescribeImagesToShareRequest": {
|
|
2793
|
+
"document": "DescribeImagesToShare request structure.",
|
|
2794
|
+
"members": [
|
|
2795
|
+
{
|
|
2796
|
+
"disabled": false,
|
|
2797
|
+
"document": "List of CVM image IDs, 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.",
|
|
2798
|
+
"example": "[\"img-xksdu822\"]",
|
|
2799
|
+
"member": "string",
|
|
2800
|
+
"name": "ImageIds",
|
|
2801
|
+
"required": false,
|
|
2802
|
+
"type": "list"
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
"disabled": false,
|
|
2806
|
+
"document": "Offset. The default value is 0. For more information on `Offset`, see the relevant section in API [Introduction](https://www.tencentcloud.comom/document/product/1207/47578?from_cn_redirect=1).",
|
|
2807
|
+
"example": "0",
|
|
2808
|
+
"member": "int64",
|
|
2809
|
+
"name": "Offset",
|
|
2810
|
+
"required": false,
|
|
2811
|
+
"type": "int"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"disabled": false,
|
|
2815
|
+
"document": "Number of returned results. The default value is 20, and the maximum value is 100. For more information on `Limit`, see the relevant section in API [Introduction](https://www.tencentcloud.comom/document/product/1207/47578?from_cn_redirect=1).",
|
|
2816
|
+
"example": "1",
|
|
2817
|
+
"member": "int64",
|
|
2818
|
+
"name": "Limit",
|
|
2819
|
+
"required": false,
|
|
2820
|
+
"type": "int"
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
"disabled": false,
|
|
2824
|
+
"document": "Filter list.\n<li>image-id</li>: filter by [CVM image ID].\nType: string.\nRequired: no.\n<li>image-name</li>: filter by [CVM image name].\nType: string.\nRequired: no.\n\n<li>image-type</li>: filter by [CVM image type].\nType: string.\nRequired: no.\nValid values:\nPRIVATE_IMAGE: private image (image created by the account).\nPUBLIC_IMAGE: public image (Tencent Cloud official image).\nSHARED_IMAGE: shared image (image shared by other accounts to this account).\n\nThe maximum number of Filters per request is 10, and the maximum number of Filter.Values per request is 5.\nImageIds and Filters cannot be specified simultaneously for parameters.",
|
|
2825
|
+
"example": "无",
|
|
2826
|
+
"member": "Filter",
|
|
2827
|
+
"name": "Filters",
|
|
2828
|
+
"required": false,
|
|
2829
|
+
"type": "list"
|
|
2830
|
+
}
|
|
2831
|
+
],
|
|
2832
|
+
"type": "object"
|
|
2833
|
+
},
|
|
2834
|
+
"DescribeImagesToShareResponse": {
|
|
2835
|
+
"document": "DescribeImagesToShare response structure.",
|
|
2836
|
+
"members": [
|
|
2837
|
+
{
|
|
2838
|
+
"disabled": false,
|
|
2839
|
+
"document": "Number of images that meet the conditions.",
|
|
2840
|
+
"example": "1",
|
|
2841
|
+
"member": "int64",
|
|
2842
|
+
"name": "TotalCount",
|
|
2843
|
+
"required": true,
|
|
2844
|
+
"type": "int",
|
|
2845
|
+
"value_allowed_null": false
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
"disabled": false,
|
|
2849
|
+
"document": "List of CVM image detailed information.",
|
|
2850
|
+
"example": "无",
|
|
2851
|
+
"member": "Image",
|
|
2852
|
+
"name": "ImageSet",
|
|
2853
|
+
"required": true,
|
|
2854
|
+
"type": "list",
|
|
2855
|
+
"value_allowed_null": false
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"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.",
|
|
2859
|
+
"member": "string",
|
|
2860
|
+
"name": "RequestId",
|
|
2861
|
+
"type": "string"
|
|
2862
|
+
}
|
|
2863
|
+
],
|
|
2864
|
+
"type": "object"
|
|
2865
|
+
},
|
|
2771
2866
|
"DescribeInstanceLoginKeyPairAttributeRequest": {
|
|
2772
2867
|
"document": "DescribeInstanceLoginKeyPairAttribute request structure.",
|
|
2773
2868
|
"members": [
|
|
@@ -4612,6 +4707,152 @@
|
|
|
4612
4707
|
],
|
|
4613
4708
|
"usage": "out"
|
|
4614
4709
|
},
|
|
4710
|
+
"Image": {
|
|
4711
|
+
"document": "CVM image information.",
|
|
4712
|
+
"members": [
|
|
4713
|
+
{
|
|
4714
|
+
"disabled": false,
|
|
4715
|
+
"document": "CVM Image ID, which is the unique identifier of the image.",
|
|
4716
|
+
"example": "img-cs2rrmp0",
|
|
4717
|
+
"member": "string",
|
|
4718
|
+
"name": "ImageId",
|
|
4719
|
+
"required": true,
|
|
4720
|
+
"type": "string",
|
|
4721
|
+
"value_allowed_null": false
|
|
4722
|
+
},
|
|
4723
|
+
{
|
|
4724
|
+
"disabled": false,
|
|
4725
|
+
"document": "Image name.",
|
|
4726
|
+
"example": "test-image",
|
|
4727
|
+
"member": "string",
|
|
4728
|
+
"name": "ImageName",
|
|
4729
|
+
"required": true,
|
|
4730
|
+
"type": "string",
|
|
4731
|
+
"value_allowed_null": false
|
|
4732
|
+
},
|
|
4733
|
+
{
|
|
4734
|
+
"disabled": false,
|
|
4735
|
+
"document": "Image description.",
|
|
4736
|
+
"example": "test-image",
|
|
4737
|
+
"member": "string",
|
|
4738
|
+
"name": "ImageDescription",
|
|
4739
|
+
"required": true,
|
|
4740
|
+
"type": "string",
|
|
4741
|
+
"value_allowed_null": false
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
"disabled": false,
|
|
4745
|
+
"document": "Image size, in GB.",
|
|
4746
|
+
"example": "50",
|
|
4747
|
+
"member": "int64",
|
|
4748
|
+
"name": "ImageSize",
|
|
4749
|
+
"required": true,
|
|
4750
|
+
"type": "int",
|
|
4751
|
+
"value_allowed_null": false
|
|
4752
|
+
},
|
|
4753
|
+
{
|
|
4754
|
+
"disabled": false,
|
|
4755
|
+
"document": "Image source.\n<li>CREATE_IMAGE: custom image.</li>\n<li>EXTERNAL_IMPORT: externally imported image.</li>",
|
|
4756
|
+
"example": "CREATE_IMAGE",
|
|
4757
|
+
"member": "string",
|
|
4758
|
+
"name": "ImageSource",
|
|
4759
|
+
"required": true,
|
|
4760
|
+
"type": "string",
|
|
4761
|
+
"value_allowed_null": false
|
|
4762
|
+
},
|
|
4763
|
+
{
|
|
4764
|
+
"disabled": false,
|
|
4765
|
+
"document": "Image classification.\n<li>SystemImage: system disk image.</li>\n<li>InstanceImage: full-instance image.</li>",
|
|
4766
|
+
"example": "SystemImage",
|
|
4767
|
+
"member": "string",
|
|
4768
|
+
"name": "ImageClass",
|
|
4769
|
+
"required": true,
|
|
4770
|
+
"type": "string",
|
|
4771
|
+
"value_allowed_null": false
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
"disabled": false,
|
|
4775
|
+
"document": "Image status.\nCREATING: creating.\nNORMAL: normal.\nCREATEFAILED: creation failed.\nUSING: in use.\nSYNCING: synchronizing.\nIMPORTING: importing.\nIMPORTFAILED: import failed.",
|
|
4776
|
+
"example": "NORMAL",
|
|
4777
|
+
"member": "string",
|
|
4778
|
+
"name": "ImageState",
|
|
4779
|
+
"required": true,
|
|
4780
|
+
"type": "string",
|
|
4781
|
+
"value_allowed_null": false
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"disabled": false,
|
|
4785
|
+
"document": "Whether the image supports Cloudinit.",
|
|
4786
|
+
"example": "true",
|
|
4787
|
+
"member": "bool",
|
|
4788
|
+
"name": "IsSupportCloudinit",
|
|
4789
|
+
"required": true,
|
|
4790
|
+
"type": "bool",
|
|
4791
|
+
"value_allowed_null": false
|
|
4792
|
+
},
|
|
4793
|
+
{
|
|
4794
|
+
"disabled": false,
|
|
4795
|
+
"document": "Image architecture.",
|
|
4796
|
+
"example": "x86_64",
|
|
4797
|
+
"member": "string",
|
|
4798
|
+
"name": "Architecture",
|
|
4799
|
+
"required": true,
|
|
4800
|
+
"type": "string",
|
|
4801
|
+
"value_allowed_null": false
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
"disabled": false,
|
|
4805
|
+
"document": "Image operating system.",
|
|
4806
|
+
"example": "Ubuntu Server 20.04 LTS 64bit",
|
|
4807
|
+
"member": "string",
|
|
4808
|
+
"name": "OsName",
|
|
4809
|
+
"required": true,
|
|
4810
|
+
"type": "string",
|
|
4811
|
+
"value_allowed_null": false
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
"disabled": false,
|
|
4815
|
+
"document": "Image source platform.",
|
|
4816
|
+
"example": "Ubuntu",
|
|
4817
|
+
"member": "string",
|
|
4818
|
+
"name": "Platform",
|
|
4819
|
+
"required": true,
|
|
4820
|
+
"type": "string",
|
|
4821
|
+
"value_allowed_null": false
|
|
4822
|
+
},
|
|
4823
|
+
{
|
|
4824
|
+
"disabled": false,
|
|
4825
|
+
"document": "Image creation time.",
|
|
4826
|
+
"example": "2021-07-23T08:49:36Z",
|
|
4827
|
+
"member": "datetime_iso",
|
|
4828
|
+
"name": "CreatedTime",
|
|
4829
|
+
"required": true,
|
|
4830
|
+
"type": "string",
|
|
4831
|
+
"value_allowed_null": false
|
|
4832
|
+
},
|
|
4833
|
+
{
|
|
4834
|
+
"disabled": false,
|
|
4835
|
+
"document": "Whether the image can be shared to Lighthouse.",
|
|
4836
|
+
"example": "true",
|
|
4837
|
+
"member": "bool",
|
|
4838
|
+
"name": "IsShareable",
|
|
4839
|
+
"required": true,
|
|
4840
|
+
"type": "bool",
|
|
4841
|
+
"value_allowed_null": false
|
|
4842
|
+
},
|
|
4843
|
+
{
|
|
4844
|
+
"disabled": false,
|
|
4845
|
+
"document": "Reason for not being shared.",
|
|
4846
|
+
"example": "镜像已共享。",
|
|
4847
|
+
"member": "string",
|
|
4848
|
+
"name": "UnshareableReason",
|
|
4849
|
+
"required": true,
|
|
4850
|
+
"type": "string",
|
|
4851
|
+
"value_allowed_null": false
|
|
4852
|
+
}
|
|
4853
|
+
],
|
|
4854
|
+
"usage": "out"
|
|
4855
|
+
},
|
|
4615
4856
|
"ImportKeyPairRequest": {
|
|
4616
4857
|
"document": "ImportKeyPair request structure.",
|
|
4617
4858
|
"members": [
|
|
@@ -6592,6 +6833,42 @@
|
|
|
6592
6833
|
],
|
|
6593
6834
|
"type": "object"
|
|
6594
6835
|
},
|
|
6836
|
+
"ResizeDisksRequest": {
|
|
6837
|
+
"document": "ResizeDisks request structure.",
|
|
6838
|
+
"members": [
|
|
6839
|
+
{
|
|
6840
|
+
"disabled": false,
|
|
6841
|
+
"document": "Cloud disk ID list, which can be queried via the [DescribeDisks](https://www.tencentcloud.comom/document/api/1207/66093?from_cn_redirect=1) API. The maximum length of the list is 15.",
|
|
6842
|
+
"example": "[\"lhdisk-guzg7nsa\"]\t",
|
|
6843
|
+
"member": "string",
|
|
6844
|
+
"name": "DiskIds",
|
|
6845
|
+
"required": true,
|
|
6846
|
+
"type": "list"
|
|
6847
|
+
},
|
|
6848
|
+
{
|
|
6849
|
+
"disabled": false,
|
|
6850
|
+
"document": "Size of the cloud disk after scale-out, in GB. The value range of the Premium Disk size is [10, 4000], and that of the Cloud SSD size is [20, 4000]. The cloud disk size after scale-out must be greater than the current disk size.",
|
|
6851
|
+
"example": "40",
|
|
6852
|
+
"member": "int64",
|
|
6853
|
+
"name": "DiskSize",
|
|
6854
|
+
"required": true,
|
|
6855
|
+
"type": "int"
|
|
6856
|
+
}
|
|
6857
|
+
],
|
|
6858
|
+
"type": "object"
|
|
6859
|
+
},
|
|
6860
|
+
"ResizeDisksResponse": {
|
|
6861
|
+
"document": "ResizeDisks response structure.",
|
|
6862
|
+
"members": [
|
|
6863
|
+
{
|
|
6864
|
+
"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.",
|
|
6865
|
+
"member": "string",
|
|
6866
|
+
"name": "RequestId",
|
|
6867
|
+
"type": "string"
|
|
6868
|
+
}
|
|
6869
|
+
],
|
|
6870
|
+
"type": "object"
|
|
6871
|
+
},
|
|
6595
6872
|
"Scene": {
|
|
6596
6873
|
"document": "Scene information",
|
|
6597
6874
|
"members": [
|
|
@@ -6664,6 +6941,42 @@
|
|
|
6664
6941
|
],
|
|
6665
6942
|
"usage": "out"
|
|
6666
6943
|
},
|
|
6944
|
+
"ShareBlueprintAcrossAccountsRequest": {
|
|
6945
|
+
"document": "ShareBlueprintAcrossAccounts request structure.",
|
|
6946
|
+
"members": [
|
|
6947
|
+
{
|
|
6948
|
+
"disabled": false,
|
|
6949
|
+
"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.",
|
|
6950
|
+
"example": "lhbp-6jc6l8yb",
|
|
6951
|
+
"member": "string",
|
|
6952
|
+
"name": "BlueprintId",
|
|
6953
|
+
"required": true,
|
|
6954
|
+
"type": "string"
|
|
6955
|
+
},
|
|
6956
|
+
{
|
|
6957
|
+
"disabled": false,
|
|
6958
|
+
"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.",
|
|
6959
|
+
"example": "[\"700000164995\"]",
|
|
6960
|
+
"member": "string",
|
|
6961
|
+
"name": "AccountIds",
|
|
6962
|
+
"required": true,
|
|
6963
|
+
"type": "list"
|
|
6964
|
+
}
|
|
6965
|
+
],
|
|
6966
|
+
"type": "object"
|
|
6967
|
+
},
|
|
6968
|
+
"ShareBlueprintAcrossAccountsResponse": {
|
|
6969
|
+
"document": "ShareBlueprintAcrossAccounts response structure.",
|
|
6970
|
+
"members": [
|
|
6971
|
+
{
|
|
6972
|
+
"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.",
|
|
6973
|
+
"member": "string",
|
|
6974
|
+
"name": "RequestId",
|
|
6975
|
+
"type": "string"
|
|
6976
|
+
}
|
|
6977
|
+
],
|
|
6978
|
+
"type": "object"
|
|
6979
|
+
},
|
|
6667
6980
|
"Snapshot": {
|
|
6668
6981
|
"document": "Snapshot information.",
|
|
6669
6982
|
"members": [
|
|
@@ -238,6 +238,14 @@
|
|
|
238
238
|
"title": "Querying the quota information of general resources"
|
|
239
239
|
}
|
|
240
240
|
],
|
|
241
|
+
"DescribeImagesToShare": [
|
|
242
|
+
{
|
|
243
|
+
"document": " ",
|
|
244
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImagesToShare\n<Common request parameters>\n\n{\n \"ImageIds\": [\n \"img-cs2rrmp0\"\n ]\n}",
|
|
245
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ImageSet\": [\n {\n \"ImageId\": \"img-cs2rrmp0\",\n \"ImageName\": \"ubuntu\",\n \"ImageDescription\": \"ubuntu\",\n \"ImageSize\": 50,\n \"ImageSource\": \"CREATE_IMAGE\",\n \"ImageClass\": \"SystemImage\",\n \"ImageState\": \"NORMAL\",\n \"IsSupportCloudinit\": true,\n \"Architecture\": \"x86_64\",\n \"OsName\": \"Ubuntu Server 20.04 LTS 64bit\",\n \"Platform\": \"Ubuntu\",\n \"CreatedTime\": \"2021-07-23T08:49:36Z\",\n \"IsShareable\": true,\n \"UnshareableReason\": \"\"\n }\n ],\n \"RequestId\": \"c5aafa9d-20e4-400e-852c-b800f607dd91\"\n }\n}",
|
|
246
|
+
"title": "Querying the List of CVM Custom Images and Sharing the Images to Lighthouse"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
241
249
|
"DescribeInstanceLoginKeyPairAttribute": [
|
|
242
250
|
{
|
|
243
251
|
"document": " ",
|
|
@@ -588,6 +596,22 @@
|
|
|
588
596
|
"title": "Resetting instance password"
|
|
589
597
|
}
|
|
590
598
|
],
|
|
599
|
+
"ResizeDisks": [
|
|
600
|
+
{
|
|
601
|
+
"document": "",
|
|
602
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResizeDisks\n<Common request parameters>\n\n{\n \"DiskIds\": [\n \"lhdisk-guzg7nsa\"\n ],\n \"DiskSize\": 40\n}",
|
|
603
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"822edbc4-5d4a-4e19-9d61-2a243f04d06e\"\n }\n}",
|
|
604
|
+
"title": "Scaling Out a Cloud Disk"
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
"ShareBlueprintAcrossAccounts": [
|
|
608
|
+
{
|
|
609
|
+
"document": "",
|
|
610
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ShareBlueprintAcrossAccounts\n<Common request parameters>\n\n{\n \"BlueprintId\": \"lhbp-6jc6l8yb\",\n \"AccountIds\": [\n \"700000164995\"\n ]\n}",
|
|
611
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d339efa9-f637-4ba9-a7c6-fb89ce67d76f\"\n }\n}",
|
|
612
|
+
"title": "Sharing an Image Across Accounts"
|
|
613
|
+
}
|
|
614
|
+
],
|
|
591
615
|
"StartInstances": [
|
|
592
616
|
{
|
|
593
617
|
"document": "This example shows you how to start two shutdown instances at once.",
|
|
@@ -709,6 +709,24 @@
|
|
|
709
709
|
"ReconstructDocumentSSERequest": {
|
|
710
710
|
"document": "ReconstructDocumentSSE request structure.",
|
|
711
711
|
"members": [
|
|
712
|
+
{
|
|
713
|
+
"disabled": false,
|
|
714
|
+
"document": "File type.\n**Supported file types**: PDF, DOC, DOCX, PPT, PPTX, MD, TXT, XLS, XLSX, CSV, PNG, JPG, JPEG, BMP, GIF, WEBP, HEIC, EPS, ICNS, IM, PCX, PPM, TIFF, XBM, HEIF, JP2.\n**Supported file sizes**: \n- Max 100 MB for PDF, DOC, DOCX, PPT, and PPTX .\n- Max 10 MB for MD, TXT, XLS, XLSX, and CSV.\n- Max20 MB for others.",
|
|
715
|
+
"example": "PDF",
|
|
716
|
+
"member": "string",
|
|
717
|
+
"name": "FileType",
|
|
718
|
+
"required": true,
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"disabled": false,
|
|
723
|
+
"document": "File URL. It is recommended to store the file in Tencent Cloud as the URL where the file is stored in Tencent Cloud can ensure higher download speed and stability. External URL may affect the speed and stability. Refer to: [Tencent Cloud COS Documentation](https://www.tencentcloud.com/document/product/436/7749)",
|
|
724
|
+
"example": "url",
|
|
725
|
+
"member": "string",
|
|
726
|
+
"name": "FileUrl",
|
|
727
|
+
"required": false,
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
712
730
|
{
|
|
713
731
|
"disabled": false,
|
|
714
732
|
"document": "The base64 value of the file. File size limit: the downloaded file shall not exceed 8MB after base64 encoding. File download time does not exceed 3 seconds. Supported image pixels: the length of a single side is between 20-10000px. Either FileUrl or FileBase64 of the file must be provided. If both are provided, only the FileUrl is used.",
|
|
@@ -718,6 +736,24 @@
|
|
|
718
736
|
"required": false,
|
|
719
737
|
"type": "string"
|
|
720
738
|
},
|
|
739
|
+
{
|
|
740
|
+
"disabled": false,
|
|
741
|
+
"document": "The starting page number of the file. When type of the uploaded file is pdf, doc, docx, ppt, or pptx, it specifies the starting page number for recognition, including the current value.",
|
|
742
|
+
"example": "1",
|
|
743
|
+
"member": "int64",
|
|
744
|
+
"name": "FileStartPageNumber",
|
|
745
|
+
"required": false,
|
|
746
|
+
"type": "int"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"disabled": false,
|
|
750
|
+
"document": "The end page number of the file. When type of the uploaded file is pdf, doc, docx, ppt, or pptx, it specifies the end page number for recognition, including the current value.",
|
|
751
|
+
"example": "100",
|
|
752
|
+
"member": "int64",
|
|
753
|
+
"name": "FileEndPageNumber",
|
|
754
|
+
"required": false,
|
|
755
|
+
"type": "int"
|
|
756
|
+
},
|
|
721
757
|
{
|
|
722
758
|
"disabled": false,
|
|
723
759
|
"document": "Document parsing configuration information.\t",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tccli-intl-en
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.19.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.
|
|
24
|
+
Requires-Dist: tencentcloud-sdk-python-intl-en >=3.1.19
|
|
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=
|
|
1
|
+
tccli/__init__.py,sha256=K6Zqh6qq1bD1doofR3P3_DfcDRNZLwdIoO99i7hERjM,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
|
|
@@ -128,8 +128,8 @@ tccli/services/cdc/v20201214/api.json,sha256=YYJHZNdjRub5nrccv2Xfm5P15NL9b_v4SaP
|
|
|
128
128
|
tccli/services/cdc/v20201214/examples.json,sha256=9miN0HEHXz5Ia9MqF8i5UqSqifO8dYaysTH_PKLcrF8,24530
|
|
129
129
|
tccli/services/cdn/__init__.py,sha256=Agk_ooNm4XDpmFiuEBddbgRoBheED_39r3sMiWylgG0,85
|
|
130
130
|
tccli/services/cdn/cdn_client.py,sha256=UYFoHf4VwKLhEoZopxgzco0VFMzU3O0ALRJ-oSyXjMw,142078
|
|
131
|
-
tccli/services/cdn/v20180606/api.json,sha256=
|
|
132
|
-
tccli/services/cdn/v20180606/examples.json,sha256=
|
|
131
|
+
tccli/services/cdn/v20180606/api.json,sha256=p5cuABca8i8cgHb8Q2EAt6mV7wDndEgIUeXrwhi6mE8,484895
|
|
132
|
+
tccli/services/cdn/v20180606/examples.json,sha256=JjwlHUxNhdahrkwQTnSA477nXCoTvNTiIwZCcYUS2Ls,50668
|
|
133
133
|
tccli/services/cdwdoris/__init__.py,sha256=rIQBmZynEI3sojHPPC3vLhdJ9YAOx5QnDIxvObAi2w4,95
|
|
134
134
|
tccli/services/cdwdoris/cdwdoris_client.py,sha256=TKx6W07tOjmmYYe3OYE2xRt0-w0w6PsedrEy7SZExyU,245937
|
|
135
135
|
tccli/services/cdwdoris/v20211228/api.json,sha256=1EGpWuHGYjEi7nl0TX-rArxgpeiFr8j3DLFg-qQgX4k,375099
|
|
@@ -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=
|
|
349
|
-
tccli/services/lighthouse/v20200324/api.json,sha256=
|
|
350
|
-
tccli/services/lighthouse/v20200324/examples.json,sha256=
|
|
348
|
+
tccli/services/lighthouse/lighthouse_client.py,sha256=gI7QxkvRtR2Od7-50cK_y8uFxwRU0Daem10sL9sye8Q,255475
|
|
349
|
+
tccli/services/lighthouse/v20200324/api.json,sha256=ccXoEJeoNkjeBNX2o4obPiYPCJ_zPVE6ce9GULDvcdc,282359
|
|
350
|
+
tccli/services/lighthouse/v20200324/examples.json,sha256=bHt1a_1gjGJu_hMBjLxH7ZNY2YEEbC7ebS3IJoFcjnM,97984
|
|
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
|
|
@@ -358,8 +358,8 @@ tccli/services/lke/v20231130/api.json,sha256=sFUiSmBmq5UBmPIbsQ7Z8GoUQ8fzH5FUqtM
|
|
|
358
358
|
tccli/services/lke/v20231130/examples.json,sha256=TJ3mpXSzr5kjpKflJC5KepCZ4kJhxnfWw8oNQxm_DLg,96183
|
|
359
359
|
tccli/services/lkeap/__init__.py,sha256=asxLax87Gwt4UF1pQoh5GX51weKCm6t8FPDRq-aKv7w,89
|
|
360
360
|
tccli/services/lkeap/lkeap_client.py,sha256=yDkmHauagKwbHsBSx3e_xc9EqPWtfuVnVf2NCGF3t4M,31000
|
|
361
|
-
tccli/services/lkeap/v20240522/api.json,sha256=
|
|
362
|
-
tccli/services/lkeap/v20240522/examples.json,sha256=
|
|
361
|
+
tccli/services/lkeap/v20240522/api.json,sha256=LCzhQMhZJH3ckL5uXK6vK1qmihaS2lFIYDIgCfPLUag,40003
|
|
362
|
+
tccli/services/lkeap/v20240522/examples.json,sha256=9Auj4_HISYFe2usoYfbbRlXgbhHDyvzYns-0qB6vewg,9239
|
|
363
363
|
tccli/services/mariadb/__init__.py,sha256=4rm-NJdnRdyhbcbl-bGHFG-A5r35oNP2wbr0o0tXySQ,93
|
|
364
364
|
tccli/services/mariadb/mariadb_client.py,sha256=co0SCIqTD78lpXiyff_6tK6MjL7HjZdG5tdNc5ngQcI,161839
|
|
365
365
|
tccli/services/mariadb/v20170312/api.json,sha256=vzlZQtLwkrV_RgRANe0cF9VfbBco_il6xdpW35XT-xA,232231
|
|
@@ -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.
|
|
612
|
-
tccli_intl_en-3.1.
|
|
613
|
-
tccli_intl_en-3.1.
|
|
614
|
-
tccli_intl_en-3.1.
|
|
615
|
-
tccli_intl_en-3.1.
|
|
616
|
-
tccli_intl_en-3.1.
|
|
611
|
+
tccli_intl_en-3.1.19.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
612
|
+
tccli_intl_en-3.1.19.1.dist-info/METADATA,sha256=x-6VdkAQ9b00eRfTEoyGHYl3xsgG40CfWRGCHa7kvbU,3063
|
|
613
|
+
tccli_intl_en-3.1.19.1.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
614
|
+
tccli_intl_en-3.1.19.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
|
|
615
|
+
tccli_intl_en-3.1.19.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
|
|
616
|
+
tccli_intl_en-3.1.19.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|