You can call the CommitStagingRoutineCode operation to promote a staging version of your JavaScript (JS) code to the production environment.
Operation description
The call frequency for this operation is limited to 100 calls per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:CommitStagingRoutineCode |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the EdgeRoutine function. The name must be unique within an Alibaba Cloud account. |
test |
| CodeDescription |
string |
Yes |
The description of the code version. |
Hello World |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Content |
object |
The version number of the code. |
1620876959997924701 |
| RequestId |
string |
The request ID. |
5CC228B4-7A67-4016-9C9F-4A4133494A91 |
Examples
Success response
JSON format
{
"Content": 1620876959997924600,
"RequestId": "5CC228B4-7A67-4016-9C9F-4A4133494A91"
}
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.