CVMs

Batch refresh CVM instance IDs

Changed on

Resolves and persists missing instance_id values. Admin can pass cross-workspace CVM IDs.

patch/api/v1/cvms/instance-ids

Request

Request body

cvm_idsstring[] nullable

Optional CVM identifiers. Admin can pass cross-workspace IDs.

running_onlyboolean

Only process CVMs with status=running

missing_onlyboolean

Only process CVMs with missing instance_id

overwriteboolean

Overwrite existing instance_id when different

limitinteger

Max CVMs to process in one request

dry_runboolean

Preview changes without persisting

Response

Successful Response

OR

Example response

{
  "items": [
    {
      "cvm_id": "cvm_0123abcd"
    }
  ]
}

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added to the response body anyOf list for the response status