tccli 3.0.1193.1__py2.py3-none-any.whl → 3.0.1194.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/cdb/v20170320/api.json +45 -0
- tccli/services/cfw/v20190904/api.json +4 -4
- tccli/services/csip/v20221121/api.json +1 -1
- tccli/services/tke/tke_client.py +118 -12
- tccli/services/tke/v20180525/api.json +336 -15
- tccli/services/tke/v20180525/examples.json +16 -0
- tccli/services/vpc/v20170312/api.json +10 -0
- {tccli-3.0.1193.1.dist-info → tccli-3.0.1194.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1193.1.dist-info → tccli-3.0.1194.1.dist-info}/RECORD +13 -13
- {tccli-3.0.1193.1.dist-info → tccli-3.0.1194.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1193.1.dist-info → tccli-3.0.1194.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1193.1.dist-info → tccli-3.0.1194.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1194.1'
|
@@ -4182,6 +4182,15 @@
|
|
4182
4182
|
"name": "InstanceId",
|
4183
4183
|
"required": true,
|
4184
4184
|
"type": "string"
|
4185
|
+
},
|
4186
|
+
{
|
4187
|
+
"disabled": false,
|
4188
|
+
"document": "变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。",
|
4189
|
+
"example": "cdb-xxx|readonly",
|
4190
|
+
"member": "string",
|
4191
|
+
"name": "OpResourceId",
|
4192
|
+
"required": false,
|
4193
|
+
"type": "string"
|
4185
4194
|
}
|
4186
4195
|
],
|
4187
4196
|
"type": "object"
|
@@ -15995,6 +16004,15 @@
|
|
15995
16004
|
"name": "ForReadonlyInstance",
|
15996
16005
|
"required": false,
|
15997
16006
|
"type": "bool"
|
16007
|
+
},
|
16008
|
+
{
|
16009
|
+
"disabled": false,
|
16010
|
+
"document": "变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。",
|
16011
|
+
"example": "cdb-xxx|readonly",
|
16012
|
+
"member": "string",
|
16013
|
+
"name": "OpResourceId",
|
16014
|
+
"required": false,
|
16015
|
+
"type": "string"
|
15998
16016
|
}
|
15999
16017
|
],
|
16000
16018
|
"type": "object"
|
@@ -16067,6 +16085,15 @@
|
|
16067
16085
|
"name": "ReleaseDuration",
|
16068
16086
|
"required": false,
|
16069
16087
|
"type": "int"
|
16088
|
+
},
|
16089
|
+
{
|
16090
|
+
"disabled": false,
|
16091
|
+
"document": "变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。",
|
16092
|
+
"example": "cdb-xxx|readonly",
|
16093
|
+
"member": "string",
|
16094
|
+
"name": "OpResourceId",
|
16095
|
+
"required": false,
|
16096
|
+
"type": "string"
|
16070
16097
|
}
|
16071
16098
|
],
|
16072
16099
|
"type": "object"
|
@@ -16874,6 +16901,15 @@
|
|
16874
16901
|
"name": "InstanceId",
|
16875
16902
|
"required": true,
|
16876
16903
|
"type": "string"
|
16904
|
+
},
|
16905
|
+
{
|
16906
|
+
"disabled": false,
|
16907
|
+
"document": "变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。",
|
16908
|
+
"example": "cdb-xxx|readonly",
|
16909
|
+
"member": "string",
|
16910
|
+
"name": "OpResourceId",
|
16911
|
+
"required": false,
|
16912
|
+
"type": "string"
|
16877
16913
|
}
|
16878
16914
|
],
|
16879
16915
|
"type": "object"
|
@@ -20049,6 +20085,15 @@
|
|
20049
20085
|
"name": "WaitSwitch",
|
20050
20086
|
"required": false,
|
20051
20087
|
"type": "bool"
|
20088
|
+
},
|
20089
|
+
{
|
20090
|
+
"disabled": false,
|
20091
|
+
"document": "集群版实例指定节点id发起主从切换。",
|
20092
|
+
"example": "dbn-xxx",
|
20093
|
+
"member": "string",
|
20094
|
+
"name": "DstNodeId",
|
20095
|
+
"required": false,
|
20096
|
+
"type": "string"
|
20052
20097
|
}
|
20053
20098
|
],
|
20054
20099
|
"type": "object"
|
@@ -8634,7 +8634,7 @@
|
|
8634
8634
|
},
|
8635
8635
|
{
|
8636
8636
|
"disabled": false,
|
8637
|
-
"document": "
|
8637
|
+
"document": "服务模板id\n注意:此字段可能返回 null,表示取不到有效值。",
|
8638
8638
|
"example": "tpm-xxxx",
|
8639
8639
|
"member": "string",
|
8640
8640
|
"name": "ServiceTemplateId",
|
@@ -8684,7 +8684,7 @@
|
|
8684
8684
|
},
|
8685
8685
|
{
|
8686
8686
|
"disabled": false,
|
8687
|
-
"document": "
|
8687
|
+
"document": "源模板名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
8688
8688
|
"example": "test",
|
8689
8689
|
"member": "string",
|
8690
8690
|
"name": "SouParameterName",
|
@@ -8734,7 +8734,7 @@
|
|
8734
8734
|
},
|
8735
8735
|
{
|
8736
8736
|
"disabled": false,
|
8737
|
-
"document": "
|
8737
|
+
"document": "目的模板名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
8738
8738
|
"example": "test",
|
8739
8739
|
"member": "string",
|
8740
8740
|
"name": "ParameterName",
|
@@ -8744,7 +8744,7 @@
|
|
8744
8744
|
},
|
8745
8745
|
{
|
8746
8746
|
"disabled": false,
|
8747
|
-
"document": "
|
8747
|
+
"document": "端口模板名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
8748
8748
|
"example": "test",
|
8749
8749
|
"member": "string",
|
8750
8750
|
"name": "ProtocolPortName",
|
tccli/services/tke/tke_client.py
CHANGED
@@ -7715,7 +7715,7 @@ def doDeletePrometheusRecordRuleYaml(args, parsed_globals):
|
|
7715
7715
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7716
7716
|
|
7717
7717
|
|
7718
|
-
def
|
7718
|
+
def doModifyPrometheusConfig(args, parsed_globals):
|
7719
7719
|
g_param = parse_global_arg(parsed_globals)
|
7720
7720
|
|
7721
7721
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7744,11 +7744,11 @@ def doDescribeBackupStorageLocations(args, parsed_globals):
|
|
7744
7744
|
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
7745
7745
|
client._sdkVersion += ("_CLI_" + __version__)
|
7746
7746
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7747
|
-
model = models.
|
7747
|
+
model = models.ModifyPrometheusConfigRequest()
|
7748
7748
|
model.from_json_string(json.dumps(args))
|
7749
7749
|
start_time = time.time()
|
7750
7750
|
while True:
|
7751
|
-
rsp = client.
|
7751
|
+
rsp = client.ModifyPrometheusConfig(model)
|
7752
7752
|
result = rsp.to_json_string()
|
7753
7753
|
try:
|
7754
7754
|
json_obj = json.loads(result)
|
@@ -8547,7 +8547,7 @@ def doGetMostSuitableImageCache(args, parsed_globals):
|
|
8547
8547
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8548
8548
|
|
8549
8549
|
|
8550
|
-
def
|
8550
|
+
def doDescribeOpenPolicyList(args, parsed_globals):
|
8551
8551
|
g_param = parse_global_arg(parsed_globals)
|
8552
8552
|
|
8553
8553
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8576,11 +8576,11 @@ def doDescribeClusterEndpoints(args, parsed_globals):
|
|
8576
8576
|
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
8577
8577
|
client._sdkVersion += ("_CLI_" + __version__)
|
8578
8578
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8579
|
-
model = models.
|
8579
|
+
model = models.DescribeOpenPolicyListRequest()
|
8580
8580
|
model.from_json_string(json.dumps(args))
|
8581
8581
|
start_time = time.time()
|
8582
8582
|
while True:
|
8583
|
-
rsp = client.
|
8583
|
+
rsp = client.DescribeOpenPolicyList(model)
|
8584
8584
|
result = rsp.to_json_string()
|
8585
8585
|
try:
|
8586
8586
|
json_obj = json.loads(result)
|
@@ -9067,6 +9067,58 @@ def doDescribePrometheusAgents(args, parsed_globals):
|
|
9067
9067
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9068
9068
|
|
9069
9069
|
|
9070
|
+
def doModifyOpenPolicyList(args, parsed_globals):
|
9071
|
+
g_param = parse_global_arg(parsed_globals)
|
9072
|
+
|
9073
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
9074
|
+
cred = credential.CVMRoleCredential()
|
9075
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
9076
|
+
cred = credential.STSAssumeRoleCredential(
|
9077
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
9078
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
9079
|
+
)
|
9080
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
9081
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
9082
|
+
else:
|
9083
|
+
cred = credential.Credential(
|
9084
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
9085
|
+
)
|
9086
|
+
http_profile = HttpProfile(
|
9087
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
9088
|
+
reqMethod="POST",
|
9089
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
9090
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
9091
|
+
)
|
9092
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
9093
|
+
if g_param[OptionsDefine.Language]:
|
9094
|
+
profile.language = g_param[OptionsDefine.Language]
|
9095
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
9096
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
9097
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
9098
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9099
|
+
model = models.ModifyOpenPolicyListRequest()
|
9100
|
+
model.from_json_string(json.dumps(args))
|
9101
|
+
start_time = time.time()
|
9102
|
+
while True:
|
9103
|
+
rsp = client.ModifyOpenPolicyList(model)
|
9104
|
+
result = rsp.to_json_string()
|
9105
|
+
try:
|
9106
|
+
json_obj = json.loads(result)
|
9107
|
+
except TypeError as e:
|
9108
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
9109
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
9110
|
+
break
|
9111
|
+
cur_time = time.time()
|
9112
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
9113
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
9114
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
9115
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
9116
|
+
else:
|
9117
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
9118
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
9119
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9120
|
+
|
9121
|
+
|
9070
9122
|
def doModifyNodePoolInstanceTypes(args, parsed_globals):
|
9071
9123
|
g_param = parse_global_arg(parsed_globals)
|
9072
9124
|
|
@@ -11719,7 +11771,7 @@ def doUpdateEKSCluster(args, parsed_globals):
|
|
11719
11771
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11720
11772
|
|
11721
11773
|
|
11722
|
-
def
|
11774
|
+
def doDescribeBackupStorageLocations(args, parsed_globals):
|
11723
11775
|
g_param = parse_global_arg(parsed_globals)
|
11724
11776
|
|
11725
11777
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -11748,11 +11800,63 @@ def doModifyPrometheusConfig(args, parsed_globals):
|
|
11748
11800
|
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
11749
11801
|
client._sdkVersion += ("_CLI_" + __version__)
|
11750
11802
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11751
|
-
model = models.
|
11803
|
+
model = models.DescribeBackupStorageLocationsRequest()
|
11752
11804
|
model.from_json_string(json.dumps(args))
|
11753
11805
|
start_time = time.time()
|
11754
11806
|
while True:
|
11755
|
-
rsp = client.
|
11807
|
+
rsp = client.DescribeBackupStorageLocations(model)
|
11808
|
+
result = rsp.to_json_string()
|
11809
|
+
try:
|
11810
|
+
json_obj = json.loads(result)
|
11811
|
+
except TypeError as e:
|
11812
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
11813
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
11814
|
+
break
|
11815
|
+
cur_time = time.time()
|
11816
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
11817
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
11818
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
11819
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
11820
|
+
else:
|
11821
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
11822
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
11823
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11824
|
+
|
11825
|
+
|
11826
|
+
def doDescribeClusterEndpoints(args, parsed_globals):
|
11827
|
+
g_param = parse_global_arg(parsed_globals)
|
11828
|
+
|
11829
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
11830
|
+
cred = credential.CVMRoleCredential()
|
11831
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
11832
|
+
cred = credential.STSAssumeRoleCredential(
|
11833
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
11834
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
11835
|
+
)
|
11836
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
11837
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
11838
|
+
else:
|
11839
|
+
cred = credential.Credential(
|
11840
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
11841
|
+
)
|
11842
|
+
http_profile = HttpProfile(
|
11843
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
11844
|
+
reqMethod="POST",
|
11845
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
11846
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
11847
|
+
)
|
11848
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
11849
|
+
if g_param[OptionsDefine.Language]:
|
11850
|
+
profile.language = g_param[OptionsDefine.Language]
|
11851
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
11852
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
11853
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
11854
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11855
|
+
model = models.DescribeClusterEndpointsRequest()
|
11856
|
+
model.from_json_string(json.dumps(args))
|
11857
|
+
start_time = time.time()
|
11858
|
+
while True:
|
11859
|
+
rsp = client.DescribeClusterEndpoints(model)
|
11756
11860
|
result = rsp.to_json_string()
|
11757
11861
|
try:
|
11758
11862
|
json_obj = json.loads(result)
|
@@ -12244,7 +12348,7 @@ ACTION_MAP = {
|
|
12244
12348
|
"DeleteHealthCheckPolicy": doDeleteHealthCheckPolicy,
|
12245
12349
|
"CreatePrometheusAlertRule": doCreatePrometheusAlertRule,
|
12246
12350
|
"DeletePrometheusRecordRuleYaml": doDeletePrometheusRecordRuleYaml,
|
12247
|
-
"
|
12351
|
+
"ModifyPrometheusConfig": doModifyPrometheusConfig,
|
12248
12352
|
"DeleteClusterInstances": doDeleteClusterInstances,
|
12249
12353
|
"ModifyPrometheusTemp": doModifyPrometheusTemp,
|
12250
12354
|
"ModifyPrometheusRecordRuleYaml": doModifyPrometheusRecordRuleYaml,
|
@@ -12260,7 +12364,7 @@ ACTION_MAP = {
|
|
12260
12364
|
"DescribeECMInstances": doDescribeECMInstances,
|
12261
12365
|
"DeleteTKEEdgeCluster": doDeleteTKEEdgeCluster,
|
12262
12366
|
"GetMostSuitableImageCache": doGetMostSuitableImageCache,
|
12263
|
-
"
|
12367
|
+
"DescribeOpenPolicyList": doDescribeOpenPolicyList,
|
12264
12368
|
"CreatePrometheusClusterAgent": doCreatePrometheusClusterAgent,
|
12265
12369
|
"CreatePrometheusConfig": doCreatePrometheusConfig,
|
12266
12370
|
"DescribeEKSClusterCredential": doDescribeEKSClusterCredential,
|
@@ -12270,6 +12374,7 @@ ACTION_MAP = {
|
|
12270
12374
|
"DescribeClusterRoutes": doDescribeClusterRoutes,
|
12271
12375
|
"DescribePrometheusGlobalConfig": doDescribePrometheusGlobalConfig,
|
12272
12376
|
"DescribePrometheusAgents": doDescribePrometheusAgents,
|
12377
|
+
"ModifyOpenPolicyList": doModifyOpenPolicyList,
|
12273
12378
|
"ModifyNodePoolInstanceTypes": doModifyNodePoolInstanceTypes,
|
12274
12379
|
"DescribeEKSClusters": doDescribeEKSClusters,
|
12275
12380
|
"CheckInstancesUpgradeAble": doCheckInstancesUpgradeAble,
|
@@ -12321,7 +12426,8 @@ ACTION_MAP = {
|
|
12321
12426
|
"DeletePrometheusAlertPolicy": doDeletePrometheusAlertPolicy,
|
12322
12427
|
"RunPrometheusInstance": doRunPrometheusInstance,
|
12323
12428
|
"UpdateEKSCluster": doUpdateEKSCluster,
|
12324
|
-
"
|
12429
|
+
"DescribeBackupStorageLocations": doDescribeBackupStorageLocations,
|
12430
|
+
"DescribeClusterEndpoints": doDescribeClusterEndpoints,
|
12325
12431
|
"DescribePostNodeResources": doDescribePostNodeResources,
|
12326
12432
|
"InstallLogAgent": doInstallLogAgent,
|
12327
12433
|
"CheckEdgeClusterCIDR": doCheckEdgeClusterCIDR,
|
@@ -847,6 +847,13 @@
|
|
847
847
|
"output": "DescribeLogSwitchesResponse",
|
848
848
|
"status": "online"
|
849
849
|
},
|
850
|
+
"DescribeOpenPolicyList": {
|
851
|
+
"document": "查询opa策略列表",
|
852
|
+
"input": "DescribeOpenPolicyListRequest",
|
853
|
+
"name": "查询opa策略列表",
|
854
|
+
"output": "DescribeOpenPolicyListResponse",
|
855
|
+
"status": "online"
|
856
|
+
},
|
850
857
|
"DescribePodChargeInfo": {
|
851
858
|
"document": "查询正在运行中Pod的计费信息。可以通过 Namespace 和 Name 来查询某个 Pod 的信息,也可以通过 Pod 的 Uid 批量查询。",
|
852
859
|
"input": "DescribePodChargeInfoRequest",
|
@@ -1330,6 +1337,13 @@
|
|
1330
1337
|
"output": "ModifyNodePoolInstanceTypesResponse",
|
1331
1338
|
"status": "online"
|
1332
1339
|
},
|
1340
|
+
"ModifyOpenPolicyList": {
|
1341
|
+
"document": "批量修改opa策略",
|
1342
|
+
"input": "ModifyOpenPolicyListRequest",
|
1343
|
+
"name": "批量修改opa策略",
|
1344
|
+
"output": "ModifyOpenPolicyListResponse",
|
1345
|
+
"status": "online"
|
1346
|
+
},
|
1333
1347
|
"ModifyPrometheusAgentExternalLabels": {
|
1334
1348
|
"document": "修改被关联集群的external labels",
|
1335
1349
|
"input": "ModifyPrometheusAgentExternalLabelsRequest",
|
@@ -2770,6 +2784,16 @@
|
|
2770
2784
|
"output_required": true,
|
2771
2785
|
"type": "int",
|
2772
2786
|
"value_allowed_null": true
|
2787
|
+
},
|
2788
|
+
{
|
2789
|
+
"disabled": false,
|
2790
|
+
"document": "本地专用集群Id\n注意:此字段可能返回 null,表示取不到有效值。",
|
2791
|
+
"example": "cluster-0jend45y",
|
2792
|
+
"member": "string",
|
2793
|
+
"name": "CdcId",
|
2794
|
+
"output_required": false,
|
2795
|
+
"type": "string",
|
2796
|
+
"value_allowed_null": true
|
2773
2797
|
}
|
2774
2798
|
],
|
2775
2799
|
"usage": "out"
|
@@ -3769,7 +3793,7 @@
|
|
3769
3793
|
"example": "10.0.0.0/24",
|
3770
3794
|
"member": "string",
|
3771
3795
|
"name": "ClusterCIDR",
|
3772
|
-
"
|
3796
|
+
"output_required": true,
|
3773
3797
|
"type": "string",
|
3774
3798
|
"value_allowed_null": false
|
3775
3799
|
},
|
@@ -3779,7 +3803,7 @@
|
|
3779
3803
|
"example": "false",
|
3780
3804
|
"member": "bool",
|
3781
3805
|
"name": "IgnoreClusterCIDRConflict",
|
3782
|
-
"
|
3806
|
+
"output_required": true,
|
3783
3807
|
"type": "bool",
|
3784
3808
|
"value_allowed_null": false
|
3785
3809
|
},
|
@@ -3789,7 +3813,7 @@
|
|
3789
3813
|
"example": "256",
|
3790
3814
|
"member": "uint64",
|
3791
3815
|
"name": "MaxNodePodNum",
|
3792
|
-
"
|
3816
|
+
"output_required": true,
|
3793
3817
|
"type": "int",
|
3794
3818
|
"value_allowed_null": false
|
3795
3819
|
},
|
@@ -3799,7 +3823,7 @@
|
|
3799
3823
|
"example": "256",
|
3800
3824
|
"member": "uint64",
|
3801
3825
|
"name": "MaxClusterServiceNum",
|
3802
|
-
"
|
3826
|
+
"output_required": true,
|
3803
3827
|
"type": "int",
|
3804
3828
|
"value_allowed_null": false
|
3805
3829
|
},
|
@@ -3809,7 +3833,7 @@
|
|
3809
3833
|
"example": "false",
|
3810
3834
|
"member": "bool",
|
3811
3835
|
"name": "Ipvs",
|
3812
|
-
"
|
3836
|
+
"output_required": true,
|
3813
3837
|
"type": "bool",
|
3814
3838
|
"value_allowed_null": false
|
3815
3839
|
},
|
@@ -3819,7 +3843,7 @@
|
|
3819
3843
|
"example": "vpc-aaa",
|
3820
3844
|
"member": "string",
|
3821
3845
|
"name": "VpcId",
|
3822
|
-
"
|
3846
|
+
"output_required": true,
|
3823
3847
|
"type": "string",
|
3824
3848
|
"value_allowed_null": false
|
3825
3849
|
},
|
@@ -3829,7 +3853,7 @@
|
|
3829
3853
|
"example": "false",
|
3830
3854
|
"member": "bool",
|
3831
3855
|
"name": "Cni",
|
3832
|
-
"
|
3856
|
+
"output_required": true,
|
3833
3857
|
"type": "bool",
|
3834
3858
|
"value_allowed_null": false
|
3835
3859
|
},
|
@@ -3839,7 +3863,7 @@
|
|
3839
3863
|
"example": "ipvs-bpf",
|
3840
3864
|
"member": "string",
|
3841
3865
|
"name": "KubeProxyMode",
|
3842
|
-
"
|
3866
|
+
"output_required": true,
|
3843
3867
|
"type": "string",
|
3844
3868
|
"value_allowed_null": true
|
3845
3869
|
},
|
@@ -3849,7 +3873,7 @@
|
|
3849
3873
|
"example": "10.0.0.0/25",
|
3850
3874
|
"member": "string",
|
3851
3875
|
"name": "ServiceCIDR",
|
3852
|
-
"
|
3876
|
+
"output_required": true,
|
3853
3877
|
"type": "string",
|
3854
3878
|
"value_allowed_null": true
|
3855
3879
|
},
|
@@ -3859,7 +3883,7 @@
|
|
3859
3883
|
"example": "[\"subnet-aa\",\"subnet-bb\"]",
|
3860
3884
|
"member": "string",
|
3861
3885
|
"name": "Subnets",
|
3862
|
-
"
|
3886
|
+
"output_required": true,
|
3863
3887
|
"type": "list",
|
3864
3888
|
"value_allowed_null": true
|
3865
3889
|
},
|
@@ -3869,7 +3893,7 @@
|
|
3869
3893
|
"example": "false",
|
3870
3894
|
"member": "bool",
|
3871
3895
|
"name": "IgnoreServiceCIDRConflict",
|
3872
|
-
"
|
3896
|
+
"output_required": true,
|
3873
3897
|
"type": "bool",
|
3874
3898
|
"value_allowed_null": true
|
3875
3899
|
},
|
@@ -3879,7 +3903,7 @@
|
|
3879
3903
|
"example": "false",
|
3880
3904
|
"member": "bool",
|
3881
3905
|
"name": "IsDualStack",
|
3882
|
-
"
|
3906
|
+
"output_required": true,
|
3883
3907
|
"type": "bool",
|
3884
3908
|
"value_allowed_null": true
|
3885
3909
|
},
|
@@ -3889,7 +3913,7 @@
|
|
3889
3913
|
"example": "10.0.0.0/24",
|
3890
3914
|
"member": "string",
|
3891
3915
|
"name": "Ipv6ServiceCIDR",
|
3892
|
-
"
|
3916
|
+
"output_required": true,
|
3893
3917
|
"type": "string",
|
3894
3918
|
"value_allowed_null": true
|
3895
3919
|
},
|
@@ -3899,7 +3923,7 @@
|
|
3899
3923
|
"example": "\"clusterIP\"",
|
3900
3924
|
"member": "string",
|
3901
3925
|
"name": "CiliumMode",
|
3902
|
-
"
|
3926
|
+
"output_required": true,
|
3903
3927
|
"type": "string",
|
3904
3928
|
"value_allowed_null": true
|
3905
3929
|
}
|
@@ -11365,7 +11389,7 @@
|
|
11365
11389
|
},
|
11366
11390
|
{
|
11367
11391
|
"disabled": false,
|
11368
|
-
"document": "
|
11392
|
+
"document": "注册节点公网版公网连接地址",
|
11369
11393
|
"example": "23.142.142.24:9000",
|
11370
11394
|
"member": "string",
|
11371
11395
|
"name": "PublicConnectUrl",
|
@@ -11373,6 +11397,16 @@
|
|
11373
11397
|
"type": "string",
|
11374
11398
|
"value_allowed_null": false
|
11375
11399
|
},
|
11400
|
+
{
|
11401
|
+
"disabled": false,
|
11402
|
+
"document": "注册节点公网版自定义域名\n注意:此字段可能返回 null,表示取不到有效值。",
|
11403
|
+
"example": "test.com",
|
11404
|
+
"member": "string",
|
11405
|
+
"name": "PublicCustomDomain",
|
11406
|
+
"output_required": false,
|
11407
|
+
"type": "string",
|
11408
|
+
"value_allowed_null": true
|
11409
|
+
},
|
11376
11410
|
{
|
11377
11411
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11378
11412
|
"member": "string",
|
@@ -11655,6 +11689,52 @@
|
|
11655
11689
|
],
|
11656
11690
|
"type": "object"
|
11657
11691
|
},
|
11692
|
+
"DescribeOpenPolicyListRequest": {
|
11693
|
+
"document": "DescribeOpenPolicyList请求参数结构体",
|
11694
|
+
"members": [
|
11695
|
+
{
|
11696
|
+
"disabled": false,
|
11697
|
+
"document": "集群ID",
|
11698
|
+
"example": "cls-abcd1234",
|
11699
|
+
"member": "string",
|
11700
|
+
"name": "ClusterId",
|
11701
|
+
"required": true,
|
11702
|
+
"type": "string"
|
11703
|
+
},
|
11704
|
+
{
|
11705
|
+
"disabled": false,
|
11706
|
+
"document": "策略分类 基线:baseline 优选:priority 可选:optional",
|
11707
|
+
"example": "baseline",
|
11708
|
+
"member": "string",
|
11709
|
+
"name": "Category",
|
11710
|
+
"required": false,
|
11711
|
+
"type": "string"
|
11712
|
+
}
|
11713
|
+
],
|
11714
|
+
"type": "object"
|
11715
|
+
},
|
11716
|
+
"DescribeOpenPolicyListResponse": {
|
11717
|
+
"document": "DescribeOpenPolicyList返回参数结构体",
|
11718
|
+
"members": [
|
11719
|
+
{
|
11720
|
+
"disabled": false,
|
11721
|
+
"document": "策略信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
11722
|
+
"example": "无",
|
11723
|
+
"member": "OpenPolicyInfo",
|
11724
|
+
"name": "OpenPolicyInfoList",
|
11725
|
+
"output_required": false,
|
11726
|
+
"type": "list",
|
11727
|
+
"value_allowed_null": true
|
11728
|
+
},
|
11729
|
+
{
|
11730
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11731
|
+
"member": "string",
|
11732
|
+
"name": "RequestId",
|
11733
|
+
"type": "string"
|
11734
|
+
}
|
11735
|
+
],
|
11736
|
+
"type": "object"
|
11737
|
+
},
|
11658
11738
|
"DescribePodChargeInfoRequest": {
|
11659
11739
|
"document": "DescribePodChargeInfo请求参数结构体",
|
11660
11740
|
"members": [
|
@@ -18936,6 +19016,51 @@
|
|
18936
19016
|
],
|
18937
19017
|
"type": "object"
|
18938
19018
|
},
|
19019
|
+
"ModifyOpenPolicyListRequest": {
|
19020
|
+
"document": "ModifyOpenPolicyList请求参数结构体",
|
19021
|
+
"members": [
|
19022
|
+
{
|
19023
|
+
"disabled": false,
|
19024
|
+
"document": "集群ID",
|
19025
|
+
"example": "cls-abcd1234",
|
19026
|
+
"member": "string",
|
19027
|
+
"name": "ClusterId",
|
19028
|
+
"required": true,
|
19029
|
+
"type": "string"
|
19030
|
+
},
|
19031
|
+
{
|
19032
|
+
"disabled": false,
|
19033
|
+
"document": "修改的策略列表,目前仅支持修改EnforcementAction字段",
|
19034
|
+
"example": "[ { \"EnforcementAction\": \"dryrun\", \"Name\": \"block-namespace-deletion-rule\", \"Kind\": \"blocknamespacedeletion\" } ]",
|
19035
|
+
"member": "OpenPolicySwitch",
|
19036
|
+
"name": "OpenPolicyInfoList",
|
19037
|
+
"required": false,
|
19038
|
+
"type": "list"
|
19039
|
+
},
|
19040
|
+
{
|
19041
|
+
"disabled": false,
|
19042
|
+
"document": "策略分类 基线:baseline 优选:priority 可选:optional",
|
19043
|
+
"example": "optional",
|
19044
|
+
"member": "string",
|
19045
|
+
"name": "Category",
|
19046
|
+
"required": false,
|
19047
|
+
"type": "string"
|
19048
|
+
}
|
19049
|
+
],
|
19050
|
+
"type": "object"
|
19051
|
+
},
|
19052
|
+
"ModifyOpenPolicyListResponse": {
|
19053
|
+
"document": "ModifyOpenPolicyList返回参数结构体",
|
19054
|
+
"members": [
|
19055
|
+
{
|
19056
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
19057
|
+
"member": "string",
|
19058
|
+
"name": "RequestId",
|
19059
|
+
"type": "string"
|
19060
|
+
}
|
19061
|
+
],
|
19062
|
+
"type": "object"
|
19063
|
+
},
|
18939
19064
|
"ModifyPrometheusAgentExternalLabelsRequest": {
|
18940
19065
|
"document": "ModifyPrometheusAgentExternalLabels请求参数结构体",
|
18941
19066
|
"members": [
|
@@ -19799,6 +19924,202 @@
|
|
19799
19924
|
],
|
19800
19925
|
"usage": "both"
|
19801
19926
|
},
|
19927
|
+
"OpenConstraintInfo": {
|
19928
|
+
"document": "策略实例信息",
|
19929
|
+
"members": [
|
19930
|
+
{
|
19931
|
+
"disabled": false,
|
19932
|
+
"document": "策略实例名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
19933
|
+
"example": "block-namespace-deletion-rule",
|
19934
|
+
"member": "string",
|
19935
|
+
"name": "Name",
|
19936
|
+
"output_required": false,
|
19937
|
+
"required": false,
|
19938
|
+
"type": "string",
|
19939
|
+
"value_allowed_null": true
|
19940
|
+
},
|
19941
|
+
{
|
19942
|
+
"disabled": false,
|
19943
|
+
"document": "策略实例关联事件数\n注意:此字段可能返回 null,表示取不到有效值。",
|
19944
|
+
"example": "3",
|
19945
|
+
"member": "uint64",
|
19946
|
+
"name": "EventNums",
|
19947
|
+
"output_required": false,
|
19948
|
+
"required": false,
|
19949
|
+
"type": "int",
|
19950
|
+
"value_allowed_null": true
|
19951
|
+
},
|
19952
|
+
{
|
19953
|
+
"disabled": false,
|
19954
|
+
"document": "实例yaml详情base64编码\n注意:此字段可能返回 null,表示取不到有效值。",
|
19955
|
+
"example": "apiVersion: constraints.gatekeeper.sh/v1beta1 kind: BlockNamespaceDeletion metadata: name: block-namespace-deletion-rule annotations: \"helm.sh/hook\": post-install,post-upgrade spec: enforcementAction: dryrun match: kinds: - apiGroups: [\"*\"] kinds: [\"Namespace\"]",
|
19956
|
+
"member": "string",
|
19957
|
+
"name": "YamlDetail",
|
19958
|
+
"output_required": false,
|
19959
|
+
"required": false,
|
19960
|
+
"type": "string",
|
19961
|
+
"value_allowed_null": true
|
19962
|
+
}
|
19963
|
+
],
|
19964
|
+
"usage": "both"
|
19965
|
+
},
|
19966
|
+
"OpenPolicyInfo": {
|
19967
|
+
"document": "opa策略信息",
|
19968
|
+
"members": [
|
19969
|
+
{
|
19970
|
+
"disabled": false,
|
19971
|
+
"document": "策略分类:cluster集群策略、node节点策略、namespace命名空间策略、configuration配置相关策略、compute计算资源策略、storage存储资源策略、network网络资源策略\n注意:此字段可能返回 null,表示取不到有效值。",
|
19972
|
+
"example": "cluster",
|
19973
|
+
"member": "string",
|
19974
|
+
"name": "PolicyCategory",
|
19975
|
+
"output_required": false,
|
19976
|
+
"type": "string",
|
19977
|
+
"value_allowed_null": true
|
19978
|
+
},
|
19979
|
+
{
|
19980
|
+
"disabled": false,
|
19981
|
+
"document": "策略中文名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
19982
|
+
"example": "存在节点的集群不允许删除",
|
19983
|
+
"member": "string",
|
19984
|
+
"name": "PolicyName",
|
19985
|
+
"output_required": false,
|
19986
|
+
"type": "string",
|
19987
|
+
"value_allowed_null": true
|
19988
|
+
},
|
19989
|
+
{
|
19990
|
+
"disabled": false,
|
19991
|
+
"document": "策略描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
19992
|
+
"example": "集群中存在任意节点,需下线节点后方可删除",
|
19993
|
+
"member": "string",
|
19994
|
+
"name": "PolicyDesc",
|
19995
|
+
"output_required": false,
|
19996
|
+
"type": "string",
|
19997
|
+
"value_allowed_null": true
|
19998
|
+
},
|
19999
|
+
{
|
20000
|
+
"disabled": false,
|
20001
|
+
"document": "策略运行模式:dryrun空跑不生效,deny拦截生效\n注意:此字段可能返回 null,表示取不到有效值。",
|
20002
|
+
"example": "dryrun",
|
20003
|
+
"member": "string",
|
20004
|
+
"name": "EnforcementAction",
|
20005
|
+
"output_required": true,
|
20006
|
+
"type": "string",
|
20007
|
+
"value_allowed_null": true
|
20008
|
+
},
|
20009
|
+
{
|
20010
|
+
"disabled": false,
|
20011
|
+
"document": "关联的事件数量(最近7d)\n注意:此字段可能返回 null,表示取不到有效值。",
|
20012
|
+
"example": "3",
|
20013
|
+
"member": "uint64",
|
20014
|
+
"name": "EventNums",
|
20015
|
+
"output_required": false,
|
20016
|
+
"type": "int",
|
20017
|
+
"value_allowed_null": true
|
20018
|
+
},
|
20019
|
+
{
|
20020
|
+
"disabled": false,
|
20021
|
+
"document": "策略英文名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
20022
|
+
"example": "block-crd-deletion-rule",
|
20023
|
+
"member": "string",
|
20024
|
+
"name": "Name",
|
20025
|
+
"output_required": true,
|
20026
|
+
"type": "string",
|
20027
|
+
"value_allowed_null": true
|
20028
|
+
},
|
20029
|
+
{
|
20030
|
+
"disabled": false,
|
20031
|
+
"document": "策略模版类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
20032
|
+
"example": "BlockCrdDeletion",
|
20033
|
+
"member": "string",
|
20034
|
+
"name": "Kind",
|
20035
|
+
"output_required": true,
|
20036
|
+
"type": "string",
|
20037
|
+
"value_allowed_null": true
|
20038
|
+
},
|
20039
|
+
{
|
20040
|
+
"disabled": false,
|
20041
|
+
"document": "策略开关状态:open打开,close关闭\n注意:此字段可能返回 null,表示取不到有效值。",
|
20042
|
+
"example": "open",
|
20043
|
+
"member": "string",
|
20044
|
+
"name": "EnabledStatus",
|
20045
|
+
"output_required": false,
|
20046
|
+
"type": "string",
|
20047
|
+
"value_allowed_null": true
|
20048
|
+
},
|
20049
|
+
{
|
20050
|
+
"disabled": false,
|
20051
|
+
"document": "策略的实例的yaml示例base64编码\n注意:此字段可能返回 null,表示取不到有效值。",
|
20052
|
+
"example": "无",
|
20053
|
+
"member": "string",
|
20054
|
+
"name": "ConstraintYamlExample",
|
20055
|
+
"output_required": false,
|
20056
|
+
"type": "string",
|
20057
|
+
"value_allowed_null": true
|
20058
|
+
},
|
20059
|
+
{
|
20060
|
+
"disabled": false,
|
20061
|
+
"document": "策略关联的实例列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
20062
|
+
"example": "[]",
|
20063
|
+
"member": "OpenConstraintInfo",
|
20064
|
+
"name": "OpenConstraintInfoList",
|
20065
|
+
"output_required": false,
|
20066
|
+
"type": "list",
|
20067
|
+
"value_allowed_null": true
|
20068
|
+
}
|
20069
|
+
],
|
20070
|
+
"usage": "out"
|
20071
|
+
},
|
20072
|
+
"OpenPolicySwitch": {
|
20073
|
+
"document": "opa策略开关",
|
20074
|
+
"members": [
|
20075
|
+
{
|
20076
|
+
"disabled": false,
|
20077
|
+
"document": "策略运行模式:dryrun空跑不生效,deny拦截生效",
|
20078
|
+
"example": "dryrun",
|
20079
|
+
"member": "string",
|
20080
|
+
"name": "EnforcementAction",
|
20081
|
+
"required": true,
|
20082
|
+
"type": "string"
|
20083
|
+
},
|
20084
|
+
{
|
20085
|
+
"disabled": false,
|
20086
|
+
"document": "策略英文名称",
|
20087
|
+
"example": "block-crd-deletion-rule",
|
20088
|
+
"member": "string",
|
20089
|
+
"name": "Name",
|
20090
|
+
"required": true,
|
20091
|
+
"type": "string"
|
20092
|
+
},
|
20093
|
+
{
|
20094
|
+
"disabled": false,
|
20095
|
+
"document": "策略模版类型",
|
20096
|
+
"example": "BlockCrdDeletion",
|
20097
|
+
"member": "string",
|
20098
|
+
"name": "Kind",
|
20099
|
+
"required": true,
|
20100
|
+
"type": "string"
|
20101
|
+
},
|
20102
|
+
{
|
20103
|
+
"disabled": false,
|
20104
|
+
"document": "策略开关状态:open打开,close关闭",
|
20105
|
+
"example": "open",
|
20106
|
+
"member": "string",
|
20107
|
+
"name": "EnabledStatus",
|
20108
|
+
"required": false,
|
20109
|
+
"type": "string"
|
20110
|
+
},
|
20111
|
+
{
|
20112
|
+
"disabled": false,
|
20113
|
+
"document": "策略关联的实例列表",
|
20114
|
+
"example": "[]",
|
20115
|
+
"member": "OpenConstraintInfo",
|
20116
|
+
"name": "OpenConstraintInfoList",
|
20117
|
+
"required": false,
|
20118
|
+
"type": "list"
|
20119
|
+
}
|
20120
|
+
],
|
20121
|
+
"usage": "in"
|
20122
|
+
},
|
19802
20123
|
"OptionalRuntimes": {
|
19803
20124
|
"document": "可选运行时",
|
19804
20125
|
"members": [
|
@@ -1004,6 +1004,14 @@
|
|
1004
1004
|
"title": "查询开关列表接口示例"
|
1005
1005
|
}
|
1006
1006
|
],
|
1007
|
+
"DescribeOpenPolicyList": [
|
1008
|
+
{
|
1009
|
+
"document": "",
|
1010
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOpenPolicyList\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-gzzr1v5t\",\n \"Category\": \"baseline\"\n}",
|
1011
|
+
"output": "{\n \"Response\": {\n \"OpenPolicyInfoList\": [\n {\n \"EnforcementAction\": \"deny\",\n \"EventNums\": 0,\n \"Kind\": \"blockclusterdeletion\",\n \"Name\": \"block-cluster-deletion-rule\",\n \"PolicyCategory\": \"cluster\",\n \"PolicyDesc\": \"集群中存在任意节点(普通节点、原生节点、注册节点),需先下线节点后方可删除\",\n \"PolicyName\": \"存在节点的集群不允许删除\"\n },\n {\n \"EnforcementAction\": \"dryrun\",\n \"EventNums\": 0,\n \"Kind\": \"blocknamespacedeletion\",\n \"Name\": \"block-namespace-deletion-rule\",\n \"PolicyCategory\": \"namespace\",\n \"PolicyDesc\": \"命名空间内如果存在pod、service、ingress、pvc,需清空上述资源后方可删除\",\n \"PolicyName\": \"存在workload、服务与路由、存储对象的命名空间不允许删除\"\n },\n {\n \"EnforcementAction\": \"dryrun\",\n \"EventNums\": 0,\n \"Kind\": \"blockcrddeletion\",\n \"Name\": \"block-crd-deletion-rule\",\n \"PolicyCategory\": \"configuration\",\n \"PolicyDesc\": \"crd定义的apiversion下如果有创建cr资源,则清空cr后方可删除crd\",\n \"PolicyName\": \"存在cr的crd不允许删除\"\n },\n {\n \"EnforcementAction\": \"dryrun\",\n \"EventNums\": 0,\n \"Kind\": \"blockpvdeletion\",\n \"Name\": \"block-pv-deletion-rule\",\n \"PolicyCategory\": \"storage\",\n \"PolicyDesc\": \"pv如果处于bound状态,则不允许被删除\",\n \"PolicyName\": \"绑定状态的pv不允许删除\"\n },\n {\n \"EnforcementAction\": \"dryrun\",\n \"EventNums\": 0,\n \"Kind\": \"blockservicewithingressdeletion\",\n \"Name\": \"block-service-with-ingress-deletion-rule\",\n \"PolicyCategory\": \"network\",\n \"PolicyDesc\": \"ingress-controller前端svc,如果存在ingress配置,则svc不允许删除\",\n \"PolicyName\": \"应用了ingress规则的svc不允许删除\"\n }\n ],\n \"RequestId\": \"224782f1-c990-4383-8f21-bb369c9ca396\"\n }\n}",
|
1012
|
+
"title": "查询策略列表"
|
1013
|
+
}
|
1014
|
+
],
|
1007
1015
|
"DescribePodChargeInfo": [
|
1008
1016
|
{
|
1009
1017
|
"document": " 需要同时指定 Namespace 和 Name",
|
@@ -1646,6 +1654,14 @@
|
|
1646
1654
|
"title": "修改节点池机型"
|
1647
1655
|
}
|
1648
1656
|
],
|
1657
|
+
"ModifyOpenPolicyList": [
|
1658
|
+
{
|
1659
|
+
"document": "",
|
1660
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyOpenPolicyList\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-gzzr1v5t\",\n \"Category\": \"optional\",\n \"OpenPolicyInfoList\": [\n {\n \"EnforcementAction\": \"dryrun\",\n \"Name\": \"block-namespace-deletion-rule\",\n \"Kind\": \"blocknamespacedeletion\"\n }\n ]\n}",
|
1661
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"807af656-9c9b-43b0-bf8a-d0218b624ec7\"\n }\n}",
|
1662
|
+
"title": "批量修改策略开关"
|
1663
|
+
}
|
1664
|
+
],
|
1649
1665
|
"ModifyPrometheusAgentExternalLabels": [
|
1650
1666
|
{
|
1651
1667
|
"document": "",
|
@@ -9160,6 +9160,15 @@
|
|
9160
9160
|
"name": "SecurityGroupId",
|
9161
9161
|
"required": false,
|
9162
9162
|
"type": "string"
|
9163
|
+
},
|
9164
|
+
{
|
9165
|
+
"disabled": false,
|
9166
|
+
"document": "指定绑定的标签列表,例如:[{\"Key\": \"city\", \"Value\": \"shanghai\"}]。",
|
9167
|
+
"example": "无",
|
9168
|
+
"member": "Tag",
|
9169
|
+
"name": "Tags",
|
9170
|
+
"required": false,
|
9171
|
+
"type": "list"
|
9163
9172
|
}
|
9164
9173
|
],
|
9165
9174
|
"type": "object"
|
@@ -9173,6 +9182,7 @@
|
|
9173
9182
|
"example": "无。",
|
9174
9183
|
"member": "EndPoint",
|
9175
9184
|
"name": "EndPoint",
|
9185
|
+
"output_required": true,
|
9176
9186
|
"type": "object",
|
9177
9187
|
"value_allowed_null": false
|
9178
9188
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1194.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1194
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|
@@ -1,4 +1,4 @@
|
|
1
|
-
tccli/__init__.py,sha256=
|
1
|
+
tccli/__init__.py,sha256=r0dZIEHUBEGuOGpNyeB2TAOzP5k0hhTk442TMWR16Y0,27
|
2
2
|
tccli/argparser.py,sha256=iFaw_iIMdyVwUdcv2_2OHQfe7-7j9yGzoOgXgXswoBo,5555
|
3
3
|
tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
|
4
4
|
tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
|
@@ -210,7 +210,7 @@ tccli/services/ccc/v20200210/api.json,sha256=lkgqBtzSJa7r6CzYQnnGNBd2muQwr6ENAQB
|
|
210
210
|
tccli/services/ccc/v20200210/examples.json,sha256=NKgE6E5IuVX7_xhlMxSvQ2-S7btpjM4SFLkd-P6EUec,62204
|
211
211
|
tccli/services/cdb/__init__.py,sha256=9Jk9tAMP2ZM_xOG77GvqXL1q3UfwYTEos6_P6xzpTiM,85
|
212
212
|
tccli/services/cdb/cdb_client.py,sha256=_g_NpL7dLygoDPY-3vXWAn8fmDp4FVPpctcerXVGuvw,532482
|
213
|
-
tccli/services/cdb/v20170320/api.json,sha256
|
213
|
+
tccli/services/cdb/v20170320/api.json,sha256=QQO25wRKH40Npdi6fYVC8m8eyuWWuU7-uFcYGdX5KII,724102
|
214
214
|
tccli/services/cdb/v20170320/examples.json,sha256=53vzEpPhGjmN0bisMHVX5OF3-4JPa9rTkGHdnvVcGEo,165450
|
215
215
|
tccli/services/cdc/__init__.py,sha256=0NOw5_YSjO-QzgYYiIo0gheuTe2_dvzCUnVD4BOP4tI,85
|
216
216
|
tccli/services/cdc/cdc_client.py,sha256=wSnb34OvPAii0UEu5GkkgWFQ15CmtjsfnPKgE5nzFqU,71139
|
@@ -250,7 +250,7 @@ tccli/services/cfs/v20190719/api.json,sha256=Ry8UW6kA97yAtDOzUIcwdBUnVp5T3ACf62-
|
|
250
250
|
tccli/services/cfs/v20190719/examples.json,sha256=6XSwCVfwFdSrLjAIy4Q2dXMumr8pIQnts7QfA8Hj1G4,33505
|
251
251
|
tccli/services/cfw/__init__.py,sha256=2hNwXcNofHJCalk9HHEbOcgYz6XKuYmZk_iBroa5YsY,85
|
252
252
|
tccli/services/cfw/cfw_client.py,sha256=Bw9g5PbQovbqEmRVa26tVoFYZSYxqhVeX1_C9pLo0-0,362157
|
253
|
-
tccli/services/cfw/v20190904/api.json,sha256=
|
253
|
+
tccli/services/cfw/v20190904/api.json,sha256=uJS1YXVeYiGyNjFJ0JBdO99KuVvJPYq0StvVkB3AI-g,504693
|
254
254
|
tccli/services/cfw/v20190904/examples.json,sha256=mWCuiMLdZowL9MbL9DcPK0uH2ioZhkSZnfImMc_9CsM,113642
|
255
255
|
tccli/services/chdfs/__init__.py,sha256=lx3R4qylmSHNb4EJWL_ipMVfkkva_S3QOM12FRsTOVI,89
|
256
256
|
tccli/services/chdfs/chdfs_client.py,sha256=mkuDVNgnCot5m0ne0BeuLCNq2GKEA560s3idjWKfCUw,95468
|
@@ -334,7 +334,7 @@ tccli/services/cr/v20180321/api.json,sha256=0driW95fuUetU3bkx2wGSNoEe96jLH8CLwGV
|
|
334
334
|
tccli/services/cr/v20180321/examples.json,sha256=xa9vI4IS0HgoplQFbBxqf0kpn0bFYZsmRoGjlEWlxPc,20275
|
335
335
|
tccli/services/csip/__init__.py,sha256=lviIDC_icuTLoePk_MnHdgD3FQE_exgx48c_sEtQUTg,87
|
336
336
|
tccli/services/csip/csip_client.py,sha256=8bfBaM_0xyIWDc9iwnJzRKGsWOQLaff_d1W4JFx7lyA,139718
|
337
|
-
tccli/services/csip/v20221121/api.json,sha256=
|
337
|
+
tccli/services/csip/v20221121/api.json,sha256=sMoQX7anTslH_7VHrZsbJb2IxPkK26RteYJ4zlBhzbU,459375
|
338
338
|
tccli/services/csip/v20221121/examples.json,sha256=-uJ1lifcEzHveObTHTLJwXNTvn5dDf4z830aFAPuQ98,104067
|
339
339
|
tccli/services/csxg/__init__.py,sha256=sU_ZPmrn3aufIb1-rpZt1Dw5v8m5NSwklmxjCAuTgyA,87
|
340
340
|
tccli/services/csxg/csxg_client.py,sha256=C5qeU1wzK19kmoufu3zd-stsSrcpGUllKBswQXEWeRw,21024
|
@@ -971,9 +971,9 @@ tccli/services/tiw/tiw_client.py,sha256=eHjqB6jBGoIO-IQ9hS7hk2e9N-jO7bDbh3Nb_s4a
|
|
971
971
|
tccli/services/tiw/v20190919/api.json,sha256=c5Ecm2NbrEjsbrPN7jJ8R0AaE3QwZ3xnVLqbM2kjyPc,225830
|
972
972
|
tccli/services/tiw/v20190919/examples.json,sha256=WaA43CeC-HN0ZRBwn173qIu0us_J_4eabeHVUYtH_dc,53985
|
973
973
|
tccli/services/tke/__init__.py,sha256=7R7ljco3cOJ2rceMbHur-sjpljFjutvZXAUnXQubtEM,85
|
974
|
-
tccli/services/tke/tke_client.py,sha256=
|
975
|
-
tccli/services/tke/v20180525/api.json,sha256=
|
976
|
-
tccli/services/tke/v20180525/examples.json,sha256=
|
974
|
+
tccli/services/tke/tke_client.py,sha256=t6gi1rX0WT4DAFCg-8FSKnTC9yZSGZGMVy_ndPnbyFM,735431
|
975
|
+
tccli/services/tke/v20180525/api.json,sha256=EmxsE3zm5UIXOmhskhWO8WVmsL9_1AfWiLFmCmIjD0E,878774
|
976
|
+
tccli/services/tke/v20180525/examples.json,sha256=fprPX6GMjt1zEAWBrvrETggVmXy742FwtoyvyhLdIq8,244288
|
977
977
|
tccli/services/tke/v20220501/api.json,sha256=aeDGyVJTteWXQwOccLocSCGupG3R_beN7gZ1pzEw_8M,107000
|
978
978
|
tccli/services/tke/v20220501/examples.json,sha256=GkppfINGeJ8aonC3klALtI_OCAboT1BipHu78VyVlww,19323
|
979
979
|
tccli/services/tkgdq/__init__.py,sha256=F4L4oLnjfSIejxFzxNpfGAilbzK0g0-3LGsNWbX1hOY,89
|
@@ -1072,7 +1072,7 @@ tccli/services/vod/v20240718/api.json,sha256=qEb0v2SaH1_NwIrBtQnwkX0Ra-kR3v_dfwG
|
|
1072
1072
|
tccli/services/vod/v20240718/examples.json,sha256=g5rJRLbY-ngpdZJP1xsLT4A9dea78jqdSj8svKZpqoA,4839
|
1073
1073
|
tccli/services/vpc/__init__.py,sha256=3Uy1NP1qkZo8Nd-p-jr1ioM8nnurpWlZOgH6iB3HT7M,85
|
1074
1074
|
tccli/services/vpc/vpc_client.py,sha256=KqDpR6FmfkCiIUwrms-r2KYj07wDgEDGnF4U3cqJkBM,1092438
|
1075
|
-
tccli/services/vpc/v20170312/api.json,sha256=
|
1075
|
+
tccli/services/vpc/v20170312/api.json,sha256=JybUyY23022JmqOHF2JB0HIzjupENbpC6ds3Rsp5MYg,1206194
|
1076
1076
|
tccli/services/vpc/v20170312/examples.json,sha256=Uum28mpd6wkwnENunfTS30_uY1I54WuJphMZmOMqh8o,423532
|
1077
1077
|
tccli/services/vrs/__init__.py,sha256=wd5Otb4faSI7EjUxu_vldqDm0UVy5iVTZYbLgHCVoHk,85
|
1078
1078
|
tccli/services/vrs/vrs_client.py,sha256=GoEtSeQJUcGDUenhtMEXSM0UvCGBZe-hx068V6TAwI8,27146
|
@@ -1120,8 +1120,8 @@ tccli/services/yunsou/v20180504/api.json,sha256=2808fil5p3pTEJ3SqXEEq7eSrASZOiv8
|
|
1120
1120
|
tccli/services/yunsou/v20180504/examples.json,sha256=Jg4WuqS_Wxl7eTBMbzjem65FuUZQi3qq3xtlBNFZlTU,11870
|
1121
1121
|
tccli/services/yunsou/v20191115/api.json,sha256=r_p7c7fMNylQVDpSN0CkUB4Cx1nYW1lI3BM_Zi50FNs,15932
|
1122
1122
|
tccli/services/yunsou/v20191115/examples.json,sha256=vN5MzexHVPMckm4MbnXNiOe3KKiVchvf4_uLpjOskuk,3983
|
1123
|
-
tccli-3.0.
|
1124
|
-
tccli-3.0.
|
1125
|
-
tccli-3.0.
|
1126
|
-
tccli-3.0.
|
1127
|
-
tccli-3.0.
|
1123
|
+
tccli-3.0.1194.1.dist-info/METADATA,sha256=BYprYDob1AVM1fSXzXVctu4n64LfE8KrMbVJjLhUpVA,16172
|
1124
|
+
tccli-3.0.1194.1.dist-info/WHEEL,sha256=HyPWovjK_wfsxZqVnw7Bu5rgKxNh3Nm__lHm0ALDcb4,101
|
1125
|
+
tccli-3.0.1194.1.dist-info/entry_points.txt,sha256=9ZzsXxi7Xj3ZneT7VxRVJpFvnmdEOeysh999_0gWVvo,85
|
1126
|
+
tccli-3.0.1194.1.dist-info/license_files/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
1127
|
+
tccli-3.0.1194.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|