Call UploadStagingRoutineCode to upload test code for an Edge Routine (ER).
Operation description
Uploading test code for an ER generates a version number. This action consumes one code version from your CodeRev quota. The generated version is for testing only.
This operation automatically publishes the code to the staging environment.
An ER can have a maximum of 10 versions. If this limit is exceeded, call DeleteRoutineCodeRevision to delete unused versions.
API call frequency: 100 calls per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:UploadStagingRoutineCode |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the Edge Routine. The name must be unique within your Alibaba Cloud account. |
test |
| CodeDescription |
string |
No |
The description of the version. |
desc |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Content |
object |
The parameters required by the code. |
OssPostConfig和CodeRevision |
| RequestId |
string |
The request ID. |
DFA2027F-86C0-4421-9593-581A7993696C |
Examples
Success response
JSON format
{
"Content": {
"test": "test",
"test2": 1
},
"RequestId": "DFA2027F-86C0-4421-9593-581A7993696C"
}
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.