The following details the API used to retrieve information about Assembly instances within TNC-O.
Associated with each definition are details of the request parameters and responses. These include the name of each field plus a brief description and whether the field is mandatory. Whether a field is required or not is based on the context of the examples. The underlying API definition may mark a field as optional, but in some contexts, the fields must be supplied.
The type of entity being returned – always “Assembly”
id
The internal id of the Assembly
name
The name of the Assembly
state
The current state of the Assembly (Installed, Inactive, Active). This field may be missing if the Assembly has not reached the Installed state
descriptorName
The name of the Assembly descriptor associated with the Assembly instance
properties
A collection of Assembly level properties. Each property will have a name and value field
createdAt
The date and time the Assembly was created
lastModifiedAt
The date and time the Assembly was last modified
children
A collection of components that make up the Assembly. When the component is of ‘type’ ‘Assembly’ the contents are the same as for the top level assembly. When the ‘type’ is ‘component’ the entry is in fact a Resource. This will have a type, name, ID and a set of associated properties
relationships
A collection of relationships associated with the Assembly instance. Each relationship has a name and the ID of the source and target components involved in the relationship. Relationships also have a property section
references
A collection of references used by the Assembly. References can be to Resources provided by Resource Managers but not created using any Assembly and other existing Assembly instances
Retrieve information about an Assembly instance using it’s name.
Request
Aspect
Value
Endpoint URL
/api/topology/assemblies?name={name}
HTTP Method
GET
Query Parameters
Field
Description
Mandatory
name
name of the Assembly to retrieve
Yes
Response
Aspect
Value
Content-Type
application/json
Response Code
200 (OK)
Body
Field
Description
type
The type of entity being returned – always “Assembly”
id
The internal id of the Assembly
name
The name of the Assembly
state
The current state of the Assembly (Installed, Inactive, Active). This field may be missing if the Assembly has not reached the Installed state
descriptorName
The name of the Assembly descriptor associated with the Assembly instance
properties
A collection of Assembly level properties. Each property will have a name and value field
createdAt
The date and time the Assembly was created
lastModifiedAt
The date and time the Assembly was last modified
children
A collection of components that make up the Assembly. When the component is of ‘type’ ‘Assembly’ the contents are the same as for the top level assembly. When the ‘type’ is ‘component’ the entry is in fact a Resource. This will have a type, name, ID and a set of associated properties
relationships
A collection of relationships associated with the Assembly instance. Each relationship has a name and the ID of the source and target components involved in the relationship. Relationships also have a property section
references
A collection of references used by the Assembly. References can be to Resources provided by Resource Managers but not created using any Assembly and other existing Assembly instances
The current state of the Assembly (Installed, Inactive, Active). This field may be missing if the Assembly has not reached the Installed state
descriptorName
The name of the Assembly descriptor associated with the Assembly instance
createdAt
The date and time the Assembly was created
lastModifiedAt
The date and time the Assembly was last modified
partial
A value of “true” indicates that there were more than 50 search results and not all results could be returned (there is a maximum limit of 50 results that can be returned by the search). A value of “false” means there were 50 or fewer search results and all of them were returned.