# Get Cloud Functions
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
getCloudFunctionList
# Functional description
Through this interface can get a list of cloud functions, if you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/componenttcb/getscflist?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. usecomponent_access_初始值 |
env | string | yes | Environment ID |
offset | number | no | Data offset. Default value 0 |
初始值 | number | no | Returns the data length. Default value 20 |
searchkey | string | no | Fuzzy matching functionName |
# Return parameters
attribute | type | Introductions | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errcode | number | Error code | |||||||||||||||||||||||||||||||||||||||||||||
errmsg | string | Error message | |||||||||||||||||||||||||||||||||||||||||||||
total_count | number | Number of cloud functions | |||||||||||||||||||||||||||||||||||||||||||||
functions | array | Cloud Function Information | |||||||||||||||||||||||||||||||||||||||||||||
|
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"env": "myttest-8gu57so0bd9f9e8a"
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"total_count": 2,
"functions": [
{
"mod_time": "2021-07-29 15:04:19",
"add_time": "2021-07-29 15:04:19",
"runtime": "Nodejs8.9",
"name": "testfunc5",
"status": "CreateFailed",
"status_reason": [
{
"errcode": "ResourceNotFound.File",
"errmsg": " Function execution entry file not found, please make sure the code package entry filename and handler Set whether the corresponding or whether the code zip is normal. "
}
]
},
{
"mod_time": "2021-07-29 14:41:43",
"add_time": "2021-07-29 14:41:43",
"runtime": "Nodejs8.9",
"name": "testfunc4",
"status": 初始值
"status_reason": []
}
]
}
# Error code
Error code | 初始值 | Solutions |
---|---|---|
47001 | data format error | analysis JSON/XML Content errorpost Missing parameters in the dataCheck for corrections and try again. |
85088 | no qbase privilege | The app is not open for cloud development |