You can call DescribeRoutineCodeRevision to retrieve the JavaScript code for a specific version of an Edge Routine (ER).
Operation description
The frequency of API calls is limited to 100 calls per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeRoutineCodeRevision |
get |
*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 an Alibaba Cloud account. |
test |
| SelectCodeRevision |
string |
Yes |
The version number of the JavaScript code that you want to view. |
1611151912787121550 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Content |
object |
The JavaScript code of the Edge Routine. |
CreationTime和ErCode |
| RequestId |
string |
The request ID. |
D24F0C48-1B27-4C58-8B84-1A0C001A514E |
Examples
Success response
JSON format
{
"Content": {
"test": "test",
"test2": 1
},
"RequestId": "D24F0C48-1B27-4C58-8B84-1A0C001A514E"
}
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.