Bearer authentication format, for example: Bearer {{API Key}}.
Query Parameters
Maximum number of entries returned on one page.
Filter the templates by name.
Filter the templates by type.
Filter the templates by channel.
Response
ID of the user who created the template.
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.
Exposed ports settings.
Exposed port types.Enum: http, tcp
Exposed ports (maximum 10).
Environment variables injected into instance.
Environment variable key.
Environment variable value.
Maximum number of entries returned on one page.
Total number of templates.
Example
Request
curl --request GET \
--url 'https://api.novita.ai/gpu-instance/openapi/v1/templates' \
--header 'Authorization: Bearer {{API Key}}'
Response
{
"template": [
{
"Id": "100",
"user": "1032922317920824",
"name": "name",
"readme": "```\nreadme\n```\n# uiohiu\n68686",
"logo": "",
"type": "instance",
"channel": "private",
"image": "image",
"imageAuth": "",
"startCommand": "startCommand",
"rootfsSize": 10,
"volumes": [
{
"type": "local",
"size": 20,
"mountPath": "localVolumeMount"
}
],
"ports": [
{
"type": "tcp",
"ports": [8080, 8090]
},
{
"type": "http",
"ports": [6000, 60001]
}
],
"envs": [
{
"key": "testkey",
"value": "123"
}
],
"tools": [],
"createTime": "1711995567"
}
],
"pageSize": 1,
"pageNum": 0,
"total": 10
}