curl --request GET \
--url https://api.novita.ai/gpu-instance/openapi/v1/template \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
{
"template": {
"Id": "<string>",
"createTime": "<string>",
"user": "<string>",
"tools": [
"<string>"
],
"name": "<string>",
"readme": "<string>",
"type": "<string>",
"channel": "<string>",
"image": "<string>",
"imageAuth": "<string>",
"startCommand": "<string>",
"rootfsSize": 123,
"volumes": [
{
"type": "<string>",
"size": 123,
"mountPath": "<string>"
}
],
"ports": [
{
"type": "<string>",
"ports": {}
}
],
"envs": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
curl --request GET \
--url https://api.novita.ai/gpu-instance/openapi/v1/template \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
{
"template": {
"Id": "<string>",
"createTime": "<string>",
"user": "<string>",
"tools": [
"<string>"
],
"name": "<string>",
"readme": "<string>",
"type": "<string>",
"channel": "<string>",
"image": "<string>",
"imageAuth": "<string>",
"startCommand": "<string>",
"rootfsSize": 123,
"volumes": [
{
"type": "<string>",
"size": 123,
"mountPath": "<string>"
}
],
"ports": [
{
"type": "<string>",
"ports": {}
}
],
"envs": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
application/json
Show properties
instance
private
curl --request GET \
--url 'https://api.novita.ai/gpu-instance/openapi/v1/template' \
--header 'Authorization: Bearer {{API Key}}'
{
"template": {
"Id": "212",
"user": "9141320498493177",
"name": "ubuntu",
"readme": "readme",
"logo": "",
"type": "instance",
"channel": "private",
"image": "ubuntu:latest",
"imageAuth": "",
"startCommand": "",
"rootfsSize": 10,
"volumes": [
{
"type": "local",
"size": 20,
"mountPath": "/workspace"
}
],
"ports": [
{
"type": "tcp",
"ports": [8080, 8090]
},
{
"type": "http",
"ports": [6000, 60001]
}
],
"envs": [
{
"key": "testkey",
"value": "123"
}
],
"tools": [],
"createTime": "1713162260"
}
}
Was this page helpful?