CVMs
cvms-draft

Get staged CVM changes

Changed on

Returns the CVM's staged changes, who staged each one, and the compose hash applying them produces.

get/api/v1/cvms/{cvm_id}/draft

Request

Path parameters

cvm_idstring required

Response

Successful Response

base_compose_hashstring nullable required

The CVM's compose hash when the first change was staged

current_compose_hashstring nullable required

The CVM's compose hash now; apply is rejected while it differs from the base

preview_compose_hashstring required

The compose hash the CVM runs after apply. For contract-owned KMS, register it on-chain before applying.

patchobject required

The one PATCH /cvms/{cvm_id} body the apply sends: the entries applied in order to the CVM's current compose

Example response

{
  "entries": [
    {
      "user_id": "usr_0123abcd"
    }
  ]
}

Changes