CloudResources.xml
This topic lists a sample CloudResources.xml file and describes the meaning of each element in the file.
The purpose of the CloudResources.xml file is to declare static folders in the navigation tree of the operator console under the Global folder as shown in the following figure. All the elements are defined within the global-node tag.
Sample CloudResources.xml file
<global-node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CloudCI.xsd">
<cloud-resources>
<cloud-folder name="Locations" type="ci_physical_location" hideChildren="false" preferredView="TMV">
<view-types>TMV GrV</view-types>
<query>CLASS EQUALS BMC_PhysicalLocation</query>
</cloud-folder>
<cloud-folder name="Pods" objectId="Pod" type="ci_network" hideChildren="false" preferredView="TV">
<view-types>TV CV TMV GrV</view-types>
<query>CLASS EQUALS BMC_ConcreteCollection AND CollectionType EQUALS Pod</query>
</cloud-folder>
<cloud-folder name="Network Containers" objectId="NetworkContainer" type="ci_network" hideChildren="true" preferredView="TV">
<view-types>TV CV TMV GrV</view-types>
<query>CLASS EQUALS BMC_ConcreteCollection AND CollectionType EQUALS NetworkContainer</query>
</cloud-folder>
<cloud-folder name="Compute Pools" objectId="Compute" type="ci_resources" hideChildren="false" preferredView="TV">
<view-types>TV CV TMV GrV</view-types>
<query>CLASS EQUALS BMC_ResourcePool AND Type EQUALS Compute</query>
</cloud-folder>
</cloud-resources>
<cloud-folder name="Tenants" objectId="Tenants" type="ci_tenants" consoleType="CENTRAL" hideChildren="true" preferredView="TV">
<view-types>TV CV TMV GrV</view-types>
<query>CLASS EQUALS BMC_Organization AND isTenant EQUALS Yes</query>
</cloud-folder>
</global-node>
Description of the elements
The following table describes the elements in the CloudResources.xml file.
Element | Description |
---|---|
global-node | Required top-level tag that encompasses all the other tags. |
cloud-resources | Defines those folders that are designated to be the children of the Cloud Resources folder. This tag is optional but must be the first child of the global-node tag if defined. Only one instance is allowed. It can have an unlimited number of cloud-folder tags as children. |
cloud-folder | Defines a folder in the navigation tree. This tag can be a child of the global-node or cloud-resources tag. It has two required children tags in the following order:
|
Attributes for the cloud-folder tag
The following table lists the attributes that you can declare for the cloud-folder tag.
Attribute | Description | Required or optional |
---|---|---|
name | English name used as a key (spaces removed) to retrieve localized values. Localized values are stored in the navigationData.properties file. | Required |
objectId | Actual internal property logically used as the sub-type by the UI. | Optional |
hideChildren | Hides children under this folder in the navigation tree if specified as true. | Optional and defaults to false |
preferredView | Possible views are:
| Optional. Default value is TV. |
consoleType | Restricts the folder visibility in the required console type. Possible console types are:
| Optional. Default value is ALL. |
type | CI types used by the UI. Possible types are:
|
|