Queries the environment variables of a Routine.
Operation description
This operation allows you to perform a paged query of all Edge Routines (Routines) created under your account, and provides the Routine quota and usage for your current plan. You can specify the paging parameters PageNumber and PageSize to control the number of returned results, and use SearchKeyWord to perform a fuzzy search to filter specific Routine names.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The function name. |
my_routine |
| Env |
string |
Yes |
The environment name. Valid values:
Valid values:
|
production |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 20. |
10 |
| KeyWord |
string |
No |
The keyword used to perform a case-insensitive fuzzy search on environment variable keys. |
LOG |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
EEEBE525-F576-1196-8DAF-2D70CA3F4D2F |
| Count |
integer |
The number of environment variables. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The page size. |
10 |
| TotalCount |
integer |
The total number of environment variables. |
16 |
| EnvironmentVariables |
object |
The environment variable dictionary. |
|
|
object |
The environment variable object. |
||
| Type |
string |
The environment variable type. Valid values:
Valid values:
|
plain_text |
| Value |
string |
The environment variable value. |
value |
Examples
Success response
JSON format
{
"RequestId": "EEEBE525-F576-1196-8DAF-2D70CA3F4D2F",
"Count": 10,
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 16,
"EnvironmentVariables": {
"key": {
"Type": "plain_text",
"Value": "value"
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.