> ## 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/set-auto-migrate.json PUT /gpus/v2/instances/{instance_id}/auto-migrate
openapi: 3.0.0
info:
  title: PPIO GPU API v2
  version: 2.0.0
servers:
  - url: https://api.ppio.com
security: []
paths:
  /gpus/v2/instances/{instance_id}/auto-migrate:
    put:
      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 密钥}}`。
        - name: instance_id
          in: path
          required: true
          schema:
            type: string
          description: 实例 ID。字符串,长度限制:1-255 字符。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - auto_migrate
              properties:
                auto_migrate:
                  type: object
                  description: 自动迁移配置。
                  properties:
                    enabled:
                      type: boolean
                      description: 是否开启自动迁移。
                      example: true
                    include_system_disk:
                      type: boolean
                      description: 自动迁移时是否包含系统盘。
                      example: true
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object

````