tccli 3.0.1343.1__py2.py3-none-any.whl → 3.0.1344.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/__init__.py +6 -0
- tccli/services/ams/v20201229/api.json +46 -46
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/batch/batch_client.py +53 -0
- tccli/services/batch/v20170312/api.json +125 -0
- tccli/services/batch/v20170312/examples.json +8 -0
- tccli/services/bh/v20230418/api.json +282 -1
- tccli/services/bh/v20230418/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +38 -38
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwch/cdwch_client.py +53 -0
- tccli/services/cdwch/v20200915/api.json +410 -0
- tccli/services/cdwch/v20200915/examples.json +8 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cfg/v20210820/api.json +72 -0
- tccli/services/ckafka/v20190819/api.json +21 -1
- tccli/services/csip/csip_client.py +163 -4
- tccli/services/csip/v20221121/api.json +967 -164
- tccli/services/csip/v20221121/examples.json +29 -5
- tccli/services/cvm/v20170312/api.json +16 -5
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +61 -0
- tccli/services/emr/emr_client.py +167 -8
- tccli/services/emr/v20190103/api.json +809 -14
- tccli/services/emr/v20190103/examples.json +24 -0
- tccli/services/es/v20250101/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +15 -6
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/gs/v20191118/api.json +40 -1
- tccli/services/gs/v20191118/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/igtm/__init__.py +4 -0
- tccli/services/igtm/igtm_client.py +1373 -0
- tccli/services/igtm/v20231024/api.json +3569 -0
- tccli/services/igtm/v20231024/examples.json +207 -0
- tccli/services/ims/v20201229/api.json +20 -28
- tccli/services/ioa/ioa_client.py +114 -8
- tccli/services/ioa/v20220601/api.json +218 -3
- tccli/services/ioa/v20220601/examples.json +16 -0
- tccli/services/iss/v20230517/api.json +11 -2
- tccli/services/kms/v20190118/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/mps/v20190612/api.json +43 -5
- tccli/services/ocr/v20181119/api.json +127 -118
- tccli/services/partners/v20180321/api.json +1 -1
- tccli/services/securitylake/__init__.py +4 -0
- tccli/services/securitylake/securitylake_client.py +207 -0
- tccli/services/securitylake/v20240117/api.json +723 -0
- tccli/services/securitylake/v20240117/examples.json +13 -0
- tccli/services/tcbr/v20220217/api.json +70 -0
- tccli/services/tdmq/v20200217/api.json +263 -5
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +40 -30
- tccli/services/teo/v20220901/examples.json +19 -19
- tccli/services/tione/tione_client.py +57 -4
- tccli/services/tione/v20211111/api.json +283 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +37 -28
- tccli/services/tms/v20201229/api.json +14 -21
- tccli/services/trocket/v20230308/api.json +80 -80
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/tsf/tsf_client.py +61 -8
- tccli/services/tsf/v20180326/api.json +3161 -2106
- tccli/services/tsf/v20180326/examples.json +8 -0
- tccli/services/vdb/v20230616/api.json +49 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +8 -8
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/wav/v20210129/api.json +10 -10
- tccli/services/wav/v20210129/examples.json +3 -3
- tccli/services/wedata/v20210820/api.json +11 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/RECORD +79 -71
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/license_files/LICENSE +0 -0
@@ -568,9 +568,9 @@
|
|
568
568
|
"status": "online"
|
569
569
|
},
|
570
570
|
"DescribeOriginProtection": {
|
571
|
-
"document": "
|
571
|
+
"document": "本接口为旧版本查询源站防护接口,EdgeOne 于 2025 年 6 月 27 日已对源站防护相关接口全面升级,新版本查询源站防护接口详情请参考 [DescribeOriginACL](https://cloud.tencent.com/document/product/1552/120408)。\n\n<p style=\"color: red;\">注意:自 2025 年 6 月 27 日起,旧版接口停止更新迭代,后续新增功能将仅在新版接口中提供。为避免在使用旧版接口时出现数据字段冲突,建议您尽早迁移到新版源站防护接口。</p>",
|
572
572
|
"input": "DescribeOriginProtectionRequest",
|
573
|
-
"name": "
|
573
|
+
"name": "查询源站防护信息(旧)",
|
574
574
|
"output": "DescribeOriginProtectionResponse",
|
575
575
|
"status": "online"
|
576
576
|
},
|
@@ -736,9 +736,9 @@
|
|
736
736
|
"status": "online"
|
737
737
|
},
|
738
738
|
"EnableOriginACL": {
|
739
|
-
"document": "
|
739
|
+
"document": "本接口用于站点首次开启源站防护,启用后 EdgeOne 将会使用特定的回源 IP 网段为七层加速域名/四层代理实例回源。单次支持提交的七层加速域名的数量最大为 200,四层代理实例的数量最大为 100,支持七层加速域名/四层代理实例混合提交,总实例个数最大为 200。如需要启用超过 200 个资源,可先通过指定资源的方式以最大数量启用,剩余资源通过 ModifyOriginACL 接口启用。后续新增七层加速域名/四层代理实例均请通过 ModifyOriginACL 接口配置。\n\n注意:\n- 调用本接口视为同意 [源站防护启用特别约定](https://cloud.tencent.com/document/product/1552/120141);\n- 回源 IP 网段会不定期变更,EdgeOne 将在回源 IP 网段变更前 14 天、前 7 天、前 3 天和前 1 天分别通过站内信、短信、邮件等一种或多种方式发起通知,为了能正常收到回源 IP 网段的变更通知,请务必确保您在 [腾讯云消息中心控制台](https://console.cloud.tencent.com/message)内,已勾选边缘安全加速平台 EO 的产品服务相关消息通知,并配置正确的消息接收人。配置方式请参考 [消息订阅管理](https://cloud.tencent.com/document/product/567/43476)。",
|
740
740
|
"input": "EnableOriginACLRequest",
|
741
|
-
"name": "
|
741
|
+
"name": "开启源站防护",
|
742
742
|
"output": "EnableOriginACLResponse",
|
743
743
|
"status": "online"
|
744
744
|
},
|
@@ -8748,7 +8748,7 @@
|
|
8748
8748
|
},
|
8749
8749
|
{
|
8750
8750
|
"disabled": false,
|
8751
|
-
"document": "
|
8751
|
+
"document": "结束时间。查询时间范围(`EndTime` - `StartTime`)需小于等于 31 天。",
|
8752
8752
|
"example": "2020-04-30T00:00:00Z",
|
8753
8753
|
"member": "datetime_iso",
|
8754
8754
|
"name": "EndTime",
|
@@ -8766,7 +8766,7 @@
|
|
8766
8766
|
},
|
8767
8767
|
{
|
8768
8768
|
"disabled": false,
|
8769
|
-
"document": "
|
8769
|
+
"document": "站点 ID 集合,此参数必填。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 `*` 代替,查询账号级别数据需具备本接口全部站点资源权限。",
|
8770
8770
|
"example": "[\"zoneId1\",\"zoneId2\"]",
|
8771
8771
|
"member": "string",
|
8772
8772
|
"name": "ZoneIds",
|
@@ -8849,7 +8849,7 @@
|
|
8849
8849
|
},
|
8850
8850
|
{
|
8851
8851
|
"disabled": false,
|
8852
|
-
"document": "
|
8852
|
+
"document": "结束时间。查询时间范围(`EndTime` - `StartTime`)需小于等于 31 天。",
|
8853
8853
|
"example": "2020-04-30T00:00:00Z",
|
8854
8854
|
"member": "datetime_iso",
|
8855
8855
|
"name": "EndTime",
|
@@ -8867,7 +8867,7 @@
|
|
8867
8867
|
},
|
8868
8868
|
{
|
8869
8869
|
"disabled": false,
|
8870
|
-
"document": "
|
8870
|
+
"document": "站点 ID 集合,此参数必填。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 `*` 代替,查询账号级别数据需具备本接口全部站点资源权限。",
|
8871
8871
|
"example": "[\"zoneId1\",\"zoneId2\"]",
|
8872
8872
|
"member": "string",
|
8873
8873
|
"name": "ZoneIds",
|
@@ -8977,7 +8977,7 @@
|
|
8977
8977
|
},
|
8978
8978
|
{
|
8979
8979
|
"disabled": false,
|
8980
|
-
"document": "
|
8980
|
+
"document": "结束时间。查询时间范围(`EndTime` - `StartTime`)需小于等于 31 天。",
|
8981
8981
|
"example": "2020-04-30T00:00:00Z",
|
8982
8982
|
"member": "datetime_iso",
|
8983
8983
|
"name": "EndTime",
|
@@ -8995,7 +8995,7 @@
|
|
8995
8995
|
},
|
8996
8996
|
{
|
8997
8997
|
"disabled": false,
|
8998
|
-
"document": "站点ID
|
8998
|
+
"document": "站点 ID 集合,此参数必填。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 `*` 代替,查询账号级别数据需具备本接口全部站点资源权限。",
|
8999
8999
|
"example": "[\"zoneId1\",\"zoneId2\"]",
|
9000
9000
|
"member": "string",
|
9001
9001
|
"name": "ZoneIds",
|
@@ -11079,7 +11079,7 @@
|
|
11079
11079
|
},
|
11080
11080
|
{
|
11081
11081
|
"disabled": false,
|
11082
|
-
"document": "
|
11082
|
+
"document": "结束时间。查询时间范围(`EndTime` - `StartTime`)需小于等于 31 天。",
|
11083
11083
|
"example": "2020-04-30T00:00:00Z",
|
11084
11084
|
"member": "datetime_iso",
|
11085
11085
|
"name": "EndTime",
|
@@ -11097,7 +11097,7 @@
|
|
11097
11097
|
},
|
11098
11098
|
{
|
11099
11099
|
"disabled": false,
|
11100
|
-
"document": "站点 ID
|
11100
|
+
"document": "站点 ID 集合,此参数必填。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 `*` 代替,查询账号级别数据需具备本接口全部站点资源权限。",
|
11101
11101
|
"example": "[\"zone-2rntun0a1z6t\",\"zone-323urc8a9j0q\"]",
|
11102
11102
|
"member": "string",
|
11103
11103
|
"name": "ZoneIds",
|
@@ -11189,7 +11189,7 @@
|
|
11189
11189
|
},
|
11190
11190
|
{
|
11191
11191
|
"disabled": false,
|
11192
|
-
"document": "
|
11192
|
+
"document": "结束时间。查询时间范围(`EndTime` - `StartTime`)需小于等于 31 天。",
|
11193
11193
|
"example": "2020-04-30T00:00:00Z",
|
11194
11194
|
"member": "datetime_iso",
|
11195
11195
|
"name": "EndTime",
|
@@ -11207,7 +11207,7 @@
|
|
11207
11207
|
},
|
11208
11208
|
{
|
11209
11209
|
"disabled": false,
|
11210
|
-
"document": "站点 ID
|
11210
|
+
"document": "站点 ID 集合,此参数必填。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 `*` 代替,查询账号级别数据需具备本接口全部站点资源权限。",
|
11211
11211
|
"example": "zone-2ju9lrnpaxol",
|
11212
11212
|
"member": "string",
|
11213
11213
|
"name": "ZoneIds",
|
@@ -11391,7 +11391,7 @@
|
|
11391
11391
|
},
|
11392
11392
|
{
|
11393
11393
|
"disabled": false,
|
11394
|
-
"document": "
|
11394
|
+
"document": "结束时间。查询时间范围(`EndTime` - `StartTime`)需小于等于 31 天。",
|
11395
11395
|
"example": "2020-04-30T00:00:00Z",
|
11396
11396
|
"member": "datetime_iso",
|
11397
11397
|
"name": "EndTime",
|
@@ -11409,7 +11409,7 @@
|
|
11409
11409
|
},
|
11410
11410
|
{
|
11411
11411
|
"disabled": false,
|
11412
|
-
"document": "站点 ID
|
11412
|
+
"document": "站点 ID 集合,此参数必填。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 `*` 代替,查询账号级别数据需具备本接口全部站点资源权限。",
|
11413
11413
|
"example": "[\"zone-2mzegj4vln5f\"]",
|
11414
11414
|
"member": "string",
|
11415
11415
|
"name": "ZoneIds",
|
@@ -12708,7 +12708,7 @@
|
|
12708
12708
|
"members": [
|
12709
12709
|
{
|
12710
12710
|
"disabled": false,
|
12711
|
-
"document": "站点ID。",
|
12711
|
+
"document": "站点 ID。",
|
12712
12712
|
"example": "\"zone-276zs184g93m\"",
|
12713
12713
|
"member": "string",
|
12714
12714
|
"name": "ZoneId",
|
@@ -12717,7 +12717,7 @@
|
|
12717
12717
|
},
|
12718
12718
|
{
|
12719
12719
|
"disabled": false,
|
12720
|
-
"document": "
|
12720
|
+
"document": "七层加速域名开启源站防护的模式。\n<li>all:针对站点下的所有七层加速域名开启。</li>\n<li>specific:针对站点下指定的七层加速域名开启。</li>当参数为空时,默认为 specific。",
|
12721
12721
|
"example": "\"specific\"",
|
12722
12722
|
"member": "string",
|
12723
12723
|
"name": "L7EnableMode",
|
@@ -12726,7 +12726,7 @@
|
|
12726
12726
|
},
|
12727
12727
|
{
|
12728
12728
|
"disabled": false,
|
12729
|
-
"document": "
|
12729
|
+
"document": "开启源站防护的七层加速域名列表,仅当参数 L7EnableMode 为 specific 时生效。L7EnableMode 为 all 时,请保留此参数为空。单次最大仅支持填写 200 个七层加速域名。",
|
12730
12730
|
"example": "[\"www.qq.com\"]",
|
12731
12731
|
"member": "string",
|
12732
12732
|
"name": "L7Hosts",
|
@@ -12735,7 +12735,7 @@
|
|
12735
12735
|
},
|
12736
12736
|
{
|
12737
12737
|
"disabled": false,
|
12738
|
-
"document": "
|
12738
|
+
"document": "四层代理实例开启源站防护的模式。\n<li>all:针对站点下的所有四层代理实例开启。</li>\n<li>specific:针对站点下指定的四层代理实例开启。</li>当参数为空时,默认为 specific。",
|
12739
12739
|
"example": "\"specific\"",
|
12740
12740
|
"member": "string",
|
12741
12741
|
"name": "L4EnableMode",
|
@@ -12744,7 +12744,7 @@
|
|
12744
12744
|
},
|
12745
12745
|
{
|
12746
12746
|
"disabled": false,
|
12747
|
-
"document": "
|
12747
|
+
"document": "开启源站防护的四层代理实例列表,仅当参数 L4EnableMode 为 specific 时生效。L4EnableMode 为 all 时,请保留此参数为空。单次最大仅支持填写 100 个四层代理实例。",
|
12748
12748
|
"example": "[\"proxy-19389e5dwwxfs\"]",
|
12749
12749
|
"member": "string",
|
12750
12750
|
"name": "L4ProxyIds",
|
@@ -19296,7 +19296,7 @@
|
|
19296
19296
|
"example": "\"zone-xxx\"",
|
19297
19297
|
"member": "string",
|
19298
19298
|
"name": "ZoneId",
|
19299
|
-
"
|
19299
|
+
"output_required": true,
|
19300
19300
|
"type": "string",
|
19301
19301
|
"value_allowed_null": false
|
19302
19302
|
},
|
@@ -19306,7 +19306,7 @@
|
|
19306
19306
|
"example": "[\"www.qq.com\",\"aaa.qq.com\"]",
|
19307
19307
|
"member": "string",
|
19308
19308
|
"name": "Hosts",
|
19309
|
-
"
|
19309
|
+
"output_required": true,
|
19310
19310
|
"type": "list",
|
19311
19311
|
"value_allowed_null": false
|
19312
19312
|
},
|
@@ -19316,7 +19316,7 @@
|
|
19316
19316
|
"example": "[\"proxy-xxx\"]",
|
19317
19317
|
"member": "string",
|
19318
19318
|
"name": "ProxyIds",
|
19319
|
-
"
|
19319
|
+
"output_required": true,
|
19320
19320
|
"type": "list",
|
19321
19321
|
"value_allowed_null": false
|
19322
19322
|
},
|
@@ -19326,7 +19326,7 @@
|
|
19326
19326
|
"example": "无",
|
19327
19327
|
"member": "IPWhitelist",
|
19328
19328
|
"name": "CurrentIPWhitelist",
|
19329
|
-
"
|
19329
|
+
"output_required": true,
|
19330
19330
|
"type": "object",
|
19331
19331
|
"value_allowed_null": true
|
19332
19332
|
},
|
@@ -19336,7 +19336,7 @@
|
|
19336
19336
|
"example": "true",
|
19337
19337
|
"member": "bool",
|
19338
19338
|
"name": "NeedUpdate",
|
19339
|
-
"
|
19339
|
+
"output_required": true,
|
19340
19340
|
"type": "bool",
|
19341
19341
|
"value_allowed_null": false
|
19342
19342
|
},
|
@@ -19346,7 +19346,7 @@
|
|
19346
19346
|
"example": "\"online\"",
|
19347
19347
|
"member": "string",
|
19348
19348
|
"name": "Status",
|
19349
|
-
"
|
19349
|
+
"output_required": true,
|
19350
19350
|
"type": "string",
|
19351
19351
|
"value_allowed_null": false
|
19352
19352
|
},
|
@@ -19356,7 +19356,7 @@
|
|
19356
19356
|
"example": "true",
|
19357
19357
|
"member": "bool",
|
19358
19358
|
"name": "PlanSupport",
|
19359
|
-
"
|
19359
|
+
"output_required": true,
|
19360
19360
|
"type": "bool",
|
19361
19361
|
"value_allowed_null": false
|
19362
19362
|
},
|
@@ -19366,7 +19366,7 @@
|
|
19366
19366
|
"example": "无",
|
19367
19367
|
"member": "DiffIPWhitelist",
|
19368
19368
|
"name": "DiffIPWhitelist",
|
19369
|
-
"
|
19369
|
+
"output_required": true,
|
19370
19370
|
"type": "object",
|
19371
19371
|
"value_allowed_null": true
|
19372
19372
|
}
|
@@ -19534,7 +19534,7 @@
|
|
19534
19534
|
},
|
19535
19535
|
{
|
19536
19536
|
"disabled": false,
|
19537
|
-
"document": "服务区域,取值有:\n<li>mainland: 中国大陆;</li>\n<li>overseas:
|
19537
|
+
"document": "服务区域,取值有:\n<li>mainland: 中国大陆;</li>\n<li>overseas: 全球(不包括中国大陆);</li>\n<li>global: 全球(包括中国大陆)。</li>",
|
19538
19538
|
"example": "oversea",
|
19539
19539
|
"member": "string",
|
19540
19540
|
"name": "Area",
|
@@ -19542,6 +19542,16 @@
|
|
19542
19542
|
"type": "string",
|
19543
19543
|
"value_allowed_null": false
|
19544
19544
|
},
|
19545
|
+
{
|
19546
|
+
"disabled": false,
|
19547
|
+
"document": "自动续费开关。取值有:\n<li>true: 已开启自动续费;</li>\n<li>false: 未开启自动续费。</li>",
|
19548
|
+
"example": "false",
|
19549
|
+
"member": "bool",
|
19550
|
+
"name": "AutoRenewal",
|
19551
|
+
"output_required": true,
|
19552
|
+
"type": "bool",
|
19553
|
+
"value_allowed_null": false
|
19554
|
+
},
|
19545
19555
|
{
|
19546
19556
|
"disabled": false,
|
19547
19557
|
"document": "套餐状态,取值有:\n<li>normal:正常状态;</li>\n<li>expiring-soon:即将到期状态;</li>\n<li>expired:到期状态;</li>\n<li>isolated:隔离状态;</li>\n<li>overdue-isolated:欠费隔离状态。</li>",
|
@@ -854,7 +854,7 @@
|
|
854
854
|
{
|
855
855
|
"document": "查询套餐信息列表,按照套餐生效时间排序,顺序为降序,从第0个套餐开始,拉取4个套餐信息。",
|
856
856
|
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePlans\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 4,\n \"Order\": \"enable-time\",\n \"Direction\": \"desc\"\n}",
|
857
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"55496a31-e798-4aef-b40c-5cdbaef7fe6f\",\n \"Plans\": [\n {\n \"Area\": \"overseas\",\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8ml4zpq\",\n \"PlanType\": \"plan-enterprise-v2\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": false,\n \"ZoneId\": \"zone-2ycvr8p31c5q\",\n \"ZoneName\": \"edgeone.icu\"\n }\n ],\n \"Bindable\": \"true\"\n },\n {\n \"Area\": \"global\",\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8p345am\",\n \"PlanType\": \"plan-enterprise-v2\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": false,\n \"ZoneId\": \"zone-2ycvr8p35jv2\",\n \"ZoneName\": \"edgeone.xyz\"\n }\n ],\n \"Bindable\": \"true\"\n },\n {\n \"Area\": \"overseas\",\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8p36yfi\",\n \"PlanType\": \"plan-enterprise\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": false,\n \"ZoneId\": \"zone-2ycvr8p38czy\",\n \"ZoneName\": \"edgeone.com\"\n }\n ],\n \"Bindable\": \"true\"\n },\n {\n \"Area\": \"overseas\",\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8p39rke\",\n \"PlanType\": \"plan-standard\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": true,\n \"ZoneId\": \"zone-2vv6990bixl1\",\n \"ZoneName\": \"edgeone.xyz\"\n }\n ],\n \"Bindable\": \"false\"\n }\n ],\n \"TotalCount\": 28\n }\n}",
|
857
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"55496a31-e798-4aef-b40c-5cdbaef7fe6f\",\n \"Plans\": [\n {\n \"Area\": \"overseas\",\n \"AutoRenewal\": false,\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8ml4zpq\",\n \"PlanType\": \"plan-enterprise-v2\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": false,\n \"ZoneId\": \"zone-2ycvr8p31c5q\",\n \"ZoneName\": \"edgeone.icu\"\n }\n ],\n \"Bindable\": \"true\"\n },\n {\n \"Area\": \"global\",\n \"AutoRenewal\": false,\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8p345am\",\n \"PlanType\": \"plan-enterprise-v2\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": false,\n \"ZoneId\": \"zone-2ycvr8p35jv2\",\n \"ZoneName\": \"edgeone.xyz\"\n }\n ],\n \"Bindable\": \"true\"\n },\n {\n \"Area\": \"overseas\",\n \"AutoRenewal\": false,\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8p36yfi\",\n \"PlanType\": \"plan-enterprise\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": false,\n \"ZoneId\": \"zone-2ycvr8p38czy\",\n \"ZoneName\": \"edgeone.com\"\n }\n ],\n \"Bindable\": \"true\"\n },\n {\n \"Area\": \"overseas\",\n \"AutoRenewal\": false,\n \"PayMode\": 0,\n \"PlanId\": \"edgeone-2ycvr8p39rke\",\n \"PlanType\": \"plan-standard\",\n \"Status\": \"normal\",\n \"DDoSTrafficCapacity\": 10000,\n \"AccTrafficCapacity\": 10000,\n \"CrossMLCTrafficCapacity\": 10000,\n \"ExpiredTime\": \"2020-09-22T00:00:00Z\",\n \"EnabledTime\": \"2020-10-22T00:00:00Z\",\n \"SecRequestCapacity\": 10000,\n \"SecTrafficCapacity\": 10000,\n \"SmartTrafficCapacity\": 10000,\n \"L4TrafficCapacity\": 10000,\n \"SmartRequestCapacity\": 10000,\n \"VAUCapacity\": 50,\n \"ZonesInfo\": [\n {\n \"Paused\": true,\n \"ZoneId\": \"zone-2vv6990bixl1\",\n \"ZoneName\": \"edgeone.xyz\"\n }\n ],\n \"Bindable\": \"false\"\n }\n ],\n \"TotalCount\": 28\n }\n}",
|
858
858
|
"title": "查询套餐信息列表"
|
859
859
|
}
|
860
860
|
],
|
@@ -1052,40 +1052,40 @@
|
|
1052
1052
|
],
|
1053
1053
|
"EnableOriginACL": [
|
1054
1054
|
{
|
1055
|
-
"document": "
|
1056
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L7EnableMode\": \"specific\",\n \"L7Hosts\": [\n \"www.qq.com\"\n ],\n \"L4EnableMode\": \"specific\",\n \"L4ProxyIds\": [\n \"
|
1055
|
+
"document": "ZoneId 为 'zone-276zs184g93m' 的站点开启源站防护,并配置七层加速域名‘www.qq.com’和四层代理实例‘sid-19389e5dwwxfs’启用特定回源 IP 网段回源。",
|
1056
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L7EnableMode\": \"specific\",\n \"L7Hosts\": [\n \"www.qq.com\"\n ],\n \"L4EnableMode\": \"specific\",\n \"L4ProxyIds\": [\n \"sid-19389e5dwwxfs\"\n ]\n}",
|
1057
1057
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9e0a2b4f-df6d-4d2a-ac39-1706cbf8a869\"\n }\n}",
|
1058
|
-
"title": "
|
1058
|
+
"title": "站点首次启用源站防护,并配置为指定七层加速域名/四层代理实例启用特定回源 IP 网段回源"
|
1059
1059
|
},
|
1060
1060
|
{
|
1061
|
-
"document": "
|
1062
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"
|
1061
|
+
"document": "ZoneId 为 'zone-276zs184g93m' 的站点开启源站防护,并配置七层加速域名‘www.qq.com’启用特定回源 IP 网段回源。",
|
1062
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L7EnableMode\": \"specific\",\n \"L7Hosts\": [\n \"www.qq.com\"\n ]\n}",
|
1063
1063
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9e0a2b4f-df6d-4d2a-ac39-1706cbf8a869\"\n }\n}",
|
1064
|
-
"title": "
|
1064
|
+
"title": "站点首次启用源站防护,并配置为指定七层加速域名启用特定回源 IP 网段回源"
|
1065
1065
|
},
|
1066
1066
|
{
|
1067
|
-
"document": "
|
1068
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"
|
1067
|
+
"document": "ZoneId 为 'zone-276zs184g93m' 的站点开启源站防护,并配置四层代理实例‘sid-19389e5dwwxfs’启用特定回源 IP 网段回源。",
|
1068
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L4EnableMode\": \"specific\",\n \"L4ProxyIds\": [\n \"sid-19389e5dwwxfs\"\n ]\n}",
|
1069
1069
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9e0a2b4f-df6d-4d2a-ac39-1706cbf8a869\"\n }\n}",
|
1070
|
-
"title": "
|
1070
|
+
"title": "站点首次启用源站防护,并配置为指定四层代理实例启用特定回源 IP 网段回源"
|
1071
1071
|
},
|
1072
1072
|
{
|
1073
|
-
"document": "
|
1074
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L7EnableMode\": \"all\"\n}",
|
1073
|
+
"document": "ZoneId 为 'zone-276zs184g93m' 的站点开启源站防护,并配置所有的七层加速域名和四层代理实例启用特定回源 IP 网段回源。",
|
1074
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L7EnableMode\": \"all\",\n \"L4EnableMode\": \"all\"\n}",
|
1075
1075
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9e0a2b4f-df6d-4d2a-ac39-1706wdf8a869\"\n }\n}",
|
1076
|
-
"title": "
|
1076
|
+
"title": "站点首次启用源站防护,并配置站点下所有七层加速域名和四层代理实例启用特定回源 IP 网段回源"
|
1077
1077
|
},
|
1078
1078
|
{
|
1079
|
-
"document": "
|
1080
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"
|
1079
|
+
"document": "ZoneId 为 'zone-276zs184g93m' 的站点开启源站防护,并配置所有的七层加速域名启用特定回源 IP 网段回源。",
|
1080
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L7EnableMode\": \"all\"\n}",
|
1081
1081
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9e0a2b4f-df6d-4d2a-ac39-1706wdf8a869\"\n }\n}",
|
1082
|
-
"title": "
|
1082
|
+
"title": "站点首次启用源站防护,并配置站点下所有七层加速域名启用特定回源 IP 网段回源"
|
1083
1083
|
},
|
1084
1084
|
{
|
1085
|
-
"document": "
|
1086
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"
|
1085
|
+
"document": "ZoneId 为 'zone-276zs184g93m' 的站点开启源站防护,并配置所有的四层代理实例启用特定回源 IP 网段回源。",
|
1086
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-276zs184g93m\",\n \"L4EnableMode\": \"all\"\n}",
|
1087
1087
|
"output": "{\n \"Response\": {\n \"RequestId\": \"9e0a2b4f-df6d-4d2a-ac39-1706wdf8a869\"\n }\n}",
|
1088
|
-
"title": "
|
1088
|
+
"title": "站点首次启用源站防护,并配置站点下所有四层代理实例启用特定回源 IP 网段回源"
|
1089
1089
|
}
|
1090
1090
|
],
|
1091
1091
|
"ExportZoneConfig": [
|
@@ -3087,7 +3087,7 @@ def doDescribeTrainingJobs(args, parsed_globals):
|
|
3087
3087
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3088
3088
|
|
3089
3089
|
|
3090
|
-
def
|
3090
|
+
def doDescribePlatformImages(args, parsed_globals):
|
3091
3091
|
g_param = parse_global_arg(parsed_globals)
|
3092
3092
|
|
3093
3093
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3116,11 +3116,11 @@ def doDeleteNotebookLifecycleScript(args, parsed_globals):
|
|
3116
3116
|
client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
|
3117
3117
|
client._sdkVersion += ("_CLI_" + __version__)
|
3118
3118
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3119
|
-
model = models.
|
3119
|
+
model = models.DescribePlatformImagesRequest()
|
3120
3120
|
model.from_json_string(json.dumps(args))
|
3121
3121
|
start_time = time.time()
|
3122
3122
|
while True:
|
3123
|
-
rsp = client.
|
3123
|
+
rsp = client.DescribePlatformImages(model)
|
3124
3124
|
result = rsp.to_json_string()
|
3125
3125
|
try:
|
3126
3126
|
json_obj = json.loads(result)
|
@@ -3711,6 +3711,58 @@ def doDescribeCodeRepository(args, parsed_globals):
|
|
3711
3711
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3712
3712
|
|
3713
3713
|
|
3714
|
+
def doDeleteNotebookLifecycleScript(args, parsed_globals):
|
3715
|
+
g_param = parse_global_arg(parsed_globals)
|
3716
|
+
|
3717
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3718
|
+
cred = credential.CVMRoleCredential()
|
3719
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3720
|
+
cred = credential.STSAssumeRoleCredential(
|
3721
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3722
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3723
|
+
)
|
3724
|
+
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):
|
3725
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3726
|
+
else:
|
3727
|
+
cred = credential.Credential(
|
3728
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3729
|
+
)
|
3730
|
+
http_profile = HttpProfile(
|
3731
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3732
|
+
reqMethod="POST",
|
3733
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3734
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3735
|
+
)
|
3736
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3737
|
+
if g_param[OptionsDefine.Language]:
|
3738
|
+
profile.language = g_param[OptionsDefine.Language]
|
3739
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3740
|
+
client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
|
3741
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3742
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3743
|
+
model = models.DeleteNotebookLifecycleScriptRequest()
|
3744
|
+
model.from_json_string(json.dumps(args))
|
3745
|
+
start_time = time.time()
|
3746
|
+
while True:
|
3747
|
+
rsp = client.DeleteNotebookLifecycleScript(model)
|
3748
|
+
result = rsp.to_json_string()
|
3749
|
+
try:
|
3750
|
+
json_obj = json.loads(result)
|
3751
|
+
except TypeError as e:
|
3752
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3753
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3754
|
+
break
|
3755
|
+
cur_time = time.time()
|
3756
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3757
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3758
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3759
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3760
|
+
else:
|
3761
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3762
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3763
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3764
|
+
|
3765
|
+
|
3714
3766
|
def doStopNotebook(args, parsed_globals):
|
3715
3767
|
g_param = parse_global_arg(parsed_globals)
|
3716
3768
|
|
@@ -3835,7 +3887,7 @@ ACTION_MAP = {
|
|
3835
3887
|
"DeleteCodeRepository": doDeleteCodeRepository,
|
3836
3888
|
"DescribeNotebookSummary": doDescribeNotebookSummary,
|
3837
3889
|
"DescribeTrainingJobs": doDescribeTrainingJobs,
|
3838
|
-
"
|
3890
|
+
"DescribePlatformImages": doDescribePlatformImages,
|
3839
3891
|
"DescribeBillingResourceGroup": doDescribeBillingResourceGroup,
|
3840
3892
|
"DescribeNotebook": doDescribeNotebook,
|
3841
3893
|
"DescribeNotebookInstance": doDescribeNotebookInstance,
|
@@ -3847,6 +3899,7 @@ ACTION_MAP = {
|
|
3847
3899
|
"DescribeCodeRepositories": doDescribeCodeRepositories,
|
3848
3900
|
"UpdateCodeRepository": doUpdateCodeRepository,
|
3849
3901
|
"DescribeCodeRepository": doDescribeCodeRepository,
|
3902
|
+
"DeleteNotebookLifecycleScript": doDeleteNotebookLifecycleScript,
|
3850
3903
|
"StopNotebook": doStopNotebook,
|
3851
3904
|
|
3852
3905
|
}
|