全部產品
Search
文件中心

Alibaba Cloud Model Studio:列舉匯入任務

更新時間:Jun 06, 2026

列舉當前帳號下所有的模型匯入任務。

查詢匯入工作清單

分頁查詢當前工作空間下的匯入工作清單。

地址

GET https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import

請求樣本

curl "https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import?page_no=1&page_size=10" \
    --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
    --header "Content-Type: application/json"

按狀態過濾:

curl "https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import?page_no=1&page_size=10&status=SUCCESSED" \
    --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
    --header "Content-Type: application/json"

請求參數

參數

類型

傳參方式

必選

說明

page_no

Integer

query

頁碼,預設值為1。

page_size

Integer

query

每頁條數,預設值為10,最大值為100。

status

String

query

按任務狀態過濾,參見任務狀態說明

model_name

String

query

按模型名稱過濾,需傳入響應中返回的系統產生名稱(精確匹配)。

響應樣本

{
    "request_id": "ca21****-b91b-****-bd35-c41c********",
    "output": {
        "total": 2,
        "page_no": 1,
        "page_size": 10,
        "list": [
            {
                "job_id": "937b****-2a4f-****-8abe-c2fa********",
                "model_name": "qwen3-32b-offline-20240101-abc1",
                "display_name": "我的 LoRA 調優模型",
                "status": "SUCCESSED",
                "source": "OSS",
                "storage_info": {
                    "bucket_name": "my-model-bucket",
                    "object_key": "models/qwen3-32b-lora/"
                },
                "gmt_create": "2024-01-01T12:00:00.000+00:00"
            },
            {
                "job_id": "edb0****-39ac-****-9859-8b1e********",
                "model_name": "qwen3-32b-offline-20240102-xyz4",
                "display_name": "我的全參調優模型",
                "status": "FAILED",
                "source": "OSS",
                "storage_info": {
                    "bucket_name": "my-model-bucket",
                    "object_key": "models/qwen3-32b-full/"
                },
                "error_code": "OSS擷取檔案失敗,請檢查OSS內檔案",
                "gmt_create": "2024-01-02T09:00:00.000+00:00"
            }
        ]
    }
}

響應參數

參數

類型

說明

request_id

String

請求 ID。

output.total

Integer

滿足查詢條件的任務總數。

output.page_no

Integer

當前頁碼。

output.page_size

Integer

每頁條數。

output.list

Array

匯入工作清單。每個元素的欄位與建立匯入任務的響應參數基本一致,但不包含 weight_type 欄位。任務失敗時額外包含 error_code 欄位。

異常響應

當請求發生錯誤時,介面將返回如下格式的錯誤響應:

{
    "request_id": "ca21****-b91b-****-bd35-c41c********",
    "code": "OperationDenied",
    "message": "The import job is currently running and cannot be deleted."
}

錯誤碼

錯誤碼

說明

InvalidParameter

請求參數無效。例如必填參數缺失、參數格式錯誤或參數值不合法。

NotFound

指定的資源不存在。例如 job_id 不存在、無權訪問或基本模型不支援匯入。

OperationDenied

操作被拒絕。例如對 RUNNING 狀態的任務執行刪除操作。

InvalidApiKey

API-KEY 無效或未提供。

InternalError

系統內部錯誤,請稍後重試。