Skip to content

AssetGroup ​

Extends Group

An asset group extends Group to provide more asset specific capabilities.

Static Methods ​

findByPath(path) → AssetGroup ​

Returns an asset group given a path. A path must start with a "/" and contain one or more group names separated by "/" characters. For example, "/production/acme" identifies the "acme" group in the "production" group.

Returns: AssetGroup - The AssetGroup or null if one could not be found.

Parameters:

ParameterTypeDescription
pathStringA path as described above.

findById(id) → AssetGroup ​

Returns an asset group given its id. If no group exists with this id, null is returned.

Returns: AssetGroup - The AssetGroup or null if one could not be found.

Parameters:

ParameterTypeDescription
idStringThe group's id.

Instance Methods ​

getAssets() → Array ​

Returns an array of Asset objects that are members of this group.

Returns: Array - An array of objects of type Asset.

getAssets(A) → Array ​

Returns an array of Asset objects that are members of this group and whose display name matches the given pattern.

Returns: Array - An array of objects of type Asset.

Parameters:

ParameterTypeDescription
APatternA regular expression that must match the name of each asset returned.

Workload Automation and Orchestration