Docs
Live demo
GET/api/v2/targets/types
targets:readAPI token

List every target type with its category, the fields its creation needs and whether Principal can manage it now (available) or later (coming_soon). horizon counts the available types. The same list decides which kinds POST /targets accepts. Requires the admin or viewer role in the organization.

Responses

200

OK

TargetTypesResponse · 4 fields
horizonintegerrequired

Number of available target types. A client that groups types by roadmap wave shows only the types available now when horizon is below 30.

min 0
categoriesarray of stringrequired

Categories in display order

itemsarray of TargetTypeResponserequired
5 fields
kindstring (TargetKind)required
postgreskubernetesmysqlclickhousemongodbapplicationssh
labelstringrequired

Name to show for the type

categorystringrequired

Group of the type in a picker, one of the response categories

availabilitystring (TypeAvailability)required

available - Principal can create and use this type now. Coming_soon - listed for the roadmap, Principal refuses to create, test or sync it.

availablecoming_soon
required_fieldsarray of stringrequired

Fields of POST /targets that a target of this type needs, as dotted paths in the request body

totalintegerrequired
min 0
403

Forbidden - the caller has no admin or viewer role in the organization

Common errors: 401 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close