Skip to content

Get the library as the engine's environment

GET
/api/library/environment
curl --request GET \
--url https://forge.example.com/api/library/environment \
--header 'Authorization: Bearer <token>'

The approved services, appliances, zones, controls and dependencies whose latest version says when a model should show them, in the engine’s environment shape: { items: [{ id, kind, name, zone, applies_when, text, match, type, dependency_kind }] }. An item’s id is its key, which a model’s library.item names.

OK

Media typeapplication/json
object

Example generated

{}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}