# Update Cloud Function Configuration

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

uploadCloudFunctionConfig

# Functional description

Through this interface, you can update the cloud function configuration, if you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/componenttcb/updatescfconfig?access_token=ACCESS_TOKEN 

# Request parameters

attribute type RequiredIntroductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. use component_access_Token
env string yes Environment ID
functionname string yes Function name
memorysize number no Memory size
timeout number no Timeout in seconds
environment_variables array no Environmental variables
attribute type Required Introductions
key string yes Name of variable
value string yes The value of a variable
public_net_config object no Public Network Access Configuration
attribute type Required Introductions
public_net_status string yes Whether to open public network access ability, value: 'DISABLE', 'ENABLE'
eip_status string yes Eip open state, value: 'DISABLE', 'ENABLE'
vpc_config object no Private network configuration
attribute type Required Introductions
vpcid string no vpcid
subnetid string no Subnet id

# Return parameters

attribute type Introductions
errcode number Return code
errmsg string Error message

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
    "env": "myttest-8gu57so0bd9f9e8a"
    "functionname": "testfunc1",
    "memorysize": 512,
    "timeout": 2,
    "environment_variables": [{
        "key": "test",
        "value": "true"
    }],
    "public_net_config": {
        "public_net_status": "DISABLE",
        "eip_status": "DISABLE"
    },
    "vpc_config": {
        "vpcid": "vpc-a9ejy7oi"
        "subnetid": "subnet-oqw8aqbd"
    }
} 

# Return Data Example


{
    "errcode": 0,
    "errmsg": "ok"
} 

# Error code

Error code Error code Solutions
0 ok ok
-1 system error The system is busy, please wait for the developer to try again
-1000 system error System error
40014 invalid access_Token Illegal access_Token Please take the developer seriously. access_Token Of the validity (such as whether it is expired), or to see if you are working for the appropriate Official Account message template Call interface
40097 invalid args Parameter error
40101 missing parameter Missing required parameters
41001 access_Token missing lack access_Token parameter
42001 access_Token expired access_Token Timeout, please check access_Token Of the validity period, please refer to the Basic Support - Obtain access_Token Middle, right. access_Token Detailed mechanism explaination of the
43002 require POST method Need POST request
44002 empty post data POST The packet is empty.
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