> ## Documentation Index
> Fetch the complete documentation index at: https://ppio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 创建镜像预热任务



## OpenAPI

````yaml gpus/v2-spec/create-image-prewarm.json POST /gpus/v2/prewarm-tasks
openapi: 3.0.0
info:
  title: PPIO GPU API v2
  version: 2.0.0
servers:
  - url: https://api.ppio.com
security: []
paths:
  /gpus/v2/prewarm-tasks:
    post:
      summary: 创建镜像预热任务
      parameters:
        - name: Content-Type
          in: header
          required: true
          schema:
            type: string
          description: 枚举值：application/json。
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
          description: Bearer 身份验证格式，例如：Bearer `{{API 密钥}}`。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - image
                - region_id
              properties:
                image:
                  type: string
                  description: 需要预热的完整镜像地址。字符串,长度限制:1-4095 字符。
                  example: registry.example.com/team/image:tag
                region_id:
                  type: string
                  description: 预热目标区域 ID。字符串,长度限制:1-255 字符。
                  example: region-a
                registry_auth_id:
                  type: string
                  description: 镜像仓库认证 ID。预热私有镜像时需要。字符串,长度限制:0-255 字符。
                  example: registry-auth-id
                product_ids:
                  type: array
                  items:
                    type: string
                  description: 需要预热覆盖的产品 ID 列表。
                  example:
                    - product-a
                    - product-b
                note:
                  type: string
                  description: 镜像预热任务备注。
                  example: ''
      responses:
        '200':
          description: 创建成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  task_id:
                    type: string
                    description: 镜像预热任务 ID
                    example: prewarm-task-id

````