CVMs
Redeploy CVM from a specific revision
Changed onSwitch/rollback a CVM to a specified app revision (compose_hash). Does not change encrypted env unless encrypted_env is supplied. A mismatch between allowed_envs and the last env write is rejected unless encrypted_env is supplied or allow_env_mismatch is true.
post/api/v1/cvms/{cvm_id}/revisions/{revision_id}/redeploy
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
revision_idstring required
External AppRevisionId (prefix 'rev_'). Fully prefixed string required; bare payloads and raw integers are rejected.
Example:rev_0123abcd
Query parameters
transaction_hashstring nullable
Optional transaction hash proving on-chain compose hash registration
Request body
Response
Activation initiated
unknown required
Changes
- info
added optional request body
- info
added the non-success response with the status
- info