Queries the execution status of scripts in EdgeScript (ES).

Note
  • If you do not configure the StartTime or EndTime parameter, data collected over the last 24 hours is queried. If you configure both the StartTime and EndTime parameters, data collected within the specified time range is queried.
  • You can call this operation up to 30 times per second.

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 DescribeDcdnEsExecuteData

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

EndTime String Yes 2021-02-18T20:00:00Z

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0.

Note The end time must be later than the start time.
RuleId String Yes 21289***

The ID of the script that you want to query. You can call the DescribeDcdnDomainConfigs operation to query script IDs.

StartTime String Yes 2021-02-17T20:00:00Z

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0.

Response parameters

Parameter Type Example Description
Contents Array of Content

The content of the script.

Columns List time,Exception

The column names of the table that shows the status of the script and the time of each data entry.

Name String Exception

The name of the table that shows the status of the script.

Points List 2021-02-18T19:05:00Z,8

The value of each column and the time of each data entry.

RequestId String 87DA52FC-8E41-1E67-9B42-D3BF5C256FCD

The ID of the request.

Examples

Sample requests

https://dcdn.aliyuncs.com?Action=DescribeDcdnEsExecuteData&RuleId=21289654
&EndTime=2021-02-18T20:00:00Z
&RuleId=21289***
&StartTime=2021-02-17T20:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnEsExecuteDataResponse>
<RequestId>87DA52FC-8E41-1E67-9B42-D3BF5C256FCD</RequestId>
<content>
    <columns>time</columns>
    <columns>Exception</columns>
    <name>Exception</name>
    <points>
        <0>2021-02-18T19:07:00Z</0>
        <1>6</1>
    </points>
    <points>
        <0>2021-02-18T19:06:00Z</0>
        <1>6</1>
    </points>
    <points>
        <0>2021-02-18T19:05:00Z</0>
        <1>8</1>
    </points>
</content>
<content>
    <columns>time</columns>
    <columns>ExecutedAndHit</columns>
    <name>ExecutedAndHit</name>
    <points>
        <0>2021-02-18T19:07:00Z</0>
        <1>0</1>
    </points>
    <points>
        <0>2021-02-18T19:06:00Z</0>
        <1>0</1>
    </points>
    <points>
        <0>2021-02-18T19:05:00Z</0>
        <1>0</1>
    </points>
</content>
</DescribeDcdnEsExecuteDataResponse>

JSON format

{
    "RequestId": "87DA52FC-8E41-1E67-9B42-D3BF5C256FCD",
    "content": [
        {
            "columns": [
                "time",
                "Exception"
            ],
            "name": "Exception",
            "points": [
                [
                    "2021-02-18T19:07:00Z",
                    6
                ],
                [
                    "2021-02-18T19:06:00Z",
                    6
                ],
                [
                    "2021-02-18T19:05:00Z",
                    8
                ]
            ]
        } ,  
        {
            "columns": [
                "time",
                "ExecutedAndHit"
            ],
            "name": "ExecutedAndHit",
            "points": [
                [
                    "2021-02-18T19:07:00Z",
                    0
                ],
                [
                    "2021-02-18T19:06:00Z",
                    0
                ],
                [
                    "2021-02-18T19:05:00Z",
                    0
                ]
            ]
        }
    ]
}

Error codes

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