CVMs
Update pre-launch script
Changed onReplaces the pre-launch script and restarts the CVM. For contract-owned KMS, requires two-phase flow with on-chain hash registration.
patch/api/v1/cvms/{cvm_id}/pre-launch-script
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
Headers
X-Compose-Hashstring nullable
Compose hash from Phase 1 response
X-Transaction-Hashstring nullable
Transaction hash proving on-chain registration
Request body multipart/form-data
Response
Update initiated, track via correlation_id
unknown required
Changes
- info
added the non-success response with the status
- info