Component - script API
Functions to get access to specific component data.
This page describes StackState version 4.3.
The StackState 4.3 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.3 version range to upgrade to a more recent release.
Get access to a component by its id.
Args:
id
- id of the component we are querying for. Each component has a unique randomly assigned id number.
Builder methods
Each of the methods below give you a Async result with a set of properties
get
- Gets components details in full with following fieldsid
name
description
lastUpdateTimestamp
type
layer
domain
environments
state
runState
outgoingRelations
incomingRelations
synchronized
failingChecks
iconbase64
visible
checks
- Gets a list of component checks each with the following fieldsid
lastUpdateTimestamp`
name
description
remediationHint
function
arguments
state
syncCreated
domain
- Gets the domain the component belongs to with the following fieldsid
lastUpdateTimestamp
name
description
order
identifier
streams
- Gets a list of component streams each with the following fieldsid
lastUpdateTimestamp
name
description
priority
dataType
dataSource
query
type
- Gets the component type of the given component with the following fieldsid
lastUpdateTimestamp
name
description
iconbase64
identifier
layer
- Gets the layer for the component with the following fieldsid
lastUpdateTimestamp
name
description
order
identifier
environments
- Gets a list of environments this component belongs to with following fieldsid
lastUpdateTimestamp
name
description
identifier
ownedBy
propagation
- Get the propagation for the component if any with the following fieldsid
lastUpdateTimestamp
function
arguments
Examples:
This example returns the name of the layer for the component with id
123
. After getting the layer the AsyncScriptResult then
function is used to get the name of the layer.Component.withId(123).layer().then { it.name }
Last modified 1yr ago