tccli 3.0.1243.1__py2.py3-none-any.whl → 3.0.1245.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/aca/v20210323/api.json +107 -107
- tccli/services/aca/v20210323/examples.json +5 -5
- tccli/services/asr/v20190614/examples.json +6 -6
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cdwdoris/v20211228/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +185 -156
- tccli/services/cls/v20201016/examples.json +5 -5
- tccli/services/cvm/v20170312/api.json +8 -8
- tccli/services/cvm/v20170312/examples.json +4 -4
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +145 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dts/v20211206/api.json +9 -0
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/api.json +30 -0
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/monitor/v20180724/api.json +55 -0
- tccli/services/scf/scf_client.py +118 -65
- tccli/services/scf/v20180416/api.json +570 -475
- tccli/services/scf/v20180416/examples.json +52 -44
- tccli/services/tcb/v20180608/api.json +13 -13
- tccli/services/tcm/v20210413/api.json +52 -48
- tccli/services/tcm/v20210413/examples.json +7 -7
- tccli/services/tcr/v20190924/api.json +435 -407
- tccli/services/tcr/v20190924/examples.json +49 -49
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20180525/api.json +1544 -1258
- tccli/services/tke/v20180525/examples.json +165 -165
- tccli/services/tke/v20220501/api.json +16 -16
- tccli/services/tke/v20220501/examples.json +2 -2
- tccli/services/trocket/trocket_client.py +57 -4
- tccli/services/trocket/v20230308/api.json +143 -51
- tccli/services/trocket/v20230308/examples.json +11 -3
- tccli/services/vclm/v20240523/api.json +3 -3
- tccli/services/vpc/v20170312/api.json +182 -154
- tccli/services/vpc/v20170312/examples.json +12 -34
- tccli/services/waf/v20180125/api.json +1 -1
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/license_files/LICENSE +0 -0
@@ -19,13 +19,13 @@
|
|
19
19
|
"CreateCustomDomain": [
|
20
20
|
{
|
21
21
|
"document": "创建一个自定义域名,关闭了waf防护,路由配置开启重写策略,该策略是通配符匹配替换。",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.ccc.com\",\n \"Protocol\": \"HTTP&HTTPS\",\n \"CertConfig\": {\n \"CertificateId\": \"BxxJ3DK7\"\n },\n \"EndpointsConfig\": [\n {\n \"PathMatch\": \"/aa/*\",\n \"Namespace\": \"default\",\n \"FunctionName\": \"test1\",\n \"Qualifier\": \"$LATEST\",\n \"PathRewrite\": [\n {\n \"Path\": \"/aa/bb/*\",\n \"Type\": \"WildcardRules\",\n \"Rewrite\": \"/$\"\n }\n ]\n }\n ],\n \"WafConfig\": {\n \"WafOpen\": \"CLOSE\",\n \"WafInstanceId\": \"\"\n }\n}",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.ccc.com\",\n \"Protocol\": \"HTTP&HTTPS\",\n \"CertConfig\": {\n \"CertificateId\": \"BxxJ3DK7\"\n },\n \"EndpointsConfig\": [\n {\n \"PathMatch\": \"/aa/*\",\n \"Namespace\": \"default\",\n \"FunctionName\": \"test1\",\n \"Qualifier\": \"$LATEST\",\n \"PathRewrite\": [\n {\n \"Path\": \"/aa/bb/*\",\n \"Type\": \"WildcardRules\",\n \"Rewrite\": \"/$\"\n }\n ]\n }\n ],\n \"WafConfig\": {\n \"WafOpen\": \"CLOSE\",\n \"WafInstanceId\": \"waf_2kzh3vlq0umkkha9\"\n }\n}",
|
23
23
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
24
24
|
"title": "示例1"
|
25
25
|
},
|
26
26
|
{
|
27
27
|
"document": "创建一个自定义域名,开启了waf 防护,路由配置开启重写策略,该策略是精确路径匹配替换。",
|
28
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.ccc.com\",\n \"Protocol\": \"HTTP&HTTPS\",\n \"CertConfig\": {\n \"CertificateId\": \"BxxJ3DK7\"\n },\n \"EndpointsConfig\": [\n {\n \"PathMatch\": \"/aa/\",\n \"Namespace\": \"default\",\n \"FunctionName\": \"test1\",\n \"Qualifier\": \"1\",\n \"PathRewrite\": [\n {\n \"Path\": \"/aa/\",\n \"Type\": \"WildcardRules\",\n \"Rewrite\": \"
|
28
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.ccc.com\",\n \"Protocol\": \"HTTP&HTTPS\",\n \"CertConfig\": {\n \"CertificateId\": \"BxxJ3DK7\"\n },\n \"EndpointsConfig\": [\n {\n \"PathMatch\": \"/aa/\",\n \"Namespace\": \"default\",\n \"FunctionName\": \"test1\",\n \"Qualifier\": \"1\",\n \"PathRewrite\": [\n {\n \"Path\": \"/aa/\",\n \"Type\": \"WildcardRules\",\n \"Rewrite\": \"/$\"\n }\n ]\n }\n ],\n \"WafConfig\": {\n \"WafOpen\": \"OPEN\",\n \"WafInstanceId\": \"waf_2kzh3vlq0umkkha9\"\n }\n}",
|
29
29
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
30
30
|
"title": "示例2"
|
31
31
|
}
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"CreateNamespace": [
|
42
42
|
{
|
43
43
|
"document": "创建命名空间。",
|
44
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateNamespace\n<公共请求参数>\n\n{\n \"Namespace\": \"
|
44
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateNamespace\n<公共请求参数>\n\n{\n \"Namespace\": \"ns1\",\n \"Description\": \"a ns\"\n}",
|
45
45
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
46
46
|
"title": "创建命名空间。"
|
47
47
|
}
|
@@ -78,10 +78,18 @@
|
|
78
78
|
"title": "删除函数"
|
79
79
|
}
|
80
80
|
],
|
81
|
+
"DeleteFunctionVersion": [
|
82
|
+
{
|
83
|
+
"document": "删除函数 test 的版本 2 ",
|
84
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteFunctionVersion\n<公共请求参数>\n\n{\n \"FunctionName\": \"functionName1\",\n \"Namespace\": \"default\",\n \"Qualifier\": \"2\"\n}",
|
85
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n }\n}",
|
86
|
+
"title": "删除函数指定版本"
|
87
|
+
}
|
88
|
+
],
|
81
89
|
"DeleteLayerVersion": [
|
82
90
|
{
|
83
91
|
"document": "删除层版本",
|
84
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteLayerVersion\n<公共请求参数>\n\n{\n \"LayerName\": \"
|
92
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteLayerVersion\n<公共请求参数>\n\n{\n \"LayerName\": \"layer-1\",\n \"LayerVersion\": 1\n}",
|
85
93
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a1ffbba5-5489-45bc-89c5-453e50d5386e\"\n }\n}",
|
86
94
|
"title": "删除层版本"
|
87
95
|
}
|
@@ -89,7 +97,7 @@
|
|
89
97
|
"DeleteNamespace": [
|
90
98
|
{
|
91
99
|
"document": "",
|
92
|
-
"input": "https://scf.tencentcloudapi.com/?Action=DeleteNamespace\n&Namespace=
|
100
|
+
"input": "https://scf.tencentcloudapi.com/?Action=DeleteNamespace\n&Namespace=namespace1\n&<公共请求参数>",
|
93
101
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
94
102
|
"title": "删除命名空间"
|
95
103
|
}
|
@@ -97,7 +105,7 @@
|
|
97
105
|
"DeleteProvisionedConcurrencyConfig": [
|
98
106
|
{
|
99
107
|
"document": "",
|
100
|
-
"input": "https://scf.tencentcloudapi.com/?Action=DeleteProvisionedConcurrencyConfig\n&FunctionName=
|
108
|
+
"input": "https://scf.tencentcloudapi.com/?Action=DeleteProvisionedConcurrencyConfig\n&FunctionName=functionName1\n&Namespace=namespace1\n&Qualifier=1\n&<公共请求参数>",
|
101
109
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
102
110
|
"title": "删除预置并发"
|
103
111
|
}
|
@@ -105,7 +113,7 @@
|
|
105
113
|
"DeleteReservedConcurrencyConfig": [
|
106
114
|
{
|
107
115
|
"document": "",
|
108
|
-
"input": "https://scf.tencentcloudapi.com/?Action=DeleteReservedConcurrencyConfig\n&FunctionName=
|
116
|
+
"input": "https://scf.tencentcloudapi.com/?Action=DeleteReservedConcurrencyConfig\n&FunctionName=functionName1\n&Namespace=default\n&<公共请求参数>",
|
109
117
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
110
118
|
"title": "删除函数最大独占配额"
|
111
119
|
}
|
@@ -122,7 +130,7 @@
|
|
122
130
|
{
|
123
131
|
"document": "",
|
124
132
|
"input": "https://scf.tencentcloudapi.com/?Action=GetAccount\n&<公共请求参数>",
|
125
|
-
"output": "{\n \"Response\": {\n \"
|
133
|
+
"output": "{\n \"Response\": {\n \"AccountUsage\": {\n \"NamespacesCount\": 1,\n \"Namespace\": [\n {\n \"Namespace\": \"default\",\n \"Functions\": [\n \"express_demo-test\"\n ],\n \"TotalConcurrencyMem\": 0,\n \"TotalAllocatedConcurrencyMem\": 0,\n \"TotalAllocatedProvisionedMem\": 0,\n \"FunctionsCount\": 1\n }\n ],\n \"TotalConcurrencyMem\": 128000,\n \"TotalAllocatedConcurrencyMem\": 0,\n \"UserConcurrencyMemLimit\": 128000\n },\n \"AccountLimit\": {\n \"NamespacesCount\": 5,\n \"Namespace\": [\n {\n \"Namespace\": \"default\",\n \"FunctionsCount\": 50,\n \"TimeoutLimit\": 900,\n \"InitTimeoutLimit\": 300,\n \"TestModelLimit\": 20,\n \"RetryNumLimit\": 2,\n \"MinMsgTTL\": 60,\n \"MaxMsgTTL\": 21600,\n \"ConcurrentExecutions\": 100,\n \"Trigger\": {\n \"Apigw\": 10,\n \"Ckafka\": 10,\n \"Clb\": 10,\n \"Cls\": 10,\n \"Cm\": 10,\n \"Cmq\": 10,\n \"Cos\": 10,\n \"Eb\": 10,\n \"Mps\": 10,\n \"Timer\": 10,\n \"Total\": 110,\n \"Vod\": 10\n }\n }\n ]\n },\n \"RequestId\": \"cvvdsds-af20-42a9-9314-84ad66b06ee4\"\n }\n}",
|
126
134
|
"title": "获取账户信息"
|
127
135
|
}
|
128
136
|
],
|
@@ -130,7 +138,7 @@
|
|
130
138
|
{
|
131
139
|
"document": "",
|
132
140
|
"input": "https://scf.tencentcloudapi.com/?Action=GetAlias\n&Namespace=<Namespace>\n&FunctionName=<FunctionName>\n&Name=<AliasName>\n&<公共请求参数>",
|
133
|
-
"output": "{\n \"Response\": {\n \"
|
141
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Name\": \"ddd\",\n \"Description\": \"\",\n \"FunctionVersion\": \"1\",\n \"RoutingConfig\": {\n \"AdditionalVersionWeights\": [\n {\n \"Version\": \"$LATEST\",\n \"Weight\": 0.8\n }\n ],\n \"AddtionVersionMatchs\": []\n },\n \"AddTime\": \"2024-12-19 14:53:51\",\n \"ModTime\": \"2024-12-19 14:53:51\"\n }\n}",
|
134
142
|
"title": "查询别名详细信息"
|
135
143
|
}
|
136
144
|
],
|
@@ -138,15 +146,15 @@
|
|
138
146
|
{
|
139
147
|
"document": "查询函数异步事件状态",
|
140
148
|
"input": "https://scf.tencentcloudapi.com/?Action=GetAsyncEventStatus\n&InvokeRequestId=b379787f-8487-4bac-bd8c-17a20a9ce40e\n&<公共请求参数>",
|
141
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"Status\": \"
|
149
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"Status\": \"RUNNING\",\n \"StatusCode\": 0,\n \"InvokeRequestId\": \"5f825fd3-a59d-4879-aa28-3ac967c12888\"\n },\n \"RequestId\": \"5f825fd3-a59d-4879-aa28-3ac967c128885f82\"\n }\n}",
|
142
150
|
"title": "查询函数异步事件状态"
|
143
151
|
}
|
144
152
|
],
|
145
153
|
"GetCustomDomain": [
|
146
154
|
{
|
147
155
|
"document": "",
|
148
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.
|
149
|
-
"output": "{\n \"Response\": {\n \"CertConfig\": {\n \"CertificateId\": \"BfHJsadd7\"\n },\n \"Domain\": \"www.
|
156
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.demo.com\"\n}",
|
157
|
+
"output": "{\n \"Response\": {\n \"CertConfig\": {\n \"CertificateId\": \"BfHJsadd7\"\n },\n \"Domain\": \"www.demo.com\",\n \"EndpointsConfig\": [\n {\n \"FunctionName\": \"test1\",\n \"Namespace\": \"default\",\n \"PathMatch\": \"/cc/\",\n \"PathRewrite\": [\n {\n \"Path\": \"/cc/\",\n \"Rewrite\": \"/$1\",\n \"Type\": \"ExactRules\"\n }\n ],\n \"Qualifier\": \"$LATEST\"\n }\n ],\n \"Protocol\": \"HTTP&HTTPS\",\n \"RequestId\": \"6941ssdd162b-925f-4c3a-b90f-3558c0aebf97\",\n \"WafConfig\": {\n \"WafInstanceId\": \"\",\n \"WafOpen\": \"CLOSE\"\n }\n }\n}",
|
150
158
|
"title": "示例1"
|
151
159
|
}
|
152
160
|
],
|
@@ -154,7 +162,7 @@
|
|
154
162
|
{
|
155
163
|
"document": "用户用此函数获取对应的函数信息,可指定版本与命名空间。",
|
156
164
|
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFunction\n<公共请求参数>\n\n{\n \"FunctionName\": \"<FunctionName>\"\n}",
|
157
|
-
"output": "{\n \"Response\": {\n \"
|
165
|
+
"output": "{\n \"Response\": {\n \"Qualifier\": \"$LATEST\",\n \"Description\": \"Created by Serverless\",\n \"Timeout\": 3,\n \"InitTimeout\": 90,\n \"MemorySize\": 128,\n \"Runtime\": \"CustomImage\",\n \"VpcConfig\": {\n \"VpcId\": \"\",\n \"SubnetId\": \"\"\n },\n \"Environment\": {\n \"Variables\": []\n },\n \"Handler\": \"\",\n \"UseGpu\": \"FALSE\",\n \"Role\": \"\",\n \"CodeSize\": 0,\n \"FunctionVersion\": \"$LATEST\",\n \"FunctionName\": \"function-index1\",\n \"FunctionId\": \"xccxvxcv\",\n \"Namespace\": \"default\",\n \"InstallDependency\": \"FALSE\",\n \"Status\": \"Active\",\n \"AvailableStatus\": \"Available\",\n \"StatusDesc\": \"\",\n \"L5Enable\": \"FALSE\",\n \"DnsCache\": \"FALSE\",\n \"EipConfig\": {\n \"EipFixed\": \"FALSE\",\n \"Eips\": []\n },\n \"ModTime\": \"2024-12-17 17:52:48\",\n \"AddTime\": \"2024-12-17 17:47:08\",\n \"Layers\": [],\n \"DeadLetterConfig\": {\n \"Type\": \"\",\n \"Name\": \"\",\n \"FilterType\": \"\"\n },\n \"OnsEnable\": \"FALSE\",\n \"PublicNetConfig\": {\n \"PublicNetStatus\": \"ENABLE\",\n \"EipConfig\": {\n \"EipStatus\": \"DISABLE\",\n \"EipAddress\": []\n }\n },\n \"ImageConfig\": {\n \"RegistryId\": \"\",\n \"ImageType\": \"personal\",\n \"ImageUri\": \"ccr.ccs.tencentyun.com/xxx/xxx:xx@sha256:xxxxxxxxxx\",\n \"ContainerImageAccelerate\": false,\n \"Command\": \"node\",\n \"Args\": \" index.js \",\n \"ImagePort\": 9000,\n \"EntryPoint\": null\n },\n \"ProtocolType\": \"\",\n \"Triggers\": [],\n \"ClsLogsetId\": \"b91e2c12-cccccccccccc\",\n \"ClsTopicId\": \"a3b039f5-bbbbbbbbbb\",\n \"CodeInfo\": \"\",\n \"CodeResult\": \"success\",\n \"CodeError\": \"\",\n \"ErrNo\": 0,\n \"Tags\": [],\n \"AccessInfo\": {\n \"Host\": \"\",\n \"Vip\": \"\"\n },\n \"Type\": \"Event\",\n \"CfsConfig\": {\n \"CfsInsList\": []\n },\n \"StatusReasons\": [],\n \"AsyncRunEnable\": \"FALSE\",\n \"TraceEnable\": \"FALSE\",\n \"ProtocolParams\": null,\n \"IntranetConfig\": {\n \"IpFixed\": \"DISABLE\"\n },\n \"RequestId\": \"08b4c93b-b515-4cf4-a7a3-72b5db4e21dc\"\n }\n}",
|
158
166
|
"title": "获取函数详细信息"
|
159
167
|
}
|
160
168
|
],
|
@@ -185,7 +193,7 @@
|
|
185
193
|
"GetLayerVersion": [
|
186
194
|
{
|
187
195
|
"document": "获取层版本详情",
|
188
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetLayerVersion\n<公共请求参数>\n\n{\n \"LayerName\": \"
|
196
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetLayerVersion\n<公共请求参数>\n\n{\n \"LayerName\": \"layer-name1\",\n \"LayerVersion\": 1\n}",
|
189
197
|
"output": "{\n \"Response\": {\n \"Status\": \"Active\",\n \"LayerVersion\": 1,\n \"CodeSha256\": \"c7c8bda601817ce4faab4c4fb3e73b9a32040e0e9f31f7a649d84d4bdde9e4a5\",\n \"Description\": \"desc\",\n \"LicenseInfo\": \"\",\n \"AddTime\": \"2019-11-26 16:15:33\",\n \"Location\": \"https://lambdalayerin-1253665819.cos.ap-mumbai.myqcloud.com/1253970226/layer3/1/1253970226_layer3_1.zip?sign=q-sign-algorithm%3Dsha1%26q-ak%3Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%26q-sign-time%3D1582083327%3B1582093387%26q-key-time%3D1582083327%3B1582093387%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D255d3e5aaa6c7224396b39f857e134a0dfb27c89&response-content-type=application/octet-stream\",\n \"CompatibleRuntimes\": [\n \"Nodejs8.9\",\n \"Nodejs6.10\"\n ],\n \"LayerName\": \"layer3\",\n \"RequestId\": \"6c7578ed-b816-4e50-930a-54e855452b8b\"\n }\n}",
|
190
198
|
"title": "获取层版本详情"
|
191
199
|
}
|
@@ -193,8 +201,8 @@
|
|
193
201
|
"GetProvisionedConcurrencyConfig": [
|
194
202
|
{
|
195
203
|
"document": "",
|
196
|
-
"input": "https://scf.tencentcloudapi.com/?Action=GetProvisionedConcurrencyConfig\n&FunctionName=
|
197
|
-
"output": "{\n \"Response\": {\n \"UnallocatedConcurrencyNum\":
|
204
|
+
"input": "https://scf.tencentcloudapi.com/?Action=GetProvisionedConcurrencyConfig\n&FunctionName=functionName1\n&Namespace=default\n&Qualifier=1\n&<公共请求参数>",
|
205
|
+
"output": "{\n \"Response\": {\n \"UnallocatedConcurrencyNum\": 2343,\n \"Allocated\": [\n {\n \"Qualifier\": \"1\",\n \"AvailableProvisionedConcurrencyNum\": 1,\n \"AllocatedProvisionedConcurrencyNum\": 1,\n \"Status\": \"Done\",\n \"StatusReason\": \"\",\n \"TriggerActions\": []\n },\n {\n \"Qualifier\": \"2\",\n \"AvailableProvisionedConcurrencyNum\": 1,\n \"AllocatedProvisionedConcurrencyNum\": 1,\n \"Status\": \"Done\",\n \"StatusReason\": \"\",\n \"TriggerActions\": [\n {\n \"TriggerName\": \"timer-1\",\n \"ProvisionedType\": \"Default\",\n \"TriggerProvisionedConcurrencyNum\": 1,\n \"TriggerCronConfig\": \"30 42 15 20 12 * 2024\"\n }\n ]\n }\n ],\n \"RequestId\": \"dsdsfsdf-b246-4fe5-812a-f77f1275471a\"\n }\n}",
|
198
206
|
"title": "获取函数预置并发详情"
|
199
207
|
}
|
200
208
|
],
|
@@ -202,14 +210,14 @@
|
|
202
210
|
{
|
203
211
|
"document": "",
|
204
212
|
"input": "https://scf.tencentcloudapi.com/?Action=GetRequestStatus\n&FunctionName=<FunctionName>\n&FunctionRequestId=<FunctionRequestId>\n&<公共请求参数>",
|
205
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"Data\": [\n {\n \"FunctionName\": \"
|
213
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"Data\": [\n {\n \"FunctionName\": \"function-demo\",\n \"RetMsg\": \"Hello\",\n \"RequestId\": \"96d91886-f49b-4962-825e-1b4b8a2585f7\",\n \"StartTime\": \"2024-12-25 19:50:07\",\n \"RetCode\": 0,\n \"Duration\": 0,\n \"MemUsage\": 0,\n \"RetryNum\": 0\n }\n ],\n \"RequestId\": \"a63607c3-581f-4be9-8c4b-631c75909f07\"\n }\n}",
|
206
214
|
"title": "获取函数运行状态"
|
207
215
|
}
|
208
216
|
],
|
209
217
|
"GetReservedConcurrencyConfig": [
|
210
218
|
{
|
211
219
|
"document": "",
|
212
|
-
"input": "https://scf.tencentcloudapi.com/?Action=GetReservedConcurrencyConfig\n&FunctionName=
|
220
|
+
"input": "https://scf.tencentcloudapi.com/?Action=GetReservedConcurrencyConfig\n&FunctionName=functionName1\n&<公共请求参数>",
|
213
221
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"ReservedMem\": 128\n }\n}",
|
214
222
|
"title": "获取函数最大独占配额详情"
|
215
223
|
}
|
@@ -217,7 +225,7 @@
|
|
217
225
|
"Invoke": [
|
218
226
|
{
|
219
227
|
"document": "运行函数",
|
220
|
-
"input": "https://scf.tencentcloudapi.com/?Action=Invoke\n&FunctionName=
|
228
|
+
"input": "https://scf.tencentcloudapi.com/?Action=Invoke\n&FunctionName=function-demo\n&<公共请求参数>",
|
221
229
|
"output": "{\n \"Response\": {\n \"Result\": {\n \"MemUsage\": 3207168,\n \"Log\": \"\",\n \"RetMsg\": \"hello from scf\",\n \"BillDuration\": 100,\n \"FunctionRequestId\": \"6add56fa-58f1-11e8-89a9-5254005d5fdb\",\n \"Duration\": 0.826,\n \"ErrMsg\": \"\",\n \"InvokeResult\": 0\n },\n \"RequestId\": \"c2af8a64-c922-4d55-aee0-bd86a5c2cd12\"\n }\n}",
|
222
230
|
"title": "运行函数"
|
223
231
|
}
|
@@ -225,7 +233,7 @@
|
|
225
233
|
"InvokeFunction": [
|
226
234
|
{
|
227
235
|
"document": "",
|
228
|
-
"input": "https://scf.tencentcloudapi.com/?Action=InvokeFunction\n&FunctionName=
|
236
|
+
"input": "https://scf.tencentcloudapi.com/?Action=InvokeFunction\n&FunctionName=function-demo\n&<公共请求参数>",
|
229
237
|
"output": "{\n \"Response\": {\n \"Result\": {\n \"MemUsage\": 3207168,\n \"Log\": \"\",\n \"RetMsg\": \"hello from scf\",\n \"BillDuration\": 100,\n \"FunctionRequestId\": \"6add56fa-58f1-11e8-89a9-5254005d5fdb\",\n \"Duration\": 0.826,\n \"ErrMsg\": \"\",\n \"InvokeResult\": 0\n },\n \"RequestId\": \"c2af8a64-c922-4d55-aee0-bd86a5c2cd12\"\n }\n}",
|
230
238
|
"title": "运行函数"
|
231
239
|
}
|
@@ -233,8 +241,8 @@
|
|
233
241
|
"ListAliases": [
|
234
242
|
{
|
235
243
|
"document": "",
|
236
|
-
"input": "https://scf.tencentcloudapi.com/?Action=ListAliases\n&Namespace
|
237
|
-
"output": "{\n \"Response\": {\n \"Aliases\": [\n {\n \"
|
244
|
+
"input": "https://scf.tencentcloudapi.com/?Action=ListAliases\n&Namespace=default\n&FunctionName=functionName1\n&<公共请求参数>",
|
245
|
+
"output": "{\n \"Response\": {\n \"Aliases\": [\n {\n \"ModTime\": \"2023-07-12 10:53:52\",\n \"AddTime\": \"2023-07-12 10:53:52\",\n \"Name\": \"$DEFAULT\",\n \"Description\": \"\",\n \"FunctionVersion\": \"$LATEST\",\n \"RoutingConfig\": {\n \"AdditionalVersionWeights\": [],\n \"AddtionVersionMatchs\": []\n }\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"dfdfdfd-e3ca-4756-bc18-09a22ec9048f\"\n }\n}",
|
238
246
|
"title": "查询函数下的全部别名"
|
239
247
|
}
|
240
248
|
],
|
@@ -250,7 +258,7 @@
|
|
250
258
|
{
|
251
259
|
"document": "",
|
252
260
|
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListCustomDomains\n<公共请求参数>\n\n{}",
|
253
|
-
"output": "{\n \"Response\": {\n \"Domains\": [\n {\n \"CertConfig\": {\n \"CertificateId\": \"ccccaas\"\n },\n \"Domain\": \"www.
|
261
|
+
"output": "{\n \"Response\": {\n \"Domains\": [\n {\n \"CertConfig\": {\n \"CertificateId\": \"ccccaas\"\n },\n \"Domain\": \"www.demo.com\",\n \"EndpointsConfig\": [\n {\n \"FunctionName\": \"test1\",\n \"Namespace\": \"default\",\n \"PathMatch\": \"/cc/\",\n \"PathRewrite\": [\n {\n \"Path\": \"/cc/\",\n \"Rewrite\": \"/$1\",\n \"Type\": \"ExactRules\"\n }\n ],\n \"Qualifier\": \"$LATEST\"\n }\n ],\n \"Protocol\": \"HTTP&HTTPS\",\n \"WafConfig\": {\n \"WafInstanceId\": \"\",\n \"WafOpen\": \"CLOSE\"\n }\n }\n ],\n \"RequestId\": \"6941ssdd162b-925f-4c3a-b90f-3558c0aebf97\",\n \"Total\": 1\n }\n}",
|
254
262
|
"title": "示例1"
|
255
263
|
}
|
256
264
|
],
|
@@ -258,61 +266,61 @@
|
|
258
266
|
{
|
259
267
|
"document": "",
|
260
268
|
"input": "https://scf.tencentcloudapi.com/?Action=ListFunctions\n&Limit=2\n&Order=ASC\n&<公共请求参数>",
|
261
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Functions\": [\n {\n \"
|
269
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Functions\": [\n {\n \"Namespace\": \"defaut\",\n \"FunctionName\": \"functionName1\",\n \"FunctionId\": \"sdfdsgfd g\",\n \"Description\": \"\",\n \"Tags\": [],\n \"Runtime\": \"Nodejs8.9\",\n \"Type\": \"Event\",\n \"AsyncRunEnable\": \"FALSE\",\n \"TraceEnable\": \"FALSE\",\n \"ReservedConcurrencyMem\": null,\n \"TotalProvisionedConcurrencyMem\": 0,\n \"Status\": \"Active\",\n \"StatusDesc\": \"\",\n \"StatusReasons\": [],\n \"AddTime\": \"2024-08-27 15:27:43\",\n \"ModTime\": \"2024-08-27 15:27:43\"\n }\n ],\n \"RequestId\": \"sdfsdfdg-7d05-4d3e-91f8-e62e6695c8c8\"\n }\n}",
|
262
270
|
"title": "获取函数列表"
|
263
271
|
},
|
264
272
|
{
|
265
273
|
"document": "查询status标签的值是dev,且owner标签的值是me的函数",
|
266
274
|
"input": "https://scf.tencentcloudapi.com/?Action=ListFunctions\n&Filters.0.Name=tag-status\n&Filters.0.Values.0=dev\n&Filters.1.Name=tag-owner\n&Filters.1.Values.0=me\n&<公共请求参数>",
|
267
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Functions\": [\n {\n \"
|
275
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Functions\": [\n {\n \"Status\": \"Active\",\n \"FunctionName\": \"functionName1\",\n \"TotalProvisionedConcurrencyMem\": 1,\n \"Namespace\": \"default\",\n \"Runtime\": \"Python3.6\",\n \"Type\": \"HTTP\",\n \"ReservedConcurrencyMem\": 1,\n \"Description\": \"just for test\",\n \"TraceEnable\": \"FALSE\",\n \"AsyncRunEnable\": \"FALSE\",\n \"FunctionId\": \"lam-xxxxxxxx\",\n \"StatusReasons\": [],\n \"StatusDesc\": \"\",\n \"AddTime\": \"2000-01-01 00:00:00\",\n \"ModTime\": \"2000-01-01 00:00:00\",\n \"Tags\": [\n {\n \"Value\": \"dev\",\n \"Key\": \"status\"\n },\n {\n \"Value\": \"me\",\n \"Key\": \"owner\"\n }\n ]\n }\n ],\n \"RequestId\": \"77ccef58-0ebb-4523-ab88-a37063443524\"\n }\n}",
|
268
276
|
"title": "根据标签查询函数"
|
269
277
|
}
|
270
278
|
],
|
271
279
|
"ListLayerVersions": [
|
272
280
|
{
|
273
281
|
"document": "获取层版本列表",
|
274
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListLayerVersions\n<公共请求参数>\n\n{\n \"LayerName\": \"
|
275
|
-
"output": "{\n \"Response\": {\n \"LayerVersions\": [\n {\n \"
|
282
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListLayerVersions\n<公共请求参数>\n\n{\n \"LayerName\": \"layer-name1\",\n \"CompatibleRuntime\": [\n \"Nodejs16.13\"\n ]\n}",
|
283
|
+
"output": "{\n \"Response\": {\n \"LayerVersions\": [\n {\n \"LayerName\": \"layer-name1\",\n \"LayerVersion\": 1,\n \"CompatibleRuntimes\": [\n \"Nodejs16.13\"\n ],\n \"Description\": \"vxcx\",\n \"LicenseInfo\": \"\",\n \"AddTime\": \"2022-05-16 19:40:42\",\n \"Status\": \"Active\",\n \"Stamp\": \"default\"\n }\n ],\n \"RequestId\": \"ssssds-9783-424a-8f0b-48cfee89333b\"\n }\n}",
|
276
284
|
"title": "获取层版本列表"
|
277
285
|
}
|
278
286
|
],
|
279
287
|
"ListLayers": [
|
280
288
|
{
|
281
289
|
"document": "拉取层列表",
|
282
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListLayers\n<公共请求参数>\n\n{\n \"
|
283
|
-
"output": "{\n \"Response\": {\n \"
|
290
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListLayers\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
291
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Layers\": [\n {\n \"LayerName\": \"test-layer\",\n \"LayerVersion\": 1,\n \"CompatibleRuntimes\": [\n \"Nodejs10.15\"\n ],\n \"Description\": \"Layer created by serverless component\",\n \"LicenseInfo\": \"\",\n \"AddTime\": \"2022-10-26 10:08:11\",\n \"Status\": \"Active\",\n \"Stamp\": \"default\",\n \"Tags\": []\n }\n ],\n \"RequestId\": \"dsfdf-cac3-451d-acfa-667d831521b4\"\n }\n}",
|
284
292
|
"title": "拉取层列表"
|
285
293
|
}
|
286
294
|
],
|
287
295
|
"ListNamespaces": [
|
288
296
|
{
|
289
297
|
"document": "列出命名空间列表",
|
290
|
-
"input": "https://scf.tencentcloudapi.com/?Action=ListNamespaces\n&SearchKey.0.Key=Namespace\n&SearchKey.0.Value=
|
291
|
-
"output": "{\n \"Response\": {\n \"Namespaces\": [\n {\n \"
|
298
|
+
"input": "https://scf.tencentcloudapi.com/?Action=ListNamespaces\n&SearchKey.0.Key=Namespace\n&SearchKey.0.Value=ns1\n&<公共请求参数>",
|
299
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"Namespaces\": [\n {\n \"Name\": \"ns1\",\n \"Description\": \"\",\n \"AddTime\": \"2024-12-17 15:28:55\",\n \"ModTime\": \"2024-12-17 15:28:55\",\n \"Type\": \"default\"\n },\n {\n \"Name\": \"default\",\n \"Description\": \"\",\n \"AddTime\": \"2024-10-17 09:29:45\",\n \"ModTime\": \"2024-10-17 09:29:45\",\n \"Type\": \"default\"\n }\n ],\n \"RequestId\": \"sdfsdfs-3de5-459c-984a-cb43ec2625d2\"\n }\n}",
|
292
300
|
"title": "列出命名空间列表"
|
293
301
|
}
|
294
302
|
],
|
295
303
|
"ListTriggers": [
|
296
304
|
{
|
297
305
|
"document": "获取函数触发器列表",
|
298
|
-
"input": "https://scf.tencentcloudapi.com/?Action=ListTriggers\n&FunctionName=
|
299
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Triggers\": [\n {\n \"Enable\": 1,\n \"Qualifier\": \"
|
306
|
+
"input": "https://scf.tencentcloudapi.com/?Action=ListTriggers\n&FunctionName=function-demo\n&Limit=2\n&Order=ASC\n&<公共请求参数>",
|
307
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Triggers\": [\n {\n \"Enable\": 1,\n \"Qualifier\": \"$DEFAULT\",\n \"TriggerName\": \"hulrzrbh9f\",\n \"Type\": \"http\",\n \"TriggerDesc\": \"{\\\"AuthType\\\":\\\"NONE\\\",\\\"NetConfig\\\":{\\\"EnableIntranet\\\":true,\\\"IntranetUrl\\\":\\\"https://1258888888-hulrzrbh9f.in.ap-chongqing.tencentscf.com\\\",\\\"IntranetHTTPUrl\\\":\\\"http://1258888888-hulrzrbh9f.in.ap-chongqing.tencentscf.com\\\",\\\"ExtranetUrl\\\":\\\"\\\",\\\"ExtranetHTTPUrl\\\":\\\"\\\",\\\"WssIntranetUrl\\\":\\\"\\\",\\\"WsIntranetUrl\\\":\\\"\\\",\\\"WssExtranetUrl\\\":\\\"\\\",\\\"WsExtranetUrl\\\":\\\"\\\",\\\"EnableExtranet\\\":false}}\",\n \"AvailableStatus\": \"Available\",\n \"CustomArgument\": \"custom\",\n \"Description\": \"Some Description\",\n \"AddTime\": \"2020-09-22 00:00:00\",\n \"ModTime\": \"2020-09-22 00:00:00\",\n \"ResourceId\": \"qcs::scf:cq:uin/888888:function/function-demo/hulrzrbh9f\",\n \"BindStatus\": \"on\",\n \"TriggerAttribute\": \"single\"\n }\n ],\n \"RequestId\": \"52dd00b1-7197-4a11-97f5-2a67f9f49273\"\n }\n}",
|
300
308
|
"title": "获取函数触发器列表"
|
301
309
|
}
|
302
310
|
],
|
303
311
|
"ListVersionByFunction": [
|
304
312
|
{
|
305
313
|
"document": "",
|
306
|
-
"input": "https://scf.tencentcloudapi.com/?Action=ListVersionByFunction\n&FunctionName=
|
307
|
-
"output": "{\n \"Response\": {\n \"
|
314
|
+
"input": "https://scf.tencentcloudapi.com/?Action=ListVersionByFunction\n&FunctionName=functionName1\n&<公共请求参数>",
|
315
|
+
"output": "{\n \"Response\": {\n \"Versions\": [\n {\n \"Version\": \"$LATEST\",\n \"Description\": \"\",\n \"AddTime\": \"2024-12-18 10:11:51\",\n \"ModTime\": \"2024-12-18 17:04:41\",\n \"Status\": \"Active\"\n }\n ],\n \"FunctionVersion\": [\n \"$LATEST\"\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"sdssd-a36d-42d3-9c24-c276409592a7\"\n }\n}",
|
308
316
|
"title": "查询函数版本"
|
309
317
|
}
|
310
318
|
],
|
311
319
|
"PublishLayerVersion": [
|
312
320
|
{
|
313
321
|
"document": "发布层版本",
|
314
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PublishLayerVersion\n<公共请求参数>\n\n{\n \"LayerName\": \"
|
315
|
-
"output": "{\n \"Response\": {\n \"LayerVersion\":
|
322
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PublishLayerVersion\n<公共请求参数>\n\n{\n \"LayerName\": \"layer-name1\",\n \"CompatibleRuntimes\": [\n \"Nodejs16.13\"\n ],\n \"Content\": {\n \"CosBucketName\": \"layer-name1-2343243543\",\n \"CosObjectName\": \"layer-name1/node_modules.zip\",\n \"CosBucketRegion\": \"ap-singapore\"\n },\n \"Description\": \"a layer\"\n}",
|
323
|
+
"output": "{\n \"Response\": {\n \"LayerVersion\": 8,\n \"RequestId\": \"197192d3-0b64-410a-8cd9-25cb7c1db0ee\"\n }\n}",
|
316
324
|
"title": "发布层版本"
|
317
325
|
}
|
318
326
|
],
|
@@ -327,7 +335,7 @@
|
|
327
335
|
"PutProvisionedConcurrencyConfig": [
|
328
336
|
{
|
329
337
|
"document": "",
|
330
|
-
"input": "https://scf.tencentcloudapi.com/?Action=PutProvisionedConcurrencyConfig\n&FunctionName=
|
338
|
+
"input": "https://scf.tencentcloudapi.com/?Action=PutProvisionedConcurrencyConfig\n&FunctionName=functionName1\n&Qualifier=1\n&VersionProvisionedConcurrencyNum=10\n&<公共请求参数>",
|
331
339
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
332
340
|
"title": "设置预置并发"
|
333
341
|
}
|
@@ -335,7 +343,7 @@
|
|
335
343
|
"PutReservedConcurrencyConfig": [
|
336
344
|
{
|
337
345
|
"document": "",
|
338
|
-
"input": "https://scf.tencentcloudapi.com/?Action=PutReservedConcurrencyConfig\n&FunctionName=
|
346
|
+
"input": "https://scf.tencentcloudapi.com/?Action=PutReservedConcurrencyConfig\n&FunctionName=functionName1\n&ReservedConcurrencyMem=12800\n&<公共请求参数>",
|
339
347
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
340
348
|
"title": "设置最大独占配额"
|
341
349
|
}
|
@@ -359,7 +367,7 @@
|
|
359
367
|
"UpdateAlias": [
|
360
368
|
{
|
361
369
|
"document": "",
|
362
|
-
"input": "https://scf.tencentcloudapi.com/?Action=UpdateAlias\n&Name=abcAlias\n&Namespace=default\n&FunctionName=
|
370
|
+
"input": "https://scf.tencentcloudapi.com/?Action=UpdateAlias\n&Name=abcAlias\n&Namespace=default\n&FunctionName=functionName1\n&FunctionVersion=1\n&RoutingConfig.AdditionalVersionWeights.0.Version=2\n&RoutingConfig.AdditionalVersionWeights.0.Weight=0.5\n&<公共请求参数>",
|
363
371
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
364
372
|
"title": "更新别名的配置"
|
365
373
|
}
|
@@ -367,7 +375,7 @@
|
|
367
375
|
"UpdateCustomDomain": [
|
368
376
|
{
|
369
377
|
"document": "更新自定义域名的证书Id,并关闭waf",
|
370
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.ccc.com\",\n \"Protocol\": \"HTTP&HTTPS\",\n \"CertConfig\": {\n \"CertificateId\": \"cvvxxJ3DK7\"\n },\n \"WafConfig\": {\n \"WafOpen\": \"CLOSE\",\n \"WafInstanceId\": \"\"\n }\n}",
|
378
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCustomDomain\n<公共请求参数>\n\n{\n \"Domain\": \"www.ccc.com\",\n \"Protocol\": \"HTTP&HTTPS\",\n \"CertConfig\": {\n \"CertificateId\": \"cvvxxJ3DK7\"\n },\n \"WafConfig\": {\n \"WafOpen\": \"CLOSE\",\n \"WafInstanceId\": \"waf_2kzh3vlq0um\"\n }\n}",
|
371
379
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
372
380
|
"title": "示例1"
|
373
381
|
}
|
@@ -375,7 +383,7 @@
|
|
375
383
|
"UpdateFunctionCode": [
|
376
384
|
{
|
377
385
|
"document": "",
|
378
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateFunctionCode\n<公共请求参数>\n\n{\n \"CosObjectName\": \"<CosObjectName>\",\n \"Handler\": \"index.main\",\n \"CosBucketName\": \"<CosBucketName>\",\n \"FunctionName\": \"
|
386
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateFunctionCode\n<公共请求参数>\n\n{\n \"CosObjectName\": \"<CosObjectName>\",\n \"Handler\": \"index.main\",\n \"CosBucketName\": \"<CosBucketName>\",\n \"FunctionName\": \"functionName1\"\n}",
|
379
387
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
380
388
|
"title": "更新函数代码"
|
381
389
|
}
|
@@ -383,7 +391,7 @@
|
|
383
391
|
"UpdateFunctionConfiguration": [
|
384
392
|
{
|
385
393
|
"document": "更新函数配置",
|
386
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateFunctionConfiguration\n<公共请求参数>\n\n{\n \"FunctionName\": \"
|
394
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateFunctionConfiguration\n<公共请求参数>\n\n{\n \"FunctionName\": \"functionName1\",\n \"Namespace\": \"default\",\n \"Timeout\": 100,\n \"VpcConfig\": {\n \"SubnetId\": \"subnet-xxxx\",\n \"VpcId\": \"vpc-xxxxx\"\n },\n \"MemorySize\": 512\n}",
|
387
395
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
388
396
|
"title": "更新函数配置"
|
389
397
|
}
|
@@ -407,7 +415,7 @@
|
|
407
415
|
"UpdateTrigger": [
|
408
416
|
{
|
409
417
|
"document": "接口调用示例",
|
410
|
-
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateTrigger\n<公共请求参数>\n\n{\n \"Enable\": \"CLOSE\",\n \"FunctionName\": \"helloworld-xxxxxxxx\",\n \"TriggerName\": \"\\t\\nSCF-timer-xxxxxxxx\",\n \"Type\": \"timer\",\n \"Qualifier\": \"$DEFAULT\",\n \"Namespace\": \"default\",\n \"TriggerDesc\": \"0 0 0 */2 * * *\",\n \"Description\": \"
|
418
|
+
"input": "POST / HTTP/1.1\nHost: scf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateTrigger\n<公共请求参数>\n\n{\n \"Enable\": \"CLOSE\",\n \"FunctionName\": \"helloworld-xxxxxxxx\",\n \"TriggerName\": \"\\t\\nSCF-timer-xxxxxxxx\",\n \"Type\": \"timer\",\n \"Qualifier\": \"$DEFAULT\",\n \"Namespace\": \"default\",\n \"TriggerDesc\": \"0 0 0 */2 * * *\",\n \"Description\": \"some description\",\n \"CustomArgument\": \"中文测试\"\n}",
|
411
419
|
"output": "{\n \"Response\": {\n \"RequestId\": \"375d4028-xxxx-xxxxf-xxxx-2331cb974fc3\"\n }\n}",
|
412
420
|
"title": "接口调用示例"
|
413
421
|
}
|
@@ -4137,7 +4137,7 @@
|
|
4137
4137
|
{
|
4138
4138
|
"disabled": false,
|
4139
4139
|
"document": "子网列表",
|
4140
|
-
"example": "
|
4140
|
+
"example": "[\"subnet-sfdfd\"]",
|
4141
4141
|
"member": "string",
|
4142
4142
|
"name": "SubNetIds",
|
4143
4143
|
"required": false,
|
@@ -5244,7 +5244,7 @@
|
|
5244
5244
|
{
|
5245
5245
|
"disabled": false,
|
5246
5246
|
"document": "子网实例id\n注意:此字段可能返回 null,表示取不到有效值。",
|
5247
|
-
"example": "
|
5247
|
+
"example": "[\"subenet-sdfsdf\"]",
|
5248
5248
|
"member": "string",
|
5249
5249
|
"name": "SubnetIds",
|
5250
5250
|
"output_required": true,
|
@@ -5803,7 +5803,7 @@
|
|
5803
5803
|
{
|
5804
5804
|
"disabled": false,
|
5805
5805
|
"document": "外部任务Id 最长64字节",
|
5806
|
-
"example": "
|
5806
|
+
"example": "1423443",
|
5807
5807
|
"member": "string",
|
5808
5808
|
"name": "ExternalId",
|
5809
5809
|
"required": true,
|
@@ -6351,7 +6351,7 @@
|
|
6351
6351
|
{
|
6352
6352
|
"disabled": false,
|
6353
6353
|
"document": "版本名字(精确匹配)",
|
6354
|
-
"example": "
|
6354
|
+
"example": "version",
|
6355
6355
|
"member": "string",
|
6356
6356
|
"name": "VersionName",
|
6357
6357
|
"required": false,
|
@@ -6386,7 +6386,7 @@
|
|
6386
6386
|
{
|
6387
6387
|
"disabled": false,
|
6388
6388
|
"document": "服务名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
6389
|
-
"example": "
|
6389
|
+
"example": "server-01",
|
6390
6390
|
"member": "string",
|
6391
6391
|
"name": "ServerName",
|
6392
6392
|
"output_required": true,
|
@@ -6406,7 +6406,7 @@
|
|
6406
6406
|
{
|
6407
6407
|
"disabled": false,
|
6408
6408
|
"document": "镜像仓库\n注意:此字段可能返回 null,表示取不到有效值。",
|
6409
|
-
"example": "
|
6409
|
+
"example": "image",
|
6410
6410
|
"member": "string",
|
6411
6411
|
"name": "ImageRepo",
|
6412
6412
|
"output_required": true,
|
@@ -6416,7 +6416,7 @@
|
|
6416
6416
|
{
|
6417
6417
|
"disabled": false,
|
6418
6418
|
"document": "流量配置的类型(FLOW,URL_PARAMS)\n注意:此字段可能返回 null,表示取不到有效值。",
|
6419
|
-
"example": "
|
6419
|
+
"example": "FLOW",
|
6420
6420
|
"member": "string",
|
6421
6421
|
"name": "TrafficType",
|
6422
6422
|
"output_required": true,
|
@@ -6741,7 +6741,7 @@
|
|
6741
6741
|
{
|
6742
6742
|
"disabled": false,
|
6743
6743
|
"document": "子网实例id\n注意:此字段可能返回 null,表示取不到有效值。",
|
6744
|
-
"example": "
|
6744
|
+
"example": "[\"subnet-sdfsdf\"]",
|
6745
6745
|
"member": "string",
|
6746
6746
|
"name": "SubnetIds",
|
6747
6747
|
"output_required": true,
|
@@ -7156,7 +7156,7 @@
|
|
7156
7156
|
{
|
7157
7157
|
"disabled": false,
|
7158
7158
|
"document": "子网实例id\n注意:此字段可能返回 null,表示取不到有效值。",
|
7159
|
-
"example": "
|
7159
|
+
"example": "[\"subnet-csdffl\"]",
|
7160
7160
|
"member": "string",
|
7161
7161
|
"name": "SubnetIds",
|
7162
7162
|
"output_required": true,
|
@@ -9181,7 +9181,7 @@
|
|
9181
9181
|
{
|
9182
9182
|
"disabled": false,
|
9183
9183
|
"document": "子网Id列表",
|
9184
|
-
"example": "
|
9184
|
+
"example": "[\"subnet-xdsfd\"]",
|
9185
9185
|
"member": "string",
|
9186
9186
|
"name": "SubNetIds",
|
9187
9187
|
"output_required": true,
|
@@ -10182,7 +10182,7 @@
|
|
10182
10182
|
{
|
10183
10183
|
"disabled": false,
|
10184
10184
|
"document": "OA PUBLIC MINIAPP VPC",
|
10185
|
-
"example": "
|
10185
|
+
"example": "[\"OA\"]",
|
10186
10186
|
"member": "string",
|
10187
10187
|
"name": "OpenAccessTypes",
|
10188
10188
|
"required": false,
|
@@ -13126,7 +13126,7 @@
|
|
13126
13126
|
{
|
13127
13127
|
"disabled": false,
|
13128
13128
|
"document": "服务名称列表",
|
13129
|
-
"example": "
|
13129
|
+
"example": "[\"server-sdfsdf\"]",
|
13130
13130
|
"member": "string",
|
13131
13131
|
"name": "ServerNameList",
|
13132
13132
|
"required": true,
|
@@ -13151,7 +13151,7 @@
|
|
13151
13151
|
{
|
13152
13152
|
"disabled": false,
|
13153
13153
|
"document": "解冻失败列表\n注意:此字段可能返回 null,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
|
13154
|
-
"example": "
|
13154
|
+
"example": "[\"server-sdfsdf\"]",
|
13155
13155
|
"member": "string",
|
13156
13156
|
"name": "FailServerList",
|
13157
13157
|
"output_required": true,
|