Skip to main content
PATCH
/
api
/
v1
/
cvms
/
{cvm_id}
/
instance-id
Refresh CVM instance ID
curl --request PATCH \
  --url https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/instance-id \
  --header 'Content-Type: application/json' \
  --data '
{
  "overwrite": false,
  "dry_run": false
}
'
{
  "cvm_id": 123,
  "identifier": "<string>",
  "status": "updated",
  "old_instance_id": "<string>",
  "new_instance_id": "<string>",
  "source": "none",
  "verified_with_gateway": false,
  "reason": "<string>"
}

Path Parameters

cvm_id
string
required

Body

application/json
overwrite
boolean
default:false

Overwrite existing instance_id when different

dry_run
boolean
default:false

Preview changes without persisting

Response

Successful Response

cvm_id
integer
required
identifier
string
required
status
enum<string>
required
Available options:
updated,
unchanged,
skipped,
conflict,
error
old_instance_id
string | null
new_instance_id
string | null
source
enum<string>
default:none
Available options:
teepod_state,
teepod_info,
gateway,
none
verified_with_gateway
boolean
default:false
reason
string | null