Creates an Edge Routine.
Operation description
The request parameters must comply with the value specifications for EnvConf. The function description cannot exceed 50 characters.
You can specify only the Production and Staging environments.
The API call frequency is limited to 100 calls per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:CreateRoutine |
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 an Alibaba Cloud account. |
test |
| Description |
string |
No |
The description of the Edge Routine. |
the description of this routine |
| EnvConf |
object |
No |
The environment configuration. |
{"staging":{"SpecName":"50ms"},"production":{"SpecName":"50ms"}} |
EnvConf parameter format
"EnvConf": { // The configuration for each environment.
"staging": { // The configuration for the staging environment.
"SpecName": "50ms"// The specification name. Call the DescribeRoutineSpec operation to query available specifications, such as 5 ms, 50 ms, and 100 ms.
}
"production": { // The configuration for the production environment.
"SpecName": "50ms"
}
}
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Content |
object |
Returns "Status": "OK". |
"Status": "OK" |
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Examples
Success response
JSON format
{
"Content": {
"test": "test",
"test2": 1
},
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
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.