Skip to main content
POST
/
api
/
v1
/
cvms
/
{cvm_id}
/
replicas
Replicate CVM
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>"
    }
  ]
}

Headers

X-Prepare-Only
string | null

Path Parameters

cvm_id
string
required

Body

application/json

Request model for CVM replication.

teepod_id
integer | null

Target node ID (deprecated, use node_id)

node_id
integer | null

Target node ID for the replica

encrypted_env
string | null

New encrypted env blob (hex)

compose_hash
string | null

Explicit compose hash to replicate. Required when the source app has multiple live instances.

Response

Replica CVM created