Publishes a specified version of routine code to an environment.
Operation description
Note
You can call this operation up to 100 times per second per account.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Name | string | Yes | The name of the routine. The name must be unique among the routines that belong to the same Alibaba Cloud account. | test |
SelectCodeRevision | string | Yes | The version of the routine code that you want to publish. | 1620876959997924701 |
Envs | object | Yes | The environment to which you want to publish the code. Note
| ["production","presetCanaryZhejiang"] |
Response parameters
Examples
Sample success responses
JSON
format
{
"Content": {
"test": "test",
"test2": 1
},
"RequestId": "A513734D-D17B-411E-864D-XXXX"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | EdgeRoutine.GeneralError | A server error occurred: %s | A server error occurred. Try again later. If the error persists, submit a ticket. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history