Creates a CVM for GPU workloads. Node is auto-selected from available GPU nodes.
cURL
curl --request POST \ --url https://cloud-api.phala.com/api/v1/cvms/workload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "instance_type": "<string>", "model_id": "<string>", "scheduled_delete_at": "2023-11-07T05:31:56Z" } '
{ "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>" }
The access token received from the authorization server in the OAuth 2.0 flow.
The name of the tapp.
The instance_type of the tapp.
The model_id of the tapp.
The scheduled delete time of the tapp.
Created CVM record
Show child attributes
Was this page helpful?