Create a new instance under an existing app
Changed onDeploy a new CVM instance under an existing app, optionally with a new Docker Compose file. For on-chain KMS apps, this uses a two-phase flow: the first request returns HTTP 465 with a commit token; after registering the compose hash on-chain, the second request commits with the token and transaction hash.
Request
- Base URLhttps://cloud-api.phala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Hex app identifier
Request body
Response
Instance created
Example response
{
"id": "cvm_0123abcd",
"user_id": "usr_0123abcd"
}Changes
- breaking
response property
idlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200 - breaking
response property
user_idlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200 - warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- breaking