Namespace groups
provides access to Resource groups
Defined in: rhqapi.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
groups.create(name, children)
creates a new resource group.
|
<static> |
groups.find(params)
finds resource groups by given params
|
Method Detail
<static>
{ResGroup}
groups.create(name, children)
creates a new resource group. If all children are same type, COMPATIBLE
group is created
- Parameters:
- {String} name
- for a new group
- {Resource[]} children
- - array of resources that represents content of this group
<static>
{ResGroup[]}
groups.find(params)
finds resource groups by given params
- Parameters:
- {Object} params
- see ResourceGroupCriteria for available params
There are also shortcuts for ENUM parameters: - you can use
- {category:"platform"} insetead of {explicitResourceCategory:"ExplicitResourceCategory.PLATFORM"}