List what a component depends on and what depends on it
const url = 'https://example.com/api/v1/components/codec-1/dependencies';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/components/codec-1/dependenciesThis component’s dependency edges both ways: its upstreams (what it depends on) and its dependents (what depends on it), each of kind power (fed from an outlet of the upstream), host (hosted by it) or path (reached through it). A disruptive command follows host edges down from its target and a power command follows the power edges from its outlet, so these edges are what a reboot or an outlet cycle holds; a path edge holds the dependent’s in-band endpoints while its upstream’s gate is closed. Containment (a component’s parent) is a different fact and never appears here. An edge whose other end is outside the caller’s component:read is counted in hidden, never named. Gated by component:read; a component outside it is a non-disclosing 404.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1)
Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1)
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
The component, as addressed
What depends on this component, ordered by kind then dependent name
object
A URL to the JSON Schema for this object.
Name of the dependent component, the one that goes down with the upstream
The dependent component’s uuid
When the edge was recorded
How it depends: power (fed from an outlet of the upstream, a PDU), host (hosted by the upstream, a codec and the peripheral it reboots, a chassis and its line card) or path (reached through the upstream, a gateway)
The upstream’s outlet that feeds the component; set on a power edge only
Name of the component it depends on
The upstream component’s uuid
How many more edges this component has whose other end is outside the caller’s component:read: counted, never named
What this component depends on, ordered by kind then upstream name
object
A URL to the JSON Schema for this object.
Name of the dependent component, the one that goes down with the upstream
The dependent component’s uuid
When the edge was recorded
How it depends: power (fed from an outlet of the upstream, a PDU), host (hosted by the upstream, a codec and the peripheral it reboots, a chassis and its line card) or path (reached through the upstream, a gateway)
The upstream’s outlet that feeds the component; set on a power edge only
Name of the component it depends on
The upstream component’s uuid
Example
{ "$schema": "/api/v1/schemas/ListComponentDependenciesOutputBody.json", "dependents": [ { "$schema": "/api/v1/schemas/ComponentDependencyBody.json", "kind": "power" } ], "upstreams": [ { "$schema": "/api/v1/schemas/ComponentDependencyBody.json", "kind": "power" } ]}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"}