Skip to content

Get a template

GET
/templates/{template}
curl --request GET \
--url https://example.com/api/v1/templates/meeting-room

Reads one template from the catalog by name, whole: its kind and the body that kind carries. An unknown name is a 404. Gated by template:read.

template
required

The template, by name

string

The template, by name

OK

Media type application/json

An example you clone to start a standard, a component, a system or a set of locations, then own what you get.

object
$schema

A URL to the JSON Schema for this object.

string format: uri
component

A component template’s body

object
driver

The driver the attach preset is for, when it is not the product’s own

string
inputs

The attach preset: every driver input but the address, a secret input as a secret’s name

object
key
additional properties
string
product
required

The product the component is

string
properties

Declared property values, by property name

object
key
additional properties
description

What the template is for

string
kind
required

What the template creates

string
Allowed values: standard_template system_template location_template component_template
label
required

What an operator reads for the template

string
location

A location template’s body: the root of the subtree

object
label

The location’s label

string
locations

The locations nested under this one

Array<object> | null
object
label

The location’s label

string
locations
Array<object> | null recursive
name

The location’s name; omitted where its type’s name rule mints one, or the caller names it

string
systems

The system templates that land in the location

Array<object> | null
object
label

The system’s label

string
template
required

The system template that lands in the location

string
type
required

The location’s location type

string
name

The location’s name; omitted where its type’s name rule mints one, or the caller names it

string
systems

The system templates that land in the location

Array<object> | null
object
label

The system’s label

string
template
required

The system template that lands in the location

string
type
required

The location’s location type

string
name
required

The template’s name, unique across the catalog

string
standard

A standard template’s body: what creating a standard from it writes

object
choices

The exclusive-or groups of slots a conforming system answers one way

Array<object> | null
object
alternates
required

The ways to answer the choice, the first the template’s default

Array<object> | null
object
label
required

What an operator reads for the alternate

string
name
required

The alternate’s name, unique within its choice

string
label
required

What an operator reads for the choice

string
name
required

The choice’s name, unique within the standard

string
map

The layout a conforming system’s Map tab draws

object
aspect
required

The layout’s width over its height

number format: double
positions
required

Where each slot’s components sit

Array<object> | null
object
position
required

Which of the slot’s components, from 1

integer format: int64
slot
required

The slot placed

string
x
required

Horizontal position, 0 to 1 from the left

number format: double
y
required

Vertical position, 0 to 1 from the top

number format: double
metrics

The metric contract lines a standard created from it declares

Array<object> | null
object
default

The contract default, a JSON value; omitted when the line sets none

name
required

The property or metric the standard declares

string
required

Whether a conforming system must carry a value

boolean
parent

The standard template this variant hangs off; a variant is created from its template once the operator holds a standard of that name

string
properties

The property contract lines a standard created from it declares

Array<object> | null
object
default

The contract default, a JSON value; omitted when the line sets none

name
required

The property or metric the standard declares

string
required

Whether a conforming system must carry a value

boolean
slots
required

The slots a conforming system needs filled

Array<object> | null
object
accepted_types

The component types that may fill the slot; empty accepts any

Array<string> | null
alternate

The alternate of that choice the slot belongs to

string
capacity

The most components the slot takes; omitted for no cap

integer format: int64
choice

The choice the slot belongs to, when it is one way of answering a choice

string
impact

What the system loses when the slot is below quorum: outage, degraded (the default) or none

string
label
required

What an operator reads for the slot

string
name
required

The slot’s name, unique within the standard

string
pinned_products

The products the slot is pinned to; empty pins none

Array<string> | null
quorum
required

How many components must fill the slot (at least one)

integer format: int64
system

A system template’s body

object
properties

Declared system property values, by property name

object
key
additional properties
slots
required

What fills each slot, by slot name

object
key
additional properties
object
component

The component template that fills the slot

string
product

The product that fills the slot, when no component template does

string
standard
required

The standard the system conforms to, a standard template’s name

string
system_type

The system type the system is classified as

string

Example

{
"$schema": "/api/v1/schemas/TemplateBody.json",
"kind": "standard_template"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}