Clones a CVM to a target node. Uses source node if target not specified.
cURL
curl --request POST \ --url https://cloud-api.phala.com/api/v1/apps/{app_id}/cvms/{vm_uuid}/replicas \ --header 'Content-Type: application/json' \ --data ' { "teepod_id": 123, "node_id": 123, "encrypted_env": "<string>", "compose_hash": "<string>" } '
{ "id": 123, "name": "<string>", "status": "<string>", "teepod_id": 123, "app_id": "<string>", "vcpu": 123, "memory": 123, "disk_size": 123, "created_at": "2023-11-07T05:31:56Z", "teepod": { "id": 123, "name": "<string>" }, "user_id": 123, "vm_uuid": "<string>", "instance_id": "<string>", "app_url": "<string>", "base_image": "<string>", "manifest_version": 123, "version": "<string>", "runner": "<string>", "docker_compose_file": "<string>", "features": [ "<string>" ], "encrypted_env_pubkey": "<string>" }
Hex app identifier
Source CVM UUID
Request model for CVM replication.
Target node ID (deprecated, use node_id)
Target node ID for the replica
New encrypted env blob (hex)
Explicit compose hash to replicate. Required when the source app has multiple live instances.
Replica CVM created
Show child attributes
Was this page helpful?