Create a replica of the CVM on a target node. If request body is omitted, it replicates to the source node and reuses existing env.
cURL
curl --request POST \ --url https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/replicas \ --header 'Content-Type: application/json' \ --data ' { "teepod_id": 123, "node_id": 123, "encrypted_env": "<string>", "compose_hash": "<string>" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
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
Was this page helpful?