latestOpenAPI 3.0.12026-08-10114644.5 KB

998cc08df103

OpenapiPod

Create pod

Create pod

post/openapi/v1/pods/create

Request body

imagePublicTypestring

ImagePublicTypeEnum: PUBLIC, PRIVATE

resourceTypestring

ResourceTypeEnum: GPU,CPU

regionstring

Region

regionListstring[]

Region List

podNamestring

pod nick name

imagestring required

image name

imageRegistrystring

image registry url

credentialIdinteger

container registry credential ID

imageRegistryUsernamestring

image registry username

imageRegistryTokenstring

image registry token or password

gpuTypestring required

gpu type

gpuCountinteger

gpu count

isSpotboolean

Create on Spot resource when true; default false

maxPricenumber

Spot instance max hourly price cap for the whole machine; only valid when isSpot=true

shmInGbinteger

shm unit:GB

minSingleCardRamInGbinteger

min single card ram unit: GB

minSingleCardVramInGbinteger

min single card vram unit: GB

minSingleCardVcpuinteger

min single card vcpu unit: count

containerVolumeInGbinteger

container volume unit:GB

initializationCommandstring

initialization command

callbackUrlstring

Pod lifecycle webhook callback URL. When creating a Pod, you can provide a callbackUrl in the request body. The platform will send HTTP POST notifications to this URL whenever the Pod transitions into a key lifecycle state (RUNNING, TERMINATED, FAILED, or DEGRADED).

Response

OK