tccli 3.0.827.1__py2.py3-none-any.whl → 3.0.829.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/autoscaling/v20180419/api.json +14 -14
- tccli/services/cam/v20190116/api.json +16 -9
- tccli/services/cam/v20190116/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +6 -6
- tccli/services/cdn/v20180606/examples.json +4 -4
- tccli/services/cloudstudio/cloudstudio_client.py +53 -0
- tccli/services/cloudstudio/v20210524/api.json +89 -0
- tccli/services/cloudstudio/v20210524/examples.json +8 -0
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/ess/v20201111/api.json +9 -0
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +134 -383
- tccli/services/essbasic/v20210526/examples.json +89 -95
- tccli/services/faceid/v20180301/api.json +19 -33
- tccli/services/ic/v20190307/api.json +1 -1
- tccli/services/ims/ims_client.py +53 -0
- tccli/services/ims/v20200713/api.json +3 -23
- tccli/services/ims/v20200713/examples.json +2 -2
- tccli/services/ims/v20201229/api.json +107 -2
- tccli/services/ims/v20201229/examples.json +10 -2
- tccli/services/live/v20180801/api.json +2 -6
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +50 -51
- tccli/services/mongodb/v20190725/examples.json +1 -1
- tccli/services/mrs/v20200910/api.json +8130 -2302
- tccli/services/mrs/v20200910/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +32 -134
- tccli/services/ocr/v20181119/examples.json +15 -15
- tccli/services/pts/v20210728/api.json +27 -78
- tccli/services/sqlserver/v20180328/api.json +5 -5
- tccli/services/sslpod/v20190605/api.json +1 -1
- tccli/services/tem/v20210701/api.json +1 -1
- tccli/services/tione/v20191022/api.json +1 -1
- tccli/services/tione/v20211111/api.json +1 -1
- tccli/services/tke/v20180525/api.json +26 -32
- tccli/services/tke/v20180525/examples.json +9 -9
- tccli/services/trtc/v20190722/api.json +3 -25
- tccli/services/vpc/v20170312/api.json +60 -51
- tccli/services/vpc/v20170312/examples.json +17 -17
- {tccli-3.0.827.1.dist-info → tccli-3.0.829.1.dist-info}/METADATA +2 -2
- {tccli-3.0.827.1.dist-info → tccli-3.0.829.1.dist-info}/RECORD +46 -46
- {tccli-3.0.827.1.dist-info → tccli-3.0.829.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.827.1.dist-info → tccli-3.0.829.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.827.1.dist-info → tccli-3.0.829.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.827.1.dist-info → tccli-3.0.829.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.829.1'
|
@@ -3631,8 +3631,8 @@
|
|
3631
3631
|
"document": "实例信息",
|
3632
3632
|
"members": [
|
3633
3633
|
{
|
3634
|
-
"default": "",
|
3635
3634
|
"document": "实例ID",
|
3635
|
+
"example": "ins-089dlszs",
|
3636
3636
|
"member": "string",
|
3637
3637
|
"name": "InstanceId",
|
3638
3638
|
"required": true,
|
@@ -3640,8 +3640,8 @@
|
|
3640
3640
|
"value_allowed_null": false
|
3641
3641
|
},
|
3642
3642
|
{
|
3643
|
-
"default": "",
|
3644
3643
|
"document": "伸缩组ID",
|
3644
|
+
"example": "asg-02ofd40a",
|
3645
3645
|
"member": "string",
|
3646
3646
|
"name": "AutoScalingGroupId",
|
3647
3647
|
"required": true,
|
@@ -3649,8 +3649,8 @@
|
|
3649
3649
|
"value_allowed_null": false
|
3650
3650
|
},
|
3651
3651
|
{
|
3652
|
-
"default": "",
|
3653
3652
|
"document": "启动配置ID",
|
3653
|
+
"example": "asc-23yf98ie",
|
3654
3654
|
"member": "string",
|
3655
3655
|
"name": "LaunchConfigurationId",
|
3656
3656
|
"required": true,
|
@@ -3658,8 +3658,8 @@
|
|
3658
3658
|
"value_allowed_null": false
|
3659
3659
|
},
|
3660
3660
|
{
|
3661
|
-
"default": "",
|
3662
3661
|
"document": "启动配置名称",
|
3662
|
+
"example": "测试asc-01_2.3",
|
3663
3663
|
"member": "string",
|
3664
3664
|
"name": "LaunchConfigurationName",
|
3665
3665
|
"required": true,
|
@@ -3667,8 +3667,8 @@
|
|
3667
3667
|
"value_allowed_null": false
|
3668
3668
|
},
|
3669
3669
|
{
|
3670
|
-
"
|
3671
|
-
"
|
3670
|
+
"document": "生命周期状态,取值如下:<br>\n<li>IN_SERVICE:运行中\n<li>CREATING:创建中\n<li>CREATION_FAILED:创建失败\n<li>TERMINATING:中止中\n<li>TERMINATION_FAILED:中止失败\n<li>ATTACHING:绑定中\n<li>ATTACH_FAILED:绑定失败\n<li>DETACHING:解绑中\n<li>DETACH_FAILED:解绑失败\n<li>ATTACHING_LB:绑定LB中\n<li>DETACHING_LB:解绑LB中\n<li>MODIFYING_LB:修改LB中\n<li>STARTING:开机中\n<li>START_FAILED:开机失败\n<li>STOPPING:关机中\n<li>STOP_FAILED:关机失败\n<li>STOPPED:已关机\n<li>IN_LAUNCHING_HOOK:扩容生命周期挂钩中\n<li>IN_TERMINATING_HOOK:缩容生命周期挂钩中",
|
3671
|
+
"example": "IN_SERVICE",
|
3672
3672
|
"member": "string",
|
3673
3673
|
"name": "LifeCycleState",
|
3674
3674
|
"required": true,
|
@@ -3676,8 +3676,8 @@
|
|
3676
3676
|
"value_allowed_null": false
|
3677
3677
|
},
|
3678
3678
|
{
|
3679
|
-
"default": "",
|
3680
3679
|
"document": "健康状态,取值包括HEALTHY和UNHEALTHY",
|
3680
|
+
"example": "HEALTHY",
|
3681
3681
|
"member": "string",
|
3682
3682
|
"name": "HealthStatus",
|
3683
3683
|
"required": true,
|
@@ -3685,8 +3685,8 @@
|
|
3685
3685
|
"value_allowed_null": false
|
3686
3686
|
},
|
3687
3687
|
{
|
3688
|
-
"default": "",
|
3689
3688
|
"document": "是否加入缩容保护",
|
3689
|
+
"example": "false",
|
3690
3690
|
"member": "bool",
|
3691
3691
|
"name": "ProtectedFromScaleIn",
|
3692
3692
|
"required": true,
|
@@ -3694,8 +3694,8 @@
|
|
3694
3694
|
"value_allowed_null": false
|
3695
3695
|
},
|
3696
3696
|
{
|
3697
|
-
"default": "",
|
3698
3697
|
"document": "可用区",
|
3698
|
+
"example": "ap-guangzhou-1",
|
3699
3699
|
"member": "string",
|
3700
3700
|
"name": "Zone",
|
3701
3701
|
"required": true,
|
@@ -3703,8 +3703,8 @@
|
|
3703
3703
|
"value_allowed_null": false
|
3704
3704
|
},
|
3705
3705
|
{
|
3706
|
-
"default": "",
|
3707
3706
|
"document": "创建类型,取值包括AUTO_CREATION, MANUAL_ATTACHING。",
|
3707
|
+
"example": "AUTO_CREATION",
|
3708
3708
|
"member": "string",
|
3709
3709
|
"name": "CreationType",
|
3710
3710
|
"required": true,
|
@@ -3712,8 +3712,8 @@
|
|
3712
3712
|
"value_allowed_null": false
|
3713
3713
|
},
|
3714
3714
|
{
|
3715
|
-
"default": "",
|
3716
3715
|
"document": "实例加入时间",
|
3716
|
+
"example": "2023-01-13T03:06:25Z",
|
3717
3717
|
"member": "datetime_iso",
|
3718
3718
|
"name": "AddTime",
|
3719
3719
|
"required": true,
|
@@ -3721,8 +3721,8 @@
|
|
3721
3721
|
"value_allowed_null": false
|
3722
3722
|
},
|
3723
3723
|
{
|
3724
|
-
"default": "",
|
3725
3724
|
"document": "实例类型",
|
3725
|
+
"example": "S3.MEDIUM2",
|
3726
3726
|
"member": "string",
|
3727
3727
|
"name": "InstanceType",
|
3728
3728
|
"required": true,
|
@@ -3730,8 +3730,8 @@
|
|
3730
3730
|
"value_allowed_null": false
|
3731
3731
|
},
|
3732
3732
|
{
|
3733
|
-
"default": "",
|
3734
3733
|
"document": "版本号",
|
3734
|
+
"example": "1",
|
3735
3735
|
"member": "int64",
|
3736
3736
|
"name": "VersionNumber",
|
3737
3737
|
"required": true,
|
@@ -3739,8 +3739,8 @@
|
|
3739
3739
|
"value_allowed_null": false
|
3740
3740
|
},
|
3741
3741
|
{
|
3742
|
-
"default": "",
|
3743
3742
|
"document": "伸缩组名称",
|
3743
|
+
"example": "测试asg-01_2.3",
|
3744
3744
|
"member": "string",
|
3745
3745
|
"name": "AutoScalingGroupName",
|
3746
3746
|
"required": true,
|
@@ -3574,7 +3574,6 @@
|
|
3574
3574
|
"document": "GetUser请求参数结构体",
|
3575
3575
|
"members": [
|
3576
3576
|
{
|
3577
|
-
"default": "",
|
3578
3577
|
"document": "子用户用户名",
|
3579
3578
|
"example": "test124",
|
3580
3579
|
"member": "string",
|
@@ -3593,7 +3592,6 @@
|
|
3593
3592
|
"example": "100000546533",
|
3594
3593
|
"member": "uint64",
|
3595
3594
|
"name": "Uin",
|
3596
|
-
"required": true,
|
3597
3595
|
"type": "int",
|
3598
3596
|
"value_allowed_null": false
|
3599
3597
|
},
|
@@ -3602,7 +3600,6 @@
|
|
3602
3600
|
"example": "test124",
|
3603
3601
|
"member": "string",
|
3604
3602
|
"name": "Name",
|
3605
|
-
"required": true,
|
3606
3603
|
"type": "string",
|
3607
3604
|
"value_allowed_null": false
|
3608
3605
|
},
|
@@ -3611,7 +3608,6 @@
|
|
3611
3608
|
"example": "1001774",
|
3612
3609
|
"member": "uint64",
|
3613
3610
|
"name": "Uid",
|
3614
|
-
"required": true,
|
3615
3611
|
"type": "int",
|
3616
3612
|
"value_allowed_null": false
|
3617
3613
|
},
|
@@ -3620,7 +3616,6 @@
|
|
3620
3616
|
"example": "test",
|
3621
3617
|
"member": "string",
|
3622
3618
|
"name": "Remark",
|
3623
|
-
"required": true,
|
3624
3619
|
"type": "string",
|
3625
3620
|
"value_allowed_null": true
|
3626
3621
|
},
|
@@ -3629,7 +3624,6 @@
|
|
3629
3624
|
"example": "1",
|
3630
3625
|
"member": "uint64",
|
3631
3626
|
"name": "ConsoleLogin",
|
3632
|
-
"required": true,
|
3633
3627
|
"type": "int",
|
3634
3628
|
"value_allowed_null": false
|
3635
3629
|
},
|
@@ -3638,7 +3632,6 @@
|
|
3638
3632
|
"example": "10086",
|
3639
3633
|
"member": "string",
|
3640
3634
|
"name": "PhoneNum",
|
3641
|
-
"required": true,
|
3642
3635
|
"type": "string",
|
3643
3636
|
"value_allowed_null": false
|
3644
3637
|
},
|
@@ -3647,7 +3640,6 @@
|
|
3647
3640
|
"example": "86",
|
3648
3641
|
"member": "string",
|
3649
3642
|
"name": "CountryCode",
|
3650
|
-
"required": true,
|
3651
3643
|
"type": "string",
|
3652
3644
|
"value_allowed_null": false
|
3653
3645
|
},
|
@@ -3656,10 +3648,25 @@
|
|
3656
3648
|
"example": "123@qq.com",
|
3657
3649
|
"member": "string",
|
3658
3650
|
"name": "Email",
|
3659
|
-
"required": true,
|
3660
3651
|
"type": "string",
|
3661
3652
|
"value_allowed_null": false
|
3662
3653
|
},
|
3654
|
+
{
|
3655
|
+
"document": "最近一次登录ip\n注意:此字段可能返回 null,表示取不到有效值。",
|
3656
|
+
"example": "1.1.1.1",
|
3657
|
+
"member": "string",
|
3658
|
+
"name": "RecentlyLoginIP",
|
3659
|
+
"type": "string",
|
3660
|
+
"value_allowed_null": true
|
3661
|
+
},
|
3662
|
+
{
|
3663
|
+
"document": "最近一次登录时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
3664
|
+
"example": "2023-02-27 14:59:08",
|
3665
|
+
"member": "string",
|
3666
|
+
"name": "RecentlyLoginTime",
|
3667
|
+
"type": "string",
|
3668
|
+
"value_allowed_null": true
|
3669
|
+
},
|
3663
3670
|
{
|
3664
3671
|
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
3665
3672
|
"member": "string",
|
@@ -400,9 +400,9 @@
|
|
400
400
|
],
|
401
401
|
"GetUser": [
|
402
402
|
{
|
403
|
-
"document": "",
|
403
|
+
"document": "查询子用户信息",
|
404
404
|
"input": "POST / HTTP/1.1\nHost: cam.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetUser\n<公共请求参数>\n\n{\n \"Name\": \"test124\"\n}",
|
405
|
-
"output": "{\n \"Response\": {\n \"Uin\": 100000546533,\n \"Name\": \"test124\",\n \"Uid\": 1001774,\n \"Remark\": \"test\",\n \"ConsoleLogin\": 1,\n \"PhoneNum\": \"10086\",\n \"CountryCode\": \"86\",\n \"Email\": \"123@qq.com\",\n \"RequestId\": \"33674182-e53d-416b-b6ce-bd7e7536b5d6\"\n }\n}",
|
405
|
+
"output": "{\n \"Response\": {\n \"Uin\": 100000546533,\n \"Name\": \"test124\",\n \"Uid\": 1001774,\n \"Remark\": \"test\",\n \"ConsoleLogin\": 1,\n \"PhoneNum\": \"10086\",\n \"CountryCode\": \"86\",\n \"Email\": \"123@qq.com\",\n \"RecentlyLoginIP\": \"1.1.1.1\",\n \"RecentlyLoginTime\": \"2023-02-27 14:59:08\",\n \"RequestId\": \"33674182-e53d-416b-b6ce-bd7e7536b5d6\"\n }\n}",
|
406
406
|
"title": "查询子用户"
|
407
407
|
}
|
408
408
|
],
|
@@ -22,9 +22,9 @@
|
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
24
|
"CreateDiagnoseUrl": {
|
25
|
-
"document": "CreateDiagnoseUrl 用于添加域名诊断任务URL",
|
25
|
+
"document": "CreateDiagnoseUrl 用于添加域名诊断任务URL, <font color=red>将于 **2023年5月31日** 下线</font><br>",
|
26
26
|
"input": "CreateDiagnoseUrlRequest",
|
27
|
-
"name": "添加诊断URL",
|
27
|
+
"name": "添加诊断URL(即将下线)",
|
28
28
|
"output": "CreateDiagnoseUrlResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
@@ -141,9 +141,9 @@
|
|
141
141
|
"status": "online"
|
142
142
|
},
|
143
143
|
"DescribeDiagnoseReport": {
|
144
|
-
"document": "DescribeDiagnoseReport 用于获取指定报告id
|
144
|
+
"document": "DescribeDiagnoseReport 用于获取指定报告id的内容, <font color=red>将于 **2023年5月31日** 下线</font><br>",
|
145
145
|
"input": "DescribeDiagnoseReportRequest",
|
146
|
-
"name": "获取诊断报告",
|
146
|
+
"name": "获取诊断报告(即将下线)",
|
147
147
|
"output": "DescribeDiagnoseReportResponse",
|
148
148
|
"status": "online"
|
149
149
|
},
|
@@ -386,9 +386,9 @@
|
|
386
386
|
"status": "online"
|
387
387
|
},
|
388
388
|
"ListDiagnoseReport": {
|
389
|
-
"document": "ListDiagnoseReport 用于获取用户诊断URL
|
389
|
+
"document": "ListDiagnoseReport 用于获取用户诊断URL访问后各个子任务的简要详情, <font color=red>将于 **2023年5月31日** 下线</font><br>",
|
390
390
|
"input": "ListDiagnoseReportRequest",
|
391
|
-
"name": "获取诊断任务列表",
|
391
|
+
"name": "获取诊断任务列表(即将下线)",
|
392
392
|
"output": "ListDiagnoseReportResponse",
|
393
393
|
"status": "online"
|
394
394
|
},
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"CreateDiagnoseUrl": [
|
34
34
|
{
|
35
35
|
"document": "",
|
36
|
-
"input": "
|
36
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDiagnoseUrl\n<公共请求参数>\n\n{\n \"Url\": \"http://www.test.com/test.txt\"\n}",
|
37
37
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b3eee570-0d5f-46b2-89a3-160f4e654eaf\",\n \"DiagnoseLink\": \"http://cdn.cloud.tencent.com/self_diagnose/a49ecccd\"\n }\n}",
|
38
38
|
"title": "添加诊断URL"
|
39
39
|
}
|
@@ -169,8 +169,8 @@
|
|
169
169
|
"DescribeDiagnoseReport": [
|
170
170
|
{
|
171
171
|
"document": "",
|
172
|
-
"input": "
|
173
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"b3eee570-0d5f-46b2-89a3-160f4e654eaf\",\n \"BaskInfo\": {\n \"Data\": [\n {\n \"Key\": \"report_id\",\n \"KeyText\": \"报告ID\",\n \"Value\": \"123\",\n \"ValueText\": \"123\"\n },\n {\n \"Key\": \"diagnose_url\",\n \"KeyText\": \"诊断URL\",\n \"Value\": \"http://www.test.com/1.txt\",\n \"ValueText\": \"http://www.test.com/1.txt\"\n },\n {\n \"Key\": \"diagnose_time\",\n \"KeyText\": \"诊断时间\",\n \"Value\": \"2020-09-21 12:00:16\",\n \"ValueText\": \"2020-09-21 12:00:16\"\n }\n ],\n \"Status\": \"ok\"\n },\n \"CnameInfo\": {\n \"Status\": \"ok\",\n \"Data\": [\n {\n \"Key\": \"cname\",\n \"KeyText\": \"解析配置\",\n \"Value\": \"
|
172
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDiagnoseReport\n<公共请求参数>\n\n{\n \"ReportId\": \"123\"\n}",
|
173
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b3eee570-0d5f-46b2-89a3-160f4e654eaf\",\n \"BaskInfo\": {\n \"Data\": [\n {\n \"Key\": \"report_id\",\n \"KeyText\": \"报告ID\",\n \"Value\": \"123\",\n \"ValueText\": \"123\"\n },\n {\n \"Key\": \"diagnose_url\",\n \"KeyText\": \"诊断URL\",\n \"Value\": \"http://www.test.com/1.txt\",\n \"ValueText\": \"http://www.test.com/1.txt\"\n },\n {\n \"Key\": \"diagnose_time\",\n \"KeyText\": \"诊断时间\",\n \"Value\": \"2020-09-21 12:00:16\",\n \"ValueText\": \"2020-09-21 12:00:16\"\n }\n ],\n \"Status\": \"ok\"\n },\n \"CnameInfo\": {\n \"Status\": \"ok\",\n \"Data\": [\n {\n \"Key\": \"cname\",\n \"KeyText\": \"解析配置\",\n \"Value\": \"CNAMEu2003www.test.com.cdn.dnsv1.com<br>\",\n \"ValueText\": \"CNAMEu2003www.test.com.cdn.dnsv1.com<br>\"\n }\n ]\n },\n \"ClientInfo\": {\n \"Status\": \"ok\",\n \"Data\": [\n {\n \"Key\": \"ip\",\n \"KeyText\": \"客户端IP\",\n \"Value\": \"1.1.1.1\",\n \"ValueText\": \"1.1.1.1\"\n },\n {\n \"Key\": \"prov_isp\",\n \"KeyText\": \"所在区域\",\n \"Value\": \"广东省-中国电信\",\n \"ValueText\": \"广东省-中国电信\"\n },\n {\n \"Key\": \"request\",\n \"KeyText\": \"请求详情\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n }\n ]\n },\n \"DnsInfo\": {\n \"Data\": [\n {\n \"Key\": \"dns\",\n \"KeyText\": \"DNS IP\",\n \"Value\": \"183.3.229.15u2003广东省-中国电信<br>219.133.40.12u2003广东省-中国电信<br>\",\n \"ValueText\": \"183.3.229.15u2003广东省-中国电信<br>219.133.40.12u2003广东省-中国电信<br>\"\n }\n ],\n \"Status\": \"ok\"\n },\n \"NetworkInfo\": {\n \"Status\": \"ok\",\n \"Data\": [\n {\n \"Key\": \"network\",\n \"KeyText\": \"探测延迟\",\n \"Value\": \"123ms\",\n \"ValueText\": \"123ms\"\n }\n ]\n },\n \"OcNodeInfo\": {\n \"Status\": \"error\",\n \"Data\": [\n {\n \"Key\": \"ip\",\n \"KeyText\": \"节点IP\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"area\",\n \"KeyText\": \"所在区域\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"code\",\n \"KeyText\": \"状态码\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"md5\",\n \"KeyText\": \"文件MD5\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"hit\",\n \"KeyText\": \"命中情况\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"solution\",\n \"KeyText\": \"解决方案\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n }\n ]\n },\n \"MidNodeInfo\": {\n \"Data\": [\n {\n \"Key\": \"ip\",\n \"KeyText\": \"节点IP\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"area\",\n \"KeyText\": \"所在区域\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"hit\",\n \"KeyText\": \"命中情况\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n }\n ],\n \"Status\": \"initial\"\n },\n \"OriginInfo\": {\n \"Status\": \"initial\",\n \"Data\": [\n {\n \"Key\": \"ip\",\n \"KeyText\": \"源站IP\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"area\",\n \"KeyText\": \"所在区域\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"fwd_host\",\n \"KeyText\": \"回源host\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"code\",\n \"KeyText\": \"状态码\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n },\n {\n \"Key\": \"md5\",\n \"KeyText\": \"文件MD5\",\n \"Value\": \"--\",\n \"ValueText\": \"--\"\n }\n ]\n },\n \"PurgeInfo\": {\n \"Status\": \"ok\",\n \"Data\": [\n {\n \"Key\": \"purge\",\n \"KeyText\": \"刷新详情\",\n \"Value\": \"检测中\",\n \"ValueText\": \"检测中\"\n },\n {\n \"Key\": \"solution\",\n \"KeyText\": \"解决方案\",\n \"Value\": \"无需检测\",\n \"ValueText\": \"无需检测\"\n }\n ]\n }\n }\n}",
|
174
174
|
"title": "获取诊断报告"
|
175
175
|
}
|
176
176
|
],
|
@@ -449,7 +449,7 @@
|
|
449
449
|
"ListDiagnoseReport": [
|
450
450
|
{
|
451
451
|
"document": "",
|
452
|
-
"input": "
|
452
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListDiagnoseReport\n<公共请求参数>\n\n{\n \"KeyWords\": \"test.com/\"\n}",
|
453
453
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b3eee570-0d5f-46b2-89a3-160f4e654eaf\",\n \"Data\": [\n {\n \"DiagnoseUrl\": \"http://www.test.com/2.txt\",\n \"DiagnoseLink\": \"http://cdn.cloud.tencent.com/self_diagnose/xx2\",\n \"CreateTime\": \"2020-09-21 12:00:08\",\n \"ExpireDate\": \"2020-09-22 12:00:08\",\n \"Area\": \"manland\",\n \"VisitCount\": 9,\n \"ClientList\": [\n {\n \"CreateTime\": \"2020-09-21 12:00:16\",\n \"ReportId\": \"1\",\n \"DiagnoseTag\": \"xx2\",\n \"ClientInfo\": [\n {\n \"ProvName\": \"广东省\",\n \"Country\": \"中国\",\n \"IspName\": \"中国电信\",\n \"Ip\": \"1.1.1.1\"\n }\n ],\n \"FinalDiagnose\": 2\n }\n ]\n }\n ]\n }\n}",
|
454
454
|
"title": "获取诊断任务列表"
|
455
455
|
}
|
@@ -329,6 +329,58 @@ def doDescribeWorkspaceEnvList(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
+
def doCreateWorkspaceTemporaryToken(args, parsed_globals):
|
333
|
+
g_param = parse_global_arg(parsed_globals)
|
334
|
+
|
335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
336
|
+
cred = credential.CVMRoleCredential()
|
337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
338
|
+
cred = credential.STSAssumeRoleCredential(
|
339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
341
|
+
)
|
342
|
+
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):
|
343
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
344
|
+
else:
|
345
|
+
cred = credential.Credential(
|
346
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
347
|
+
)
|
348
|
+
http_profile = HttpProfile(
|
349
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
350
|
+
reqMethod="POST",
|
351
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
352
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
353
|
+
)
|
354
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
355
|
+
if g_param[OptionsDefine.Language]:
|
356
|
+
profile.language = g_param[OptionsDefine.Language]
|
357
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
358
|
+
client = mod.CloudstudioClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.CreateWorkspaceTemporaryTokenRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.CreateWorkspaceTemporaryToken(model)
|
366
|
+
result = rsp.to_json_string()
|
367
|
+
try:
|
368
|
+
json_obj = json.loads(result)
|
369
|
+
except TypeError as e:
|
370
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
371
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
372
|
+
break
|
373
|
+
cur_time = time.time()
|
374
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
375
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
376
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
377
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
378
|
+
else:
|
379
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
380
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
381
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
|
+
|
383
|
+
|
332
384
|
def doCreateWorkspaceByTemplate(args, parsed_globals):
|
333
385
|
g_param = parse_global_arg(parsed_globals)
|
334
386
|
|
@@ -1074,6 +1126,7 @@ ACTION_MAP = {
|
|
1074
1126
|
"ModifyCustomizeTemplateVersionControl": doModifyCustomizeTemplateVersionControl,
|
1075
1127
|
"ModifyCustomizeTemplatesPartById": doModifyCustomizeTemplatesPartById,
|
1076
1128
|
"DescribeWorkspaceEnvList": doDescribeWorkspaceEnvList,
|
1129
|
+
"CreateWorkspaceTemporaryToken": doCreateWorkspaceTemporaryToken,
|
1077
1130
|
"CreateWorkspaceByTemplate": doCreateWorkspaceByTemplate,
|
1078
1131
|
"DescribeCustomizeTemplates": doDescribeCustomizeTemplates,
|
1079
1132
|
"DescribeCustomizeTemplatesPresets": doDescribeCustomizeTemplatesPresets,
|
@@ -28,6 +28,13 @@
|
|
28
28
|
"output": "CreateWorkspaceByVersionControlResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
|
+
"CreateWorkspaceTemporaryToken": {
|
32
|
+
"document": "为工作空间创建临时访问凭证,重复调用会创建新的 Token,旧的 Token 将会自动失效",
|
33
|
+
"input": "CreateWorkspaceTemporaryTokenRequest",
|
34
|
+
"name": "为工作空间创建临时访问凭证",
|
35
|
+
"output": "CreateWorkspaceTemporaryTokenResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
31
38
|
"DeleteCustomizeTemplatesById": {
|
32
39
|
"document": "删除自定义模板",
|
33
40
|
"input": "DeleteCustomizeTemplatesByIdRequest",
|
@@ -434,6 +441,40 @@
|
|
434
441
|
],
|
435
442
|
"type": "object"
|
436
443
|
},
|
444
|
+
"CreateWorkspaceTemporaryTokenRequest": {
|
445
|
+
"document": "CreateWorkspaceTemporaryToken请求参数结构体",
|
446
|
+
"members": [
|
447
|
+
{
|
448
|
+
"document": "创建工作空间凭证 DTO",
|
449
|
+
"example": "无",
|
450
|
+
"member": "WorkspaceTokenDTO",
|
451
|
+
"name": "WorkspaceTokenDTO",
|
452
|
+
"required": true,
|
453
|
+
"type": "object"
|
454
|
+
}
|
455
|
+
],
|
456
|
+
"type": "object"
|
457
|
+
},
|
458
|
+
"CreateWorkspaceTemporaryTokenResponse": {
|
459
|
+
"document": "CreateWorkspaceTemporaryToken返回参数结构体",
|
460
|
+
"members": [
|
461
|
+
{
|
462
|
+
"document": "工作空间临时访问 token 信息",
|
463
|
+
"example": "无",
|
464
|
+
"member": "WorkspaceTokenInfoV0",
|
465
|
+
"name": "Data",
|
466
|
+
"type": "object",
|
467
|
+
"value_allowed_null": false
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
471
|
+
"member": "string",
|
472
|
+
"name": "RequestId",
|
473
|
+
"type": "string"
|
474
|
+
}
|
475
|
+
],
|
476
|
+
"type": "object"
|
477
|
+
},
|
437
478
|
"CustomizeTemplatesPresetsInfo": {
|
438
479
|
"document": "模板的预置参数",
|
439
480
|
"members": [
|
@@ -2430,6 +2471,54 @@
|
|
2430
2471
|
}
|
2431
2472
|
],
|
2432
2473
|
"usage": "out"
|
2474
|
+
},
|
2475
|
+
"WorkspaceTokenDTO": {
|
2476
|
+
"document": "创建临时工作空间凭证 DTO",
|
2477
|
+
"members": [
|
2478
|
+
{
|
2479
|
+
"document": "工作空间 SpaceKey\n注意:此字段可能返回 null,表示取不到有效值。",
|
2480
|
+
"example": "knhwex",
|
2481
|
+
"member": "string",
|
2482
|
+
"name": "SpaceKey",
|
2483
|
+
"required": false,
|
2484
|
+
"type": "string",
|
2485
|
+
"value_allowed_null": true
|
2486
|
+
},
|
2487
|
+
{
|
2488
|
+
"document": "token过期时间,单位是秒,默认 3600\n注意:此字段可能返回 null,表示取不到有效值。",
|
2489
|
+
"example": "3600",
|
2490
|
+
"member": "uint64",
|
2491
|
+
"name": "TokenExpiredLimitSec",
|
2492
|
+
"required": false,
|
2493
|
+
"type": "int",
|
2494
|
+
"value_allowed_null": true
|
2495
|
+
}
|
2496
|
+
],
|
2497
|
+
"usage": "in"
|
2498
|
+
},
|
2499
|
+
"WorkspaceTokenInfoV0": {
|
2500
|
+
"document": "获取工作空间临时访问 token 出参",
|
2501
|
+
"members": [
|
2502
|
+
{
|
2503
|
+
"document": "访问工作空间临时凭证",
|
2504
|
+
"example": "83c99d6a03aa94f5e7bbfb4eded0de0b1153f44d05126d34b5f36e8343eca973",
|
2505
|
+
"member": "string",
|
2506
|
+
"name": "Token",
|
2507
|
+
"required": true,
|
2508
|
+
"type": "string",
|
2509
|
+
"value_allowed_null": false
|
2510
|
+
},
|
2511
|
+
{
|
2512
|
+
"document": "token 过期时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
2513
|
+
"example": "2023-02-13T12:33:48 GMT+08:00",
|
2514
|
+
"member": "string",
|
2515
|
+
"name": "ExpiredTime",
|
2516
|
+
"required": true,
|
2517
|
+
"type": "string",
|
2518
|
+
"value_allowed_null": true
|
2519
|
+
}
|
2520
|
+
],
|
2521
|
+
"usage": "out"
|
2433
2522
|
}
|
2434
2523
|
},
|
2435
2524
|
"version": "1.0"
|
@@ -32,6 +32,14 @@
|
|
32
32
|
"title": "CreateWorkspaceByVersionControl"
|
33
33
|
}
|
34
34
|
],
|
35
|
+
"CreateWorkspaceTemporaryToken": [
|
36
|
+
{
|
37
|
+
"document": "为工作空间创建临时访问凭证,重复调用会创建新的 Token,旧的 Token 将会自动失效",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: cloudstudio.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWorkspaceTemporaryToken\n<公共请求参数>\n\n{\n \"WorkspaceTokenDTO\": {\n \"SpaceKey\": \"xx\",\n \"TokenExpiredLimitSec\": 3600\n }\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Token\": \"83c99d6a03aa94f5e7bbfb4eded0de0b1153f44d05126d34b5f36e8343eca973\",\n \"ExpiredTime\": \"2023-02-13T12:33:48 GMT+08:00\"\n },\n \"RequestId\": \"xx\"\n }\n}",
|
40
|
+
"title": "为工作空间创建临时访问凭证"
|
41
|
+
}
|
42
|
+
],
|
35
43
|
"DeleteCustomizeTemplatesById": [
|
36
44
|
{
|
37
45
|
"document": "",
|
@@ -610,7 +610,7 @@
|
|
610
610
|
"status": "online"
|
611
611
|
},
|
612
612
|
"RunInstances": {
|
613
|
-
"document": "本接口 (RunInstances) 用于创建一个或多个指定配置的实例。\n\n* 实例创建成功后将自动开机启动,[实例状态](https://cloud.tencent.com/document/product/213/15753#InstanceStatus)变为“运行中”。\n* 预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。\n* 调用本接口创建实例,支持代金券自动抵扣(注意,代金券不可用于抵扣后付费冻结金额),详情请参考[代金券选用规则](https://cloud.tencent.com/document/product/555/7428)。\n* 本接口允许购买的实例数量遵循[CVM实例购买限制](https://cloud.tencent.com/document/product/213/2664),所创建的实例和官网入口创建的实例共用配额。\n* 本接口为异步接口,当创建实例请求下发成功后会返回一个实例`ID`列表和一个`RequestId`,此时创建实例操作并未立即完成。在此期间实例的状态将会处于“PENDING”,实例创建结果可以通过调用 [DescribeInstancesStatus](https://cloud.tencent.com/document/product/213/15738) 接口查询,如果实例状态(InstanceState)由“PENDING(创建中)”变为“RUNNING(运行中)”,则代表实例创建成功,“LAUNCH_FAILED”代表实例创建失败。",
|
613
|
+
"document": "本接口 (RunInstances) 用于创建一个或多个指定配置的实例。\n \n* 实例创建成功后将自动开机启动,[实例状态](https://cloud.tencent.com/document/product/213/15753#InstanceStatus)变为“运行中”。\n* 预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。\n* 调用本接口创建实例,支持代金券自动抵扣(注意,代金券不可用于抵扣后付费冻结金额),详情请参考[代金券选用规则](https://cloud.tencent.com/document/product/555/7428)。\n* 本接口允许购买的实例数量遵循[CVM实例购买限制](https://cloud.tencent.com/document/product/213/2664),所创建的实例和官网入口创建的实例共用配额。\n* 本接口为异步接口,当创建实例请求下发成功后会返回一个实例`ID`列表和一个`RequestId`,此时创建实例操作并未立即完成。在此期间实例的状态将会处于“PENDING”,实例创建结果可以通过调用 [DescribeInstancesStatus](https://cloud.tencent.com/document/product/213/15738) 接口查询,如果实例状态(InstanceState)由“PENDING(创建中)”变为“RUNNING(运行中)”,则代表实例创建成功,“LAUNCH_FAILED”代表实例创建失败。",
|
614
614
|
"input": "RunInstancesRequest",
|
615
615
|
"name": "创建实例",
|
616
616
|
"output": "RunInstancesResponse",
|
@@ -1218,6 +1218,15 @@
|
|
1218
1218
|
"name": "Approvers",
|
1219
1219
|
"required": true,
|
1220
1220
|
"type": "list"
|
1221
|
+
},
|
1222
|
+
{
|
1223
|
+
"default": "",
|
1224
|
+
"document": "企微消息中的发起人",
|
1225
|
+
"example": "无",
|
1226
|
+
"member": "string",
|
1227
|
+
"name": "Initiator",
|
1228
|
+
"required": false,
|
1229
|
+
"type": "string"
|
1221
1230
|
}
|
1222
1231
|
],
|
1223
1232
|
"type": "object"
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"CreateFlowApprovers": [
|
64
64
|
{
|
65
65
|
"document": "",
|
66
|
-
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowApprovers\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"\"\n },\n \"FlowId\": \"flow_id_xxxxx\",\n \"Approvers\": [\n {\n \"RecipientId\": \"RecipientId_1\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"Zhangsan\"\n },\n {\n \"RecipientId\": \"RecipientId_1\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"Lisi\"\n },\n {\n \"RecipientId\": \"RecipientId_2\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"Wangwu\"\n },\n {\n \"RecipientId\": \"RecipientId_2\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"ZhaoLiu\"\n }\n ]\n}",
|
66
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowApprovers\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"\"\n },\n \"FlowId\": \"flow_id_xxxxx\",\n \"Initiator\": \"xxx\",\n \"Approvers\": [\n {\n \"RecipientId\": \"RecipientId_1\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"Zhangsan\"\n },\n {\n \"RecipientId\": \"RecipientId_1\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"Lisi\"\n },\n {\n \"RecipientId\": \"RecipientId_2\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"Wangwu\"\n },\n {\n \"RecipientId\": \"RecipientId_2\",\n \"ApproverSource\": \"WEWORK\",\n \"CustomUserId\": \"ZhaoLiu\"\n }\n ]\n}",
|
67
67
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2846e98d-7f-d2632a7fceef\"\n }\n}",
|
68
68
|
"title": "测试"
|
69
69
|
}
|