列出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
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
project | string | 是 | Project 名称 | my-project |
offset | integer | 否 | 查询开始行,默认值为 0。 | 0 |
size | integer | 否 | 指定查询数量,默认值为 10。 | 10 |
logstore | string | 否 | Logstore 名称 | my-logstore |
返回参数
示例
正常返回示例
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"
}
]
}
错误码
访问错误中心查看更多错误码。