Request Headers
Enum:
application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Query Parameters
ID of the template being queried.
Response
Template settings.
Show properties
Show properties
Template ID.
Template creation time.
ID of the user who created the template.
List of tools associated with the template.
Template name.
Template README content (in Markdown format).
Template type.Enum:
instance
Template channel.Enum:
private
Docker image address for instance startup.
Credentials for the Docker image registry to pull private images.
Startup command for the instance.
Rootfs storage (GB).
Example
RequestCopy
curl --request GET \
--url 'https://api.novita.ai/gpu-instance/openapi/v1/template' \
--header 'Authorization: Bearer {{API Key}}'
Copy
{
"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"
}
}