全部產品
Search
文件中心

Simple Log Service:CreateDownloadJob

更新時間:Jul 23, 2026

在指定的 Project 下建立一個日誌下載任務。

調試

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

調試

授權資訊

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

請求文法

POST /downloadjobs HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

project

string

Project 名稱。

ali-test-project

body

object

日誌下載任務設定。

name

string

作業名稱。其命名規則如下:

同一個 Project 下,作業的名稱不可重複。

  • 只能包含小寫字母、數字、短橫線(-)和底線(_)。

  • 必須以小寫字母或數字開頭和結尾。

  • 長度為 2-64 個字元。

download-123

description

string

日誌下載任務描述。

Log download task

configuration

object

下載設定。

logstore

string

來源 Logstore。

test-logstore

fromTime

integer

起始時間戳記(精確到秒)。

1722406260

toTime

integer

結束時間戳記(精確到秒)。

1722409860

query

string

查詢語句。

* | select *

powerSql

boolean

是否啟用 PowerSQL。列舉值:true、false。

枚舉值:

  • true :

    true

  • false :

    false

true

allowInComplete

boolean

允許下載不精確結果。列舉值:true、false。

枚舉值:

  • true :

    true

  • false :

    false

false

sink

object

匯出設定。

type

string

固定為 AliyunOSS

枚舉值:

  • AliyunOSS :

    AliyunOSS

AliyunOSS

contentType

string

下載檔案格式。枚舉值:csv,json

枚舉值:

  • csv :

    csv

  • json :

    json

csv

compressionType

string

壓縮格式。枚舉值:zstd, lz4, gzip, none

枚舉值:

  • zstd :

    zstd

  • lz4 :

    lz4

  • gzip :

    gzip

  • none :

    none

none

roleArn

string

下載使用 roleArn

acs:ram::0123456789:role/aliyunlogdefaultrole

bucket

string

Object Storage Service 桶

oss-test-bucket

prefix

string

下載到使用者 oss bucket 的路徑首碼

download/

displayName

string

顯示名稱。

download-123456789

返回參數

名稱

類型

描述

樣本值

當前API暫無返回參數

樣本

正常返回樣本

JSON格式

{}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

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

變更歷史

更多資訊,參考變更詳情