ListMaxComputeExports - 列出MaxCompute投递任务

更新时间:2025-03-28 04:03:14

列出MC投递任务。

接口说明

  • Host 由 Project 名称和日志服务 Endpoint 构成,您需要在 Host 中指定 Project。
  • 已创建并获取 AccessKey。更多信息,请参见访问密钥

阿里云账号 AccessKey 拥有所有 API 的访问权限,风险很高。强烈建议您创建并使用 RAM 用户进行 API 访问或日常运维。RAM 用户需具备操作日志服务资源的权限。具体操作,请参见创建 RAM 用户及授权

  • 已明确您查询日志所属的 Project 名称、所属地域等。如何查询,请参见管理 Project

调试

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

授权信息

当前API暂无授权信息透出。

请求语法

GET /maxcomputeexports HTTP/1.1

请求参数

名称类型必填描述示例值
名称类型必填描述示例值
projectstring

Project 名称

my-project
offsetinteger

查询开始行,默认值为 0。

0
sizeinteger

指定查询数量,默认值为 10。

10
logstorestring

Logstore 名称

my-logstore

返回参数

名称类型描述示例值
名称类型描述示例值
headersobject
Serverstring

服务器名称。

nginx
Content-Typestring

返回的响应体的内容格式。

application/json
Content-Lengthstring

响应内容长度。

0
Connectionstring

是否长链接。取值包括: close:不是长链接,则每个 HTTP 请求都会重新建立 TCP 连接。 keep-alive:长链接,TCP 连接建立后保持连接状态,节省连接所需时间和带宽。

close
x-log-requestidstring

服务端产生的标识,该请求的唯一 ID。

5B0A6B60BB6EE39764D458B5
object

Schema of Response

totalinteger

指定 Project 下所有 MaxCompute 投递任务数量

10
countinteger

当前列出的 MaxCompute 投递任务数量

2
resultsarray

具体 MaxCompute 投递任务列表

MaxComputeExport

任务配置详细

示例

正常返回示例

JSON格式

{
  "total": 10,
  "count": 2,
  "results": [
    {
      "name": "MaxComputeExport",
      "description": "MaxComputeExport",
      "displayName": "MaxComputeExport",
      "configuration": {
        "logstore": "my-logstore",
        "roleArn": "acs:ram::1234567890:role/aliyunlogdefaultrole\n",
        "sink": {
          "odpsEndpoint": "https://service.cn-hangzhou-intranet.maxcompute.aliyun-inc.com/api",
          "odpsTunnelEndpoint": "https://dt.cn-hangzhou-intranet.maxcompute.aliyun-inc.com",
          "odpsProject": "demo_project",
          "odpsTable": "demo_table",
          "odpsRolearn": "acs:ram::xxxxxxx",
          "odpsAccessKeyId": "axxxxxxxxxxxb",
          "odpsAccessSecret": "aaxxxxxxxxxxxxxxxxxxxxxbb",
          "partitionTimeFormat": "%Y_%m_%d",
          "timeZone": "+0800",
          "fields": [
            "'f1'"
          ],
          "partitionColumn": [
            "'p1'"
          ],
          "filterInvalid": true,
          "timeFormatType": "StrfTimeFormat",
          "bufferInterval": "1800"
        },
        "fromTime": 1718380800,
        "toTime": 1718390800
      },
      "createTime": 1718787534,
      "lastModifiedTime": 1718787681,
      "status": "RUNNING",
      "scheduleId": "c7f01719d9feb105fc9d8df92af62010"
    }
  ]
}

错误码

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

  • 本页导读 (1)
  • 接口说明
  • 调试
  • 授权信息
  • 请求语法
  • 请求参数
  • 返回参数
  • 示例
  • 错误码
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等