> ## 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/migrate-instance.json PUT /gpus/v2/instances/{instance_id}/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}/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
              properties:
                save_data:
                  type: boolean
                  description: 迁移实例时是否保留已有数据。底层不支持时可能返回不支持该操作。
                  example: true
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  job_id:
                    type: string
                    description: 迁移任务 ID
                    example: job-id

````