全部產品
Search
文件中心

Simple Log Service:GetMaxComputeExport - 擷取MaxCompute投遞任務

更新時間:Dec 23, 2025

擷取MaxCompute投遞任務資訊。

介面說明

  • Host 由 Project 名稱和Log Service Endpoint 構成,您需要在 Host 中指定 Project。

  • 已建立並擷取 AccessKey。更多資訊,請參見存取金鑰

阿里雲帳號 AccessKey 擁有所有 API 的存取權限,風險很高。強烈建議您建立並使用 RAM 使用者進行 API 訪問或日常營運。RAM 使用者需具備動作記錄服務資源的許可權。具體操作,請參見建立 RAM 使用者及授權

  • 已明確您查詢日誌所屬的 Project 名稱、所屬地區等。如何查詢,請參見管理 Project

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

GET /maxcomputeexports/{mcExportName} HTTP/1.1

路徑參數

名稱

類型

必填

描述

樣本值

mcExportName

string

已存在的唯一任務名稱

export-mc-123456789-123456

請求參數

名稱

類型

必填

描述

樣本值

project

string

Project 名稱

my-project

返回參數

名稱

類型

描述

樣本值

MaxComputeExport

任務配置詳細

樣本

正常返回樣本

JSON格式

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

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情