Creating Resource Instances on Nodes
You can create a resource instance on a node from the host, from the node, from the resource template, or from an Application using the Administrator GUI. You can also create a resource instance with the CLI.
The available nodes are the nodes managed by the selected host.
Note: The name of the resource instance does not have to be the same as the name of the resource template from which it gets its configuration. However, it is often a good idea to use the same name.
GUI
Choose a starting point and follow the appropriate procedure.
Hosts
|
- Select
.
- Select a host.
- Click the
Resource Instances tab. In the All Instances table, click New.
You can select a resource template type from the View drop-down list and click New
- Select resource template type from the drop-down list.
If no resource templates exist, click
new resource template link and follow the procedure in
Creating a Resource Template.
- Use the checkboxes under Scope to filter resource templates with specific scopes.
- On TIBCO ActiveMatrix Service Bus and TIBCO ActiveMatrix Service Grid, accept the default instance name or type a new one in the Instance Name field. The name must not contain the characters
: or
& .
On TIBCO ActiveMatrix Policy Director Governance, the name of the resource instance should be the same as the resource template.
- Select a node in the Available Nodes and move it to Selected Nodes using the arrow buttons.
- Choose one of the following options:
- Save to add the resource instance to the selected nodes and continue adding resource instances.
- Save and Close to add the resource instance to the selected nodes and close the dialog.
- Save and Install to install the resource instance to the selected nodes and close the dialog.
- If you did not install the resource instance in the previous step, the Install Resource Instances dialog box displays. Select the resource instances to install and click
Install.
|
Applications |
- Click
Applications
and select an application.
- Click
s >
Resource Instances.
- Click
New.
- Select a resource template from the drop-down menu.
- Select a node from the Available Nodes box and move to Selected Nodes box.
- Type an instance name.
- Save.
|
Nodes
|
- Select
.
- In the Nodes table, click a node.
- Click the
Resource Instances tab.
- Select All Instances and click New.
- Select a resource template type from the drop-down list.
If no resource templates exist, click
new resource template link and follow the procedure in
Creating a Resource Template.
- Use the checkboxes under Scope to filter resource templates with specific scopes.
- Accept the default instance name or type a new one in the Instance Name field. The name must not contain the characters
: or
& .
On TIBCO ActiveMatrix Policy Director Governance, the name of the resource instance should be the same as the resource template.
- Click
Save to add the resource instance to the selected nodes and continue adding resource instances or
Save and Close to add to add the resource instance to the selected nodes and close the dialog.
- In the Install Resource Instances dialog box, select the resource instances to install and click
Install.
|
Resource Templates |
- Select
.
- Click a resource template.
- Click
New Resource Instances. Optionally, you can select a resource template and click the
Resource Instances tab.
- Accept the default instance name or type a new one in the Instance Name field. The name must not contain the characters
: or
& .
On TIBCO ActiveMatrix Policy Director Governance, the name of the resource instance should be the same as the resource template.
- Select a node in the Available Nodes and move it to Selected Nodes using the arrow buttons.
- Choose one of the following options:
- Save to add the resource instance to the selected nodes and continue adding resource instances.
- Save and Close to add the resource instance to the selected nodes and close the dialog.
- Save and Install to install the resource instance to the selected nodes and close the dialog.
- If you did not install the resource instance in the previous step, the Install Resource Instances dialog box displays. Select the resource instances to install and click
Install.
|
CLI
Before you begin
The resource template specified in the
resourceTemplateName
attribute must exist in the Administrator database.
Procedure
- In the data file, specify a ResourceInstance element in full format.
<ResourceInstance xsi:type="amxdata:ResourceInstance"
name="resourceHttpClient"
resourceTemplateName="HttpclientRT" />
For example:
<ResourceInstance xsi:type="amxdata:ResourceInstance"
name="${HttpInboundConnectionConfig_hello1connector}"
resourceTemplateName="hello1connector"
scopeType="Environment"/>
<ResourceInstance xsi:type="amxdata:ResourceInstance"
name="amx.bpm.auth.harmonie"
resourceTemplateName="amx.bpm.auth.harmonie"
scopeType="Application"
applicationName="amx.bpm.app"/>
- In the build file, set the
action attribute of the
AMXAdminTask element to
add and the
objectSelector attribute to
Environment/Node/ResourceInstance.
<AMXAdminTask action="add" objectSelector="Environment/Node/ResourceInstance"/>