v1

latestOpenAPI 3.1.02026-07-26102158206.8 KB
CVMs

Replicate CVM

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.

post/api/v1/cvms/{cvm_id}/replicas

Path parameters

cvm_idstring required

Headers

X-Prepare-Onlystring nullable

Request body

teepod_idinteger nullable

Target node ID (deprecated, use node_id)

node_idinteger nullable

Target node ID for the replica

encrypted_envstring nullable

New encrypted env blob (hex)

compose_hashstring nullable

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

Response

Replica CVM created

{"stackTrail":"paths:/api/v1/cvms/{cvm_id}/replicas:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}