Skip to content

List what a component depends on and what depends on it

GET
/components/{name}/dependencies
curl --request GET \
--url https://example.com/api/v1/components/codec-1/dependencies

This 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.

name
required

Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1)

string

Name of the component, or a dotted address (e.g. boi.17c.415a.$comp.display-1)

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
component
required

The component, as addressed

string
dependents
required

What depends on this component, ordered by kind then dependent name

Array<object> | null
object
$schema

A URL to the JSON Schema for this object.

string format: uri
component
required

Name of the dependent component, the one that goes down with the upstream

string
component_id
required

The dependent component’s uuid

string
created_at
required

When the edge was recorded

string format: date-time
kind
required

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)

string
Allowed values: power host path
outlet

The upstream’s outlet that feeds the component; set on a power edge only

string
upstream
required

Name of the component it depends on

string
upstream_id
required

The upstream component’s uuid

string
hidden
required

How many more edges this component has whose other end is outside the caller’s component:read: counted, never named

integer format: int64
upstreams
required

What this component depends on, ordered by kind then upstream name

Array<object> | null
object
$schema

A URL to the JSON Schema for this object.

string format: uri
component
required

Name of the dependent component, the one that goes down with the upstream

string
component_id
required

The dependent component’s uuid

string
created_at
required

When the edge was recorded

string format: date-time
kind
required

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)

string
Allowed values: power host path
outlet

The upstream’s outlet that feeds the component; set on a power edge only

string
upstream
required

Name of the component it depends on

string
upstream_id
required

The upstream component’s uuid

string

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"
}
]
}

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"
}