List templates
const url = 'https://example.com/api/v1/templates?kind=standard_template';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/templates?kind=standard_template'Lists the template catalog this binary ships, ordered by kind then name, optionally one kind. A template is an example an operator clones: creating from one (POST /standards:createFromTemplate, and the same method on components, systems and locations) writes ordinary rows the operator owns, and nothing points back at the template. Gated by template:read.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Only templates of this kind; omitted lists every kind
Only templates of this kind; omitted lists every kind
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
The catalog’s templates, ordered by kind then name
An example you clone to start a standard, a component, a system or a set of locations, then own what you get.
object
A URL to the JSON Schema for this object.
A component template’s body
object
The driver the attach preset is for, when it is not the product’s own
The attach preset: every driver input but the address, a secret input as a secret’s name
object
The product the component is
Declared property values, by property name
object
What the template is for
What the template creates
What an operator reads for the template
A location template’s body: the root of the subtree
object
The location’s label
The locations nested under this one
object
The location’s label
The location’s name; omitted where its type’s name rule mints one, or the caller names it
The system templates that land in the location
object
The system’s label
The system template that lands in the location
The location’s location type
The location’s name; omitted where its type’s name rule mints one, or the caller names it
The system templates that land in the location
object
The system’s label
The system template that lands in the location
The location’s location type
The template’s name, unique across the catalog
A standard template’s body: what creating a standard from it writes
object
The exclusive-or groups of slots a conforming system answers one way
object
The ways to answer the choice, the first the template’s default
object
What an operator reads for the alternate
The alternate’s name, unique within its choice
What an operator reads for the choice
The choice’s name, unique within the standard
The layout a conforming system’s Map tab draws
object
The layout’s width over its height
Where each slot’s components sit
object
Which of the slot’s components, from 1
The slot placed
Horizontal position, 0 to 1 from the left
Vertical position, 0 to 1 from the top
The metric contract lines a standard created from it declares
object
The contract default, a JSON value; omitted when the line sets none
The property or metric the standard declares
Whether a conforming system must carry a value
The standard template this variant hangs off; a variant is created from its template once the operator holds a standard of that name
The property contract lines a standard created from it declares
object
The contract default, a JSON value; omitted when the line sets none
The property or metric the standard declares
Whether a conforming system must carry a value
The slots a conforming system needs filled
object
The component types that may fill the slot; empty accepts any
The alternate of that choice the slot belongs to
The most components the slot takes; omitted for no cap
The choice the slot belongs to, when it is one way of answering a choice
What the system loses when the slot is below quorum: outage, degraded (the default) or none
What an operator reads for the slot
The slot’s name, unique within the standard
The products the slot is pinned to; empty pins none
How many components must fill the slot (at least one)
A system template’s body
object
Declared system property values, by property name
object
What fills each slot, by slot name
object
object
The component template that fills the slot
The product that fills the slot, when no component template does
The standard the system conforms to, a standard template’s name
The system type the system is classified as
Example
{ "$schema": "/api/v1/schemas/ListTemplatesOutputBody.json", "templates": [ { "$schema": "/api/v1/schemas/TemplateBody.json", "kind": "standard_template" } ]}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
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"}