查看 OpenSearch 应用定时任务详情

调试

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

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks/[taskId] HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
appGroupIdentity String Path my_app_group_name

应用名称

taskId String Path 2f12c585-5873-11ea-974a-7cd30ad3e268

任务ID

返回数据

名称 类型 示例值 描述
requestId String 922DC0D9-31B5-45F9-47B7-37DC678D61A8

请求ID

result Map {}

定时任务信息

示例

请求示例

GET /v4/openapi/app-groups/110091051/scheduled-tasks/2f12c585-5873-11ea-974a-7cd30ad3e268

正常返回示例

XML格式

<requestId>922DC0D9-31B5-45F9-47B7-37DC678D61A8</requestId>
<result>
    <id>2f12c585-5873-11ea-974a-7cd30ad3e268</id>
    <progress>60</progress>
    <status>0</status>
    <lastRanTimestamp>1593755495</lastRanTimestamp>
    <type>wipe</type>
    <running>true</running>
    <paused>false</paused>
    <finished>false</finished>
    <idle>false</idle>
    <created>1593747144</created>
    <updated>1593755504</updated>
    <cron>0 0 * * 1,2,3,4,5,6,7</cron>
    <enabled>true</enabled>
    <appId/>
    <appGroupId>110091051</appGroupId>
    <ownerId>84</ownerId>
    <lastScheduledTimestamp/>
    <forkedAppId>100304004</forkedAppId>
    <appGroup>
        <id>110091051</id>
    </appGroup>
    <owner>
        <id>84</id>
    </owner>
    <filter>
        <field>title</field>
        <days>30</days>
        <unit>s</unit>
    </filter>
</result>

JSON格式

{
    "requestId": "922DC0D9-31B5-45F9-47B7-37DC678D61A8",
    "result": {
        "id": "2f12c585-5873-11ea-974a-7cd30ad3e268",
        "progress": 60,
        "status": 0,
        "lastRanTimestamp": 1593755495,
        "type": "wipe",
        "running": true,
        "paused": false,
        "finished": false,
        "idle": false,
        "created": 1593747144,
        "updated": 1593755504,
        "cron": "0 0 * * 1,2,3,4,5,6,7",
        "enabled": true,
        "appId": "",
        "appGroupId": 110091051,
        "ownerId": 84,
        "lastScheduledTimestamp": "",
        "forkedAppId": 100304004,
        "appGroup": {
            "id": 110091051
        },
        "owner": {
            "id": 84
        },
        "filter": {
            "field": "title",
            "days": 30,
            "unit": "s"
        }
    }
}

错误码

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