查询边缘函数Routine的所有配置信息,包含代码版本列表、环境配置信息列表、关联域名配置信息列表、关联路由配置信息列表等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:GetRoutine |
none |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
边缘函数 Routine 名。 |
test-routine1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| Envs |
array<object> |
环境信息列表。 |
|
|
array<object> |
环境信息。 |
||
| Env |
string |
环境名。 |
production |
| CodeDeploy |
object |
比例灰度版本部署信息。 |
|
| DeployId |
string |
部署记录 ID。 |
589267 |
| CreationTime |
string |
部署创建时间。 |
2023-05-11T09:21:36Z |
| Strategy |
string |
部署策略。默认 percentage。 枚举值:
|
percentage |
| CodeVersions |
array<object> |
部署代码版本号列表。 |
|
|
object |
单个部署代码版本信息。 |
||
| CodeVersion |
string |
代码版本号。 |
1746583193971399525 |
| Percentage |
integer |
代码版本灰度部署比例。 |
100 |
| Description |
string |
代码版本描述。 |
code version 1. |
| CreateTime |
string |
代码版本创建时间。 |
2025-07-23T09:01:40Z |
| CreateTime |
string |
边缘函数 Routine 创建时间。 |
2024-03-11T01:23:21Z |
| Description |
string |
边缘函数 Routine 描述。 |
ZWRpdCByb3V0aW5lIGNvbmZpZyBkZXNjcmlwdGlvbg |
| DefaultRelatedRecord |
string |
默认接入访问记录。 |
routine1.example.com |
| HasAssets |
boolean |
Routine 是否带 Assets 标记。 |
false |
示例
正常返回示例
JSON格式
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"Envs": [
{
"Env": "production",
"CodeDeploy": {
"DeployId": "589267",
"CreationTime": "2023-05-11T09:21:36Z",
"Strategy": "percentage",
"CodeVersions": [
{
"CodeVersion": "1746583193971399525",
"Percentage": 100,
"Description": "code version 1.",
"CreateTime": "2025-07-23T09:01:40Z"
}
]
}
}
],
"CreateTime": "2024-03-11T01:23:21Z\n",
"Description": "ZWRpdCByb3V0aW5lIGNvbmZpZyBkZXNjcmlwdGlvbg",
"DefaultRelatedRecord": "routine1.example.com",
"HasAssets": false
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | InvalidParameter | Parameter verification failed. Check your configurations and try again. | 输入的参数校验不通过,请您核对参数的正确性后重试。 |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | 输入的函数名不存在,请您核对函数名,再重试。 |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。