Apps
Create CVM replica
Changed onClones a CVM to a target node. Uses source node if target not specified.
post/api/v1/apps/{app_id}/cvms/{vm_uuid}/replicas
Request
- Base URLhttps://cloud-api.phala.com
- Authnone declared
- TypeScripthttps://skmtc.dev/phala/apis/phala-cloud-api/docs/api/v1/apps/:app_id/cvms/:vm_uuid/replicas/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
app_idstring required
Hex app identifier
vm_uuidstring required
Source CVM UUID
Headers
X-Prepare-Onlystring nullable
Request body
Response
Replica CVM 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
/
- breaking