全部產品
Search
文件中心

Simple Log Service:CreateDownloadJob - 建立日誌下載任務

更新時間:Nov 13, 2025

在指定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

allowInComplete

boolean

允許下載不精確結果。枚舉值:true,false

false

sink

object

匯出配置

type

string

固定為 AliyunOSS

AliyunOSS

contentType

string

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

csv

compressionType

string

壓縮格式。枚舉值:zstd, lz4, gzip, 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.

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

變更歷史

更多資訊,參考變更詳情