调用DescribeRoutine获取某个边缘程序ER(EdgeRoutine)的元信息,包括每个环境的ER配置,配置版本,代码版本等信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeRoutine

系统规定参数。取值:DescribeRoutine

Name String test

边缘程序名, 同一个账号下命名唯一。

返回数据

名称 类型 示例值 描述
Content Map CodeRevs、EnvConf、Description、Envs和CreationTime

包含EdgeRoutine的各项信息。

RequestId String 4DBA68F5-04A9-406B-B1E4-F2CB635E103F

请求ID。

示例

请求示例

http://dcdn.aliyuncs.com/?Action=DescribeRoutine&Name="test"&<公共请求参数>

正常返回示例

XML格式

<RequestId>4DBA68F5-04A9-406B-B1E4-F2CB635E103F</RequestId>
<Content>
    <CodeRevs>
        <CodeDescription>IkhlbGxvIFdvcmxkIg==</CodeDescription>
        <CreationTime>2021-05-31T13:20:14Z</CreationTime>
        <CodeRevision>1622467214654495147</CodeRevision>
    </CodeRevs>
    <CodeRevs>
        <CodeDescription>IkhlbGxvIFdvcmxkIg==</CodeDescription>
        <CreationTime>2021-05-31T13:20:36Z</CreationTime>
        <CodeRevision>1622467236337778954</CodeRevision>
    </CodeRevs>
    <CodeRevs>
        <CodeDescription>IkhlbGxvIFdvcmxkIEZyb20gU3RhZ2luZyBFbnYi</CodeDescription>
        <CreationTime/>
        <CodeRevision>unstable</CodeRevision>
    </CodeRevs>
    <CodeRevs>
        <CodeDescription>SGVsbG8gV29ybGQgRnJvbSBDb21taXQ=</CodeDescription>
        <CreationTime>2021-05-31T13:25:44Z</CreationTime>
        <CodeRevision>1622467544804919489</CodeRevision>
    </CodeRevs>
    <EnvConf>
        <Preset_Canary_Zhejiang>
            <SpecName>100ms</SpecName>
            <CodeRev>1622467236337778954</CodeRev>
            <AllowedHosts>test-e.alicdn.com</AllowedHosts>
            <AllowedHosts>test-f.alicdn.com</AllowedHosts>
        </Preset_Canary_Zhejiang>
        <Staging>
            <SpecName>50ms</SpecName>
            <CodeRev/>
            <AllowedHosts>test-a.alicdn.com</AllowedHosts>
            <AllowedHosts>test-b.alicdn.com</AllowedHosts>
        </Staging>
        <Preset_Canary_Beijing>
            <SpecName>5ms</SpecName>
            <CodeRev>1622467236337778954</CodeRev>
            <AllowedHosts>test-g.alicdn.com</AllowedHosts>
            <AllowedHosts>test-h.alicdn.com</AllowedHosts>
        </Preset_Canary_Beijing>
        <Production>
            <SpecName>50ms</SpecName>
            <CodeRev>1622467236337778954</CodeRev>
            <AllowedHosts>test-c.alicdn.com</AllowedHosts>
            <AllowedHosts>test-d.alicdn.com</AllowedHosts>
        </Production>
    </EnvConf>
    <Description>InRoZSBkZXNjcmlwdGlvbiBvZiB0aGlzIHJvdXRpbmUi</Description>
    <Envs>Production</Envs>
    <Envs>Staging</Envs>
    <Envs>Preset_Canary_Zhejiang</Envs>
    <Envs>Preset_Canary_Beijing</Envs>
    <CreationTime>2021-05-31T13:14:23.132925407Z</CreationTime>
</Content>

JSON格式

{
    "RequestId": "4DBA68F5-04A9-406B-B1E4-F2CB635E103F",
    "Content": {
        "CodeRevs": [
            {
                "CodeDescription": "IkhlbGxvIFdvcmxkIg==",
                "CreationTime": "2021-05-31T13:20:14Z",
                "CodeRevision": "1622467214654495147"
            },
            {
                "CodeDescription": "IkhlbGxvIFdvcmxkIg==",
                "CreationTime": "2021-05-31T13:20:36Z",
                "CodeRevision": "1622467236337778954"
            },
            {
                "CodeDescription": "IkhlbGxvIFdvcmxkIEZyb20gU3RhZ2luZyBFbnYi",
                "CreationTime": "",
                "CodeRevision": "unstable"
            },
            {
                "CodeDescription": "SGVsbG8gV29ybGQgRnJvbSBDb21taXQ=",
                "CreationTime": "2021-05-31T13:25:44Z",
                "CodeRevision": "1622467544804919489"
            }
        ],
        "EnvConf": {
            "Preset_Canary_Zhejiang": {
                "SpecName": "100ms",
                "CodeRev": "1622467236337778954",
                "AllowedHosts": [
                    "test-e.alicdn.com",
                    "test-f.alicdn.com"
                ]
            },
            "Staging": {
                "SpecName": "50ms",
                "CodeRev": "",
                "AllowedHosts": [
                    "test-a.alicdn.com",
                    "test-b.alicdn.com"
                ]
            },
            "Preset_Canary_Beijing": {
                "SpecName": "5ms",
                "CodeRev": "1622467236337778954",
                "AllowedHosts": [
                    "test-g.alicdn.com",
                    "test-h.alicdn.com"
                ]
            },
            "Production": {
                "SpecName": "50ms",
                "CodeRev": "1622467236337778954",
                "AllowedHosts": [
                    "test-c.alicdn.com",
                    "test-d.alicdn.com"
                ]
            }
        },
        "Description": "InRoZSBkZXNjcmlwdGlvbiBvZiB0aGlzIHJvdXRpbmUi",
        "Envs": [
            "Production",
            "Staging",
            "Preset_Canary_Zhejiang",
            "Preset_Canary_Beijing"
        ],
        "CreationTime": "2021-05-31T13:14:23.132925407Z"
    }
}

错误码

HttpCode 错误码 错误信息 描述
400 EdgeRoutine.GeneralError A server error occurred: %s 后端服务器发生错误:%s 。如果重试多次依然报错,请提交工单。

访问错误中心查看更多错误码。