Skip to main content
GET
/
v1
/
templates
Get templates list
curl --request GET \
  --url https://console.gmicloud.ai/api/v1/templates \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "official": true,
    "name": "<string>",
    "path": "<string>",
    "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "credential": {
      "secret": "",
      "username": ""
    },
    "description": "",
    "status": "published"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

successful

id
string<uuid>
required
official
boolean
required

true means the template is provided by GMI Cloud and it's read only.

name
string
required
Maximum string length: 255
Pattern: ^([A-Za-z0-9][A-Za-z0-9_\-. ]*)?[A-Za-z0-9]$
path
string<uri>
required
Maximum string length: 253
Pattern: ^\S+$
orgId
string<uuid>
credential
object
description
string
default:""
Maximum string length: 4096
status
enum<string>
default:published
Available options:
draft,
published,
unpublished