v1

latestOpenAPI 3.1.02026-07-26102158206.8 KB
Apps

Create CVM replica

Clones a CVM to a target node. Uses source node if target not specified.

post/api/v1/apps/{app_id}/cvms/{vm_uuid}/replicas

Path parameters

app_idstring required

Hex app identifier

Hex app identifier

vm_uuidstring required

Source CVM UUID

Source CVM UUID

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

idinteger required
namestring required
statusstring required
teepod_idinteger required
user_idinteger nullable
app_idstring required
vm_uuidstring nullable
instance_idstring nullable
app_urlstring nullable
base_imagestring nullable
vcpuinteger required
memoryinteger required
disk_sizeinteger required
manifest_versioninteger nullable
versionstring nullable
runnerstring nullable
docker_compose_filestring nullable
featuresstring[] nullable
created_atstring date-time required
encrypted_env_pubkeystring nullable