CVMs
cvms-draft
Stage CVM changes
Changed onAdds an update to the CVM's staged changes without restarting it. The body is the PATCH /cvms/{cvm_id} body. Applying runs the staged compose changes in order on the CVM's compose; other fields take the last staged value. Scripts this change sends are reviewed as the draft would leave them. The first staged change records the CVM's compose hash.
patch/api/v1/cvms/{cvm_id}/draft
Request
- Base URLhttps://cloud-api.phala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cvm_idstring required
Request body
Response
Successful Response
Example response
{
"entries": [
{
"user_id": "usr_0123abcd"
}
]
}Changes
- info
endpoint added
- info