Queries the metadata of a specified routine. The metadata includes the routine configuration, configuration version, and code version.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeRoutine

The operation that you want to perform. Set the value to DescribeRoutine.

Name String Yes test

The name of the routine. The name must be unique among the routines that belong to the same Alibaba Cloud account.

Response parameters

Parameter Type Example Description
Content Map CodeRevs, EnvConf, Description, Envs, and CreationTime

The metadata of the routine.

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

The ID of the request.

Examples

Sample requests

http://dcdn.aliyuncs.com/?Action=DescribeRoutine&Name="test"&<Common request parameters>

Sample success responses

XML format

<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 format

{
    "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"
    }
}

Error codes

HttpCode Error code Error message Description
400 EdgeRoutine.GeneralError A server error occurred: %s The error message returned because an error %s occurred on the server. If the problem persists, submit a ticket.

For a list of error codes, visit the API Error Center.