tccli 3.0.832.1__py2.py3-none-any.whl → 3.0.834.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/__init__.py +0 -3
- tccli/services/autoscaling/v20180419/api.json +1 -27
- tccli/services/autoscaling/v20180419/examples.json +5 -5
- tccli/services/bpaas/v20181217/api.json +9 -20
- tccli/services/ccc/v20200210/api.json +8 -11
- tccli/services/ccc/v20200210/examples.json +4 -4
- tccli/services/clb/v20180317/api.json +19 -91
- tccli/services/cls/v20201016/api.json +11 -24
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +368 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +9 -0
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +434 -0
- tccli/services/essbasic/v20210526/examples.json +16 -0
- tccli/services/gaap/v20180529/api.json +0 -5
- tccli/services/gaap/v20180529/examples.json +4 -4
- tccli/services/monitor/v20180724/api.json +49 -2
- tccli/services/monitor/v20180724/examples.json +9 -9
- tccli/services/mps/mps_client.py +53 -0
- tccli/services/mps/v20190612/api.json +307 -18
- tccli/services/mps/v20190612/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +119 -49
- tccli/services/tcbr/v20220217/api.json +9 -12
- tccli/services/tcbr/v20220217/examples.json +8 -2
- tccli/services/tdmq/v20200217/api.json +38 -38
- tccli/services/tke/v20180525/api.json +17 -48
- tccli/services/tke/v20180525/examples.json +10 -10
- tccli/services/trtc/v20190722/api.json +88 -3
- tccli/services/vod/v20180717/api.json +0 -14
- tccli/services/vod/v20180717/examples.json +4 -4
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +186 -40
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/METADATA +2 -2
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/RECORD +43 -45
- tccli/services/intlpartnersmgt/v20220928/api.json +0 -1054
- tccli/services/intlpartnersmgt/v20220928/examples.json +0 -93
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/top_level.txt +0 -0
@@ -308,6 +308,13 @@
|
|
308
308
|
"output": "DescribeReservedInstancesOfferingsResponse",
|
309
309
|
"status": "online"
|
310
310
|
},
|
311
|
+
"DescribeTaskInfo": {
|
312
|
+
"document": "本接口 (DescribeTaskInfo) 用于查询云服务器维修任务列表及详细信息。\n\n- 可以根据实例ID、实例名称或任务状态等信息来查询维修任务列表。过滤信息详情可参考入参说明。\n- 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的维修任务列表。\n\n默认接口请求频率限制:10次/秒。</br>",
|
313
|
+
"input": "DescribeTaskInfoRequest",
|
314
|
+
"name": "查询维修任务列表",
|
315
|
+
"output": "DescribeTaskInfoResponse",
|
316
|
+
"status": "online"
|
317
|
+
},
|
311
318
|
"DescribeZoneInstanceConfigInfos": {
|
312
319
|
"document": "本接口(DescribeZoneInstanceConfigInfos) 获取可用区的机型信息。",
|
313
320
|
"input": "DescribeZoneInstanceConfigInfosRequest",
|
@@ -3906,6 +3913,136 @@
|
|
3906
3913
|
],
|
3907
3914
|
"type": "object"
|
3908
3915
|
},
|
3916
|
+
"DescribeTaskInfoRequest": {
|
3917
|
+
"document": "DescribeTaskInfo请求参数结构体",
|
3918
|
+
"members": [
|
3919
|
+
{
|
3920
|
+
"document": "返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。",
|
3921
|
+
"example": "20",
|
3922
|
+
"member": "int64",
|
3923
|
+
"name": "Limit",
|
3924
|
+
"required": true,
|
3925
|
+
"type": "int"
|
3926
|
+
},
|
3927
|
+
{
|
3928
|
+
"document": "偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。",
|
3929
|
+
"example": "0",
|
3930
|
+
"member": "int64",
|
3931
|
+
"name": "Offset",
|
3932
|
+
"required": true,
|
3933
|
+
"type": "int"
|
3934
|
+
},
|
3935
|
+
{
|
3936
|
+
"document": "按照指定的产品类型查询,支持取值:\n\n- `CVM`:云服务器\n- `CDH`:专用宿主机\n- `CPM2.0`:裸金属云服务器\n\n未传入或为空时,默认查询全部产品类型。",
|
3937
|
+
"example": "CVM",
|
3938
|
+
"member": "string",
|
3939
|
+
"name": "Product",
|
3940
|
+
"required": false,
|
3941
|
+
"type": "string"
|
3942
|
+
},
|
3943
|
+
{
|
3944
|
+
"document": "按照一个或多个任务状态ID进行过滤。\n`TaskStatus`(任务状态ID)与任务状态中文名的对应关系如下:\n\n- `1`:待授权\n- `2`:处理中\n- `3`:已结束\n- `4`:已预约\n- `5`:已取消\n- `6`:已避免\n\n各任务状态的具体含义,可参考 [任务状态](https://cloud.tencent.com/document/product/213/67789#.E4.BB.BB.E5.8A.A1.E7.8A.B6.E6.80.81)。",
|
3945
|
+
"example": "[1, 2, 3, 4, 5, 6]",
|
3946
|
+
"member": "int64",
|
3947
|
+
"name": "TaskStatus",
|
3948
|
+
"required": false,
|
3949
|
+
"type": "list"
|
3950
|
+
},
|
3951
|
+
{
|
3952
|
+
"document": "按照一个或多个任务类型ID进行过滤。\n\n`TaskTypeId`(任务类型ID)与任务类型中文名的对应关系如下:\n\n- `101`:实例运行隐患\n- `102`:实例运行异常\n- `103`:实例硬盘异常\n- `104`:实例网络连接异常\n- `105`:实例运行预警\n- `106`:实例硬盘预警\n- `107`:实例维护升级\n\n各任务类型的具体含义,可参考 [维修任务分类](https://cloud.tencent.com/document/product/213/67789#.E7.BB.B4.E4.BF.AE.E4.BB.BB.E5.8A.A1.E5.88.86.E7.B1.BB)。",
|
3953
|
+
"example": "[101, 102, 103, 104, 105, 106, 107]",
|
3954
|
+
"member": "int64",
|
3955
|
+
"name": "TaskTypeIds",
|
3956
|
+
"required": false,
|
3957
|
+
"type": "list"
|
3958
|
+
},
|
3959
|
+
{
|
3960
|
+
"document": "按照一个或者多个任务ID查询。任务ID形如:`rep-xxxxxxxx`。",
|
3961
|
+
"example": "[\"rep-xxxxxxxx\"]",
|
3962
|
+
"member": "string",
|
3963
|
+
"name": "TaskIds",
|
3964
|
+
"required": false,
|
3965
|
+
"type": "list"
|
3966
|
+
},
|
3967
|
+
{
|
3968
|
+
"document": "按照一个或者多个实例ID查询。实例ID形如:`ins-xxxxxxxx`。",
|
3969
|
+
"example": "[\"ins-xxxxxxxx\"]",
|
3970
|
+
"member": "string",
|
3971
|
+
"name": "InstanceIds",
|
3972
|
+
"required": false,
|
3973
|
+
"type": "list"
|
3974
|
+
},
|
3975
|
+
{
|
3976
|
+
"document": "按照一个或者多个实例名称查询。",
|
3977
|
+
"example": "[\"test-1\"]",
|
3978
|
+
"member": "string",
|
3979
|
+
"name": "Aliases",
|
3980
|
+
"required": false,
|
3981
|
+
"type": "list"
|
3982
|
+
},
|
3983
|
+
{
|
3984
|
+
"document": "时间查询区间的起始位置,会根据`OrderField`中指定的字段进行过滤。未传入时默认为当天`00:00:00`。",
|
3985
|
+
"example": "2023-01-01 00:00:00",
|
3986
|
+
"member": "datetime",
|
3987
|
+
"name": "StartDate",
|
3988
|
+
"required": false,
|
3989
|
+
"type": "string"
|
3990
|
+
},
|
3991
|
+
{
|
3992
|
+
"document": "时间查询区间的终止位置,会根据`OrderField`中指定的字段进行过滤。未传入时默认为当前时刻。",
|
3993
|
+
"example": "2023-02-01 00:00:00",
|
3994
|
+
"member": "datetime",
|
3995
|
+
"name": "EndDate",
|
3996
|
+
"required": false,
|
3997
|
+
"type": "string"
|
3998
|
+
},
|
3999
|
+
{
|
4000
|
+
"document": "指定返回维修任务列表的排序字段,目前支持:\n\n- `CreateTime`:任务创建时间\n- `AuthTime`:任务授权时间\n- `EndTime`:任务结束时间\n\n未传入时或为空时,默认按`CreateTime`字段进行排序。",
|
4001
|
+
"example": "CreateTime",
|
4002
|
+
"member": "string",
|
4003
|
+
"name": "OrderField",
|
4004
|
+
"required": false,
|
4005
|
+
"type": "string"
|
4006
|
+
},
|
4007
|
+
{
|
4008
|
+
"document": "排序方式,目前支持:\n\n- `0`:升序(默认)\n- `1`:降序\n\n未传入或为空时,默认按升序排序。\n",
|
4009
|
+
"example": "1",
|
4010
|
+
"member": "int64",
|
4011
|
+
"name": "Order",
|
4012
|
+
"required": false,
|
4013
|
+
"type": "int"
|
4014
|
+
}
|
4015
|
+
],
|
4016
|
+
"type": "object"
|
4017
|
+
},
|
4018
|
+
"DescribeTaskInfoResponse": {
|
4019
|
+
"document": "DescribeTaskInfo返回参数结构体",
|
4020
|
+
"members": [
|
4021
|
+
{
|
4022
|
+
"document": "查询返回的维修任务总数量。",
|
4023
|
+
"example": "2",
|
4024
|
+
"member": "int64",
|
4025
|
+
"name": "TotalCount",
|
4026
|
+
"type": "int",
|
4027
|
+
"value_allowed_null": false
|
4028
|
+
},
|
4029
|
+
{
|
4030
|
+
"document": "查询返回的维修任务列表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4031
|
+
"example": "NA",
|
4032
|
+
"member": "RepairTaskInfo",
|
4033
|
+
"name": "RepairTaskInfoSet",
|
4034
|
+
"type": "list",
|
4035
|
+
"value_allowed_null": true
|
4036
|
+
},
|
4037
|
+
{
|
4038
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
4039
|
+
"member": "string",
|
4040
|
+
"name": "RequestId",
|
4041
|
+
"type": "string"
|
4042
|
+
}
|
4043
|
+
],
|
4044
|
+
"type": "object"
|
4045
|
+
},
|
3909
4046
|
"DescribeZoneInstanceConfigInfosRequest": {
|
3910
4047
|
"document": "DescribeZoneInstanceConfigInfos请求参数结构体",
|
3911
4048
|
"members": [
|
@@ -5052,6 +5189,15 @@
|
|
5052
5189
|
"name": "LicenseType",
|
5053
5190
|
"required": false,
|
5054
5191
|
"type": "string"
|
5192
|
+
},
|
5193
|
+
{
|
5194
|
+
"default": "",
|
5195
|
+
"document": "启动模式",
|
5196
|
+
"example": "Legacy BIOS",
|
5197
|
+
"member": "string",
|
5198
|
+
"name": "BootMode",
|
5199
|
+
"required": false,
|
5200
|
+
"type": "string"
|
5055
5201
|
}
|
5056
5202
|
],
|
5057
5203
|
"type": "object"
|
@@ -8802,6 +8948,228 @@
|
|
8802
8948
|
],
|
8803
8949
|
"type": "object"
|
8804
8950
|
},
|
8951
|
+
"RepairTaskInfo": {
|
8952
|
+
"document": "描述维修任务的相关信息",
|
8953
|
+
"members": [
|
8954
|
+
{
|
8955
|
+
"document": "维修任务ID",
|
8956
|
+
"example": "rep-xxxxxxxx",
|
8957
|
+
"member": "string",
|
8958
|
+
"name": "TaskId",
|
8959
|
+
"required": true,
|
8960
|
+
"type": "string",
|
8961
|
+
"value_allowed_null": false
|
8962
|
+
},
|
8963
|
+
{
|
8964
|
+
"document": "实例ID",
|
8965
|
+
"example": "ins-xxxxxxxx",
|
8966
|
+
"member": "string",
|
8967
|
+
"name": "InstanceId",
|
8968
|
+
"required": true,
|
8969
|
+
"type": "string",
|
8970
|
+
"value_allowed_null": false
|
8971
|
+
},
|
8972
|
+
{
|
8973
|
+
"document": "实例名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
8974
|
+
"example": "test",
|
8975
|
+
"member": "string",
|
8976
|
+
"name": "Alias",
|
8977
|
+
"required": true,
|
8978
|
+
"type": "string",
|
8979
|
+
"value_allowed_null": true
|
8980
|
+
},
|
8981
|
+
{
|
8982
|
+
"document": "任务类型ID,与任务类型中文名的对应关系如下:\n\n- `101`:实例运行隐患\n- `102`:实例运行异常\n- `103`:实例硬盘异常\n- `104`:实例网络连接异常\n- `105`:实例运行预警\n- `106`:实例硬盘预警\n- `107`:实例维护升级\n\n各任务类型的具体含义,可参考 [维修任务分类](https://cloud.tencent.com/document/product/213/67789#.E7.BB.B4.E4.BF.AE.E4.BB.BB.E5.8A.A1.E5.88.86.E7.B1.BB)。",
|
8983
|
+
"example": "101",
|
8984
|
+
"member": "uint64",
|
8985
|
+
"name": "TaskTypeId",
|
8986
|
+
"required": true,
|
8987
|
+
"type": "int",
|
8988
|
+
"value_allowed_null": false
|
8989
|
+
},
|
8990
|
+
{
|
8991
|
+
"document": "任务类型中文名",
|
8992
|
+
"example": "实例运行隐患",
|
8993
|
+
"member": "string",
|
8994
|
+
"name": "TaskTypeName",
|
8995
|
+
"required": false,
|
8996
|
+
"type": "string",
|
8997
|
+
"value_allowed_null": false
|
8998
|
+
},
|
8999
|
+
{
|
9000
|
+
"document": "任务状态ID,与任务状态中文名的对应关系如下:\n\n- `1`:待授权\n- `2`:处理中\n- `3`:已结束\n- `4`:已预约\n- `5`:已取消\n- `6`:已避免\n\n各任务状态的具体含义,可参考 [任务状态](https://cloud.tencent.com/document/product/213/67789#.E4.BB.BB.E5.8A.A1.E7.8A.B6.E6.80.81)。",
|
9001
|
+
"example": "1",
|
9002
|
+
"member": "uint64",
|
9003
|
+
"name": "TaskStatus",
|
9004
|
+
"required": true,
|
9005
|
+
"type": "int",
|
9006
|
+
"value_allowed_null": false
|
9007
|
+
},
|
9008
|
+
{
|
9009
|
+
"document": "设备状态ID,与设备状态中文名的对应关系如下:\n\n- `1`:故障中\n- `2`:处理中\n- `3`:正常\n- `4`:已预约\n- `5`:已取消\n- `6`:已避免",
|
9010
|
+
"example": "1",
|
9011
|
+
"member": "uint64",
|
9012
|
+
"name": "DeviceStatus",
|
9013
|
+
"required": false,
|
9014
|
+
"type": "int",
|
9015
|
+
"value_allowed_null": false
|
9016
|
+
},
|
9017
|
+
{
|
9018
|
+
"document": "操作状态ID,与操作状态中文名的对应关系如下:\n\n- `1`:未授权\n- `2`:已授权\n- `3`:已处理\n- `4`:已预约\n- `5`:已取消\n- `6`:已避免",
|
9019
|
+
"example": "1",
|
9020
|
+
"member": "uint64",
|
9021
|
+
"name": "OperateStatus",
|
9022
|
+
"required": false,
|
9023
|
+
"type": "int",
|
9024
|
+
"value_allowed_null": false
|
9025
|
+
},
|
9026
|
+
{
|
9027
|
+
"document": "任务创建时间",
|
9028
|
+
"example": "2017-01-01 12:00:00",
|
9029
|
+
"member": "datetime",
|
9030
|
+
"name": "CreateTime",
|
9031
|
+
"required": true,
|
9032
|
+
"type": "string",
|
9033
|
+
"value_allowed_null": false
|
9034
|
+
},
|
9035
|
+
{
|
9036
|
+
"document": "任务授权时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
9037
|
+
"example": "2017-01-03 12:00:00",
|
9038
|
+
"member": "datetime",
|
9039
|
+
"name": "AuthTime",
|
9040
|
+
"required": true,
|
9041
|
+
"type": "string",
|
9042
|
+
"value_allowed_null": true
|
9043
|
+
},
|
9044
|
+
{
|
9045
|
+
"document": "任务结束时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
9046
|
+
"example": "2017-01-03 14:00:00",
|
9047
|
+
"member": "datetime",
|
9048
|
+
"name": "EndTime",
|
9049
|
+
"required": true,
|
9050
|
+
"type": "string",
|
9051
|
+
"value_allowed_null": true
|
9052
|
+
},
|
9053
|
+
{
|
9054
|
+
"document": "任务详情\n注意:此字段可能返回 null,表示取不到有效值。",
|
9055
|
+
"example": "监控到您的云服务器存在隐患,可能导致云服务器高负载或宕机。为尽快修复隐患,需要您授权我们在线迁移。感谢您的支持与理解。",
|
9056
|
+
"member": "string",
|
9057
|
+
"name": "TaskDetail",
|
9058
|
+
"required": true,
|
9059
|
+
"type": "string",
|
9060
|
+
"value_allowed_null": true
|
9061
|
+
},
|
9062
|
+
{
|
9063
|
+
"document": "可用区\n注意:此字段可能返回 null,表示取不到有效值。",
|
9064
|
+
"example": "ap-guangzhou-7",
|
9065
|
+
"member": "string",
|
9066
|
+
"name": "Zone",
|
9067
|
+
"required": true,
|
9068
|
+
"type": "string",
|
9069
|
+
"value_allowed_null": true
|
9070
|
+
},
|
9071
|
+
{
|
9072
|
+
"document": "地域\n注意:此字段可能返回 null,表示取不到有效值。",
|
9073
|
+
"example": "ap-guangzhou",
|
9074
|
+
"member": "string",
|
9075
|
+
"name": "Region",
|
9076
|
+
"required": true,
|
9077
|
+
"type": "string",
|
9078
|
+
"value_allowed_null": true
|
9079
|
+
},
|
9080
|
+
{
|
9081
|
+
"document": "所在私有网络ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
9082
|
+
"example": "vpc-xxxxxxxx",
|
9083
|
+
"member": "string",
|
9084
|
+
"name": "VpcId",
|
9085
|
+
"required": false,
|
9086
|
+
"type": "string",
|
9087
|
+
"value_allowed_null": true
|
9088
|
+
},
|
9089
|
+
{
|
9090
|
+
"document": "所在私有网络名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
9091
|
+
"example": "Default-VPC",
|
9092
|
+
"member": "string",
|
9093
|
+
"name": "VpcName",
|
9094
|
+
"required": false,
|
9095
|
+
"type": "string",
|
9096
|
+
"value_allowed_null": true
|
9097
|
+
},
|
9098
|
+
{
|
9099
|
+
"document": "所在子网ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
9100
|
+
"example": "subnet-xxxxxxxx",
|
9101
|
+
"member": "string",
|
9102
|
+
"name": "SubnetId",
|
9103
|
+
"required": false,
|
9104
|
+
"type": "string",
|
9105
|
+
"value_allowed_null": true
|
9106
|
+
},
|
9107
|
+
{
|
9108
|
+
"document": "所在子网名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
9109
|
+
"example": "Default-Subnet",
|
9110
|
+
"member": "string",
|
9111
|
+
"name": "SubnetName",
|
9112
|
+
"required": false,
|
9113
|
+
"type": "string",
|
9114
|
+
"value_allowed_null": true
|
9115
|
+
},
|
9116
|
+
{
|
9117
|
+
"document": "实例公网IP\n注意:此字段可能返回 null,表示取不到有效值。",
|
9118
|
+
"example": "11.22.33.44",
|
9119
|
+
"member": "string",
|
9120
|
+
"name": "WanIp",
|
9121
|
+
"required": false,
|
9122
|
+
"type": "string",
|
9123
|
+
"value_allowed_null": true
|
9124
|
+
},
|
9125
|
+
{
|
9126
|
+
"document": "实例内网IP\n注意:此字段可能返回 null,表示取不到有效值。",
|
9127
|
+
"example": "10.10.1.9",
|
9128
|
+
"member": "string",
|
9129
|
+
"name": "LanIp",
|
9130
|
+
"required": false,
|
9131
|
+
"type": "string",
|
9132
|
+
"value_allowed_null": true
|
9133
|
+
},
|
9134
|
+
{
|
9135
|
+
"document": "产品类型,支持取值:\n\n- `CVM`:云服务器\n- `CDH`:专用宿主机\n- `CPM2.0`:裸金属云服务器\n注意:此字段可能返回 null,表示取不到有效值。",
|
9136
|
+
"example": "CVM",
|
9137
|
+
"member": "string",
|
9138
|
+
"name": "Product",
|
9139
|
+
"required": false,
|
9140
|
+
"type": "string",
|
9141
|
+
"value_allowed_null": true
|
9142
|
+
},
|
9143
|
+
{
|
9144
|
+
"document": "任务子类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
9145
|
+
"example": "NA",
|
9146
|
+
"member": "string",
|
9147
|
+
"name": "TaskSubType",
|
9148
|
+
"required": false,
|
9149
|
+
"type": "string",
|
9150
|
+
"value_allowed_null": true
|
9151
|
+
},
|
9152
|
+
{
|
9153
|
+
"document": "任务授权类型",
|
9154
|
+
"example": "1",
|
9155
|
+
"member": "uint64",
|
9156
|
+
"name": "AuthType",
|
9157
|
+
"required": false,
|
9158
|
+
"type": "int",
|
9159
|
+
"value_allowed_null": false
|
9160
|
+
},
|
9161
|
+
{
|
9162
|
+
"document": "授权渠道,支持取值:\n\n- `Waiting_auth`:待授权\n- `Customer_auth`:客户操作授权\n- `System_mandatory_auth`:系统默认授权\n- `Pre_policy_auth`:预置策略授权",
|
9163
|
+
"example": "Customer_auth",
|
9164
|
+
"member": "string",
|
9165
|
+
"name": "AuthSource",
|
9166
|
+
"required": false,
|
9167
|
+
"type": "string",
|
9168
|
+
"value_allowed_null": false
|
9169
|
+
}
|
9170
|
+
],
|
9171
|
+
"usage": "out"
|
9172
|
+
},
|
8805
9173
|
"ReservedInstanceConfigInfoItem": {
|
8806
9174
|
"document": "预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。",
|
8807
9175
|
"members": [
|
@@ -376,6 +376,14 @@
|
|
376
376
|
"title": "列出可购买预留实例计费"
|
377
377
|
}
|
378
378
|
],
|
379
|
+
"DescribeTaskInfo": [
|
380
|
+
{
|
381
|
+
"document": "根据以下条件,查询并获取维修任务返回列表:\n\n- 任务的创建时间在 `2023-03-01 00:00:00` ~ `2023-04-01 00:00:00` 范围内。\n- 任务当前的状态为`待授权`。\n- 返回的任务列表按照`CreateTime`创建时间降序返回,偏移量为`0`,最多返回`20`条数据。",
|
382
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskInfo\n<公共请求参数>\n\n{\n \"StartDate\": \"2023-03-01 00:00:00\",\n \"EndDate\": \"2023-04-01 00:00:00\",\n \"TaskStatus\": [\n 1\n ],\n \"Limit\": 20,\n \"Offset\": 0,\n \"OrderField\": \"CreateTime\",\n \"Order\": 1\n}",
|
383
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"RepairTaskInfoSet\": [\n {\n \"TaskId\": \"rep-xxxxxxxx\",\n \"InstanceId\": \"ins-xxxxxxxx\",\n \"Alias\": \"test-1\",\n \"TaskTypeId\": 107,\n \"TaskStatus\": 1,\n \"CreateTime\": \"2023-03-08 12:00:00\",\n \"AuthTime\": \"2023-03-10 12:00:00\",\n \"EndTime\": null,\n \"TaskDetail\": \"监控到您的云服务器因底层宿主机架构、软件升级需要发起在线维护,处理过程中云服务器可能出现短时间高负载或者网络抖动。为尽快完成维护以提升实例性能及安全性,需要您授权我们在线维护。感谢您的支持与理解。\",\n \"DeviceStatus\": 1,\n \"OperateStatus\": 1,\n \"Zone\": \"ap-guangzhou-7\",\n \"Region\": \"ap-guangzhou\",\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"SubnetName\": \"Default-Subnet\",\n \"VpcName\": \"Default-VPC\",\n \"AuthSource\": \"System_mandatory_auth\",\n \"WanIp\": \"xxx.xxx.xxx.xxx\",\n \"LanIp\": \"xxx.xxx.xxx.xxx\",\n \"TaskTypeName\": \"实例维护升级\",\n \"TaskSubType\": null,\n \"AuthType\": 6,\n \"Product\": \"CVM\"\n },\n {\n \"TaskId\": \"rep-xxxxxxxx\",\n \"InstanceId\": \"ins-xxxxxxxx\",\n \"Alias\": \"test-2\",\n \"TaskTypeId\": 101,\n \"TaskStatus\": 1,\n \"CreateTime\": \"2023-03-07 12:00:00\",\n \"AuthTime\": \"2023-03-09 12:00:00\",\n \"EndTime\": null,\n \"TaskDetail\": \"监控到您的云服务器存在隐患,可能导致云服务器高负载或宕机。为尽快修复隐患,需要您授权我们停机处理。感谢您的支持与理解。\",\n \"DeviceStatus\": 1,\n \"OperateStatus\": 1,\n \"Zone\": \"ap-guangzhou-7\",\n \"Region\": \"ap-guangzhou\",\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"SubnetName\": \"Default-Subnet\",\n \"VpcName\": \"Default-VPC\",\n \"AuthSource\": \"System_mandatory_auth\",\n \"WanIp\": \"xxx.xxx.xxx.xxx\",\n \"LanIp\": \"xxx.xxx.xxx.xxx\",\n \"TaskTypeName\": \"实例运行隐患\",\n \"TaskSubType\": null,\n \"AuthType\": 2,\n \"Product\": \"CVM\"\n }\n ],\n \"RequestId\": \"4dc8d1d7-bd0f-4216-b7c5-e8a13d6a850c\"\n }\n}",
|
384
|
+
"title": "查询待授权的维修任务列表"
|
385
|
+
}
|
386
|
+
],
|
379
387
|
"DescribeZoneInstanceConfigInfos": [
|
380
388
|
{
|
381
389
|
"document": "通过可用区和付费类型作为过滤条件, 查询配置信息列表。",
|
@@ -9467,6 +9467,15 @@
|
|
9467
9467
|
"name": "Uuids",
|
9468
9468
|
"required": false,
|
9469
9469
|
"type": "list"
|
9470
|
+
},
|
9471
|
+
{
|
9472
|
+
"default": "",
|
9473
|
+
"document": "扫描超时时长 ,单位秒",
|
9474
|
+
"example": "3600",
|
9475
|
+
"member": "uint64",
|
9476
|
+
"name": "TimeoutPeriod",
|
9477
|
+
"required": false,
|
9478
|
+
"type": "int"
|
9470
9479
|
}
|
9471
9480
|
],
|
9472
9481
|
"type": "object"
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"CreateEmergencyVulScan": [
|
36
36
|
{
|
37
37
|
"document": "漏洞管理 - 应急漏洞检测",
|
38
|
-
"input": "
|
38
|
+
"input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEmergencyVulScan\n<公共请求参数>\n\n{\n \"VulId\": \"1\"\n}",
|
39
39
|
"output": "{\n \"Response\": {\n \"RequestId\": \"42342314\"\n }\n}",
|
40
40
|
"title": "漏洞管理 -应急漏洞检测"
|
41
41
|
}
|
@@ -3763,6 +3763,58 @@ def doCreateConsoleLoginUrl(args, parsed_globals):
|
|
3763
3763
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3764
3764
|
|
3765
3765
|
|
3766
|
+
def doChannelCreatePrepareFlow(args, parsed_globals):
|
3767
|
+
g_param = parse_global_arg(parsed_globals)
|
3768
|
+
|
3769
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3770
|
+
cred = credential.CVMRoleCredential()
|
3771
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3772
|
+
cred = credential.STSAssumeRoleCredential(
|
3773
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3774
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
3775
|
+
)
|
3776
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3777
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3778
|
+
else:
|
3779
|
+
cred = credential.Credential(
|
3780
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3781
|
+
)
|
3782
|
+
http_profile = HttpProfile(
|
3783
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3784
|
+
reqMethod="POST",
|
3785
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3786
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3787
|
+
)
|
3788
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3789
|
+
if g_param[OptionsDefine.Language]:
|
3790
|
+
profile.language = g_param[OptionsDefine.Language]
|
3791
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3792
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
3793
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3794
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3795
|
+
model = models.ChannelCreatePrepareFlowRequest()
|
3796
|
+
model.from_json_string(json.dumps(args))
|
3797
|
+
start_time = time.time()
|
3798
|
+
while True:
|
3799
|
+
rsp = client.ChannelCreatePrepareFlow(model)
|
3800
|
+
result = rsp.to_json_string()
|
3801
|
+
try:
|
3802
|
+
json_obj = json.loads(result)
|
3803
|
+
except TypeError as e:
|
3804
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3805
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3806
|
+
break
|
3807
|
+
cur_time = time.time()
|
3808
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3809
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3810
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3811
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3812
|
+
else:
|
3813
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3814
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3815
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3816
|
+
|
3817
|
+
|
3766
3818
|
def doChannelCreateBatchCancelFlowUrl(args, parsed_globals):
|
3767
3819
|
g_param = parse_global_arg(parsed_globals)
|
3768
3820
|
|
@@ -4595,6 +4647,58 @@ def doSyncProxyOrganizationOperators(args, parsed_globals):
|
|
4595
4647
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4596
4648
|
|
4597
4649
|
|
4650
|
+
def doChannelCreateEmbedWebUrl(args, parsed_globals):
|
4651
|
+
g_param = parse_global_arg(parsed_globals)
|
4652
|
+
|
4653
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4654
|
+
cred = credential.CVMRoleCredential()
|
4655
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4656
|
+
cred = credential.STSAssumeRoleCredential(
|
4657
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4658
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
4659
|
+
)
|
4660
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
4661
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4662
|
+
else:
|
4663
|
+
cred = credential.Credential(
|
4664
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4665
|
+
)
|
4666
|
+
http_profile = HttpProfile(
|
4667
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4668
|
+
reqMethod="POST",
|
4669
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4670
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4671
|
+
)
|
4672
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4673
|
+
if g_param[OptionsDefine.Language]:
|
4674
|
+
profile.language = g_param[OptionsDefine.Language]
|
4675
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4676
|
+
client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile)
|
4677
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4678
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4679
|
+
model = models.ChannelCreateEmbedWebUrlRequest()
|
4680
|
+
model.from_json_string(json.dumps(args))
|
4681
|
+
start_time = time.time()
|
4682
|
+
while True:
|
4683
|
+
rsp = client.ChannelCreateEmbedWebUrl(model)
|
4684
|
+
result = rsp.to_json_string()
|
4685
|
+
try:
|
4686
|
+
json_obj = json.loads(result)
|
4687
|
+
except TypeError as e:
|
4688
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4689
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4690
|
+
break
|
4691
|
+
cur_time = time.time()
|
4692
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4693
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4694
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4695
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4696
|
+
else:
|
4697
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4698
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4699
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4700
|
+
|
4701
|
+
|
4598
4702
|
def doDescribeSeals(args, parsed_globals):
|
4599
4703
|
g_param = parse_global_arg(parsed_globals)
|
4600
4704
|
|
@@ -4784,6 +4888,7 @@ ACTION_MAP = {
|
|
4784
4888
|
"ChannelCreateSealPolicy": doChannelCreateSealPolicy,
|
4785
4889
|
"CheckFaceIdentify": doCheckFaceIdentify,
|
4786
4890
|
"CreateConsoleLoginUrl": doCreateConsoleLoginUrl,
|
4891
|
+
"ChannelCreatePrepareFlow": doChannelCreatePrepareFlow,
|
4787
4892
|
"ChannelCreateBatchCancelFlowUrl": doChannelCreateBatchCancelFlowUrl,
|
4788
4893
|
"SyncProxyOrganization": doSyncProxyOrganization,
|
4789
4894
|
"ChannelUpdateSealStatus": doChannelUpdateSealStatus,
|
@@ -4800,6 +4905,7 @@ ACTION_MAP = {
|
|
4800
4905
|
"OperateChannelTemplate": doOperateChannelTemplate,
|
4801
4906
|
"CheckBankCard3EVerification": doCheckBankCard3EVerification,
|
4802
4907
|
"SyncProxyOrganizationOperators": doSyncProxyOrganizationOperators,
|
4908
|
+
"ChannelCreateEmbedWebUrl": doChannelCreateEmbedWebUrl,
|
4803
4909
|
"DescribeSeals": doDescribeSeals,
|
4804
4910
|
"CreateServerFlowSign": doCreateServerFlowSign,
|
4805
4911
|
|