简体中文
cURL
curl --request POST \ --url https://api.ppinfra.com/gpu-instance/openapi/v1/gpu/instance/create \ --header 'Authorization: <authorization>' \ --header 'Content-Type: <content-type>' \ --data '{ "name": "<string>", "productId": "<string>", "gpuNum": 123, "rootfsSize": 123, "imageUrl": "<string>", "imageAuth": "<string>", "imageAuthId": "<string>", "ports": "<string>", "envs": [ { "key": "<string>", "value": "<string>" } ], "tools": [ { "name": "<string>", "port": "<string>", "type": "<string>" } ], "command": "<string>", "clusterId": "<string>", "networkStorages": [ { "Id": "<string>", "mountPoint": "<string>" } ], "networkId": "<string>", "kind": "<string>", "month": 123 }'
{ "id": "<string>" }
Show properties