Template - getParameterInstancePropertyValue

Template - getParameterInstancePropertyValue

Description :

This command retrieves a property value from a local property set instance from inside a template. If the instance is not defined or if the instance's class does not define the property, the command fails.

Return type : String

Command Input :

Variable Name

Variable Type

Description

templateName

String

Name of the template.

groupName

String

Fully qualified group name.

instanceName

String

Name of the instance you are retrieving.

propertyName

String

Name of the property whose value you want to get.

Example

This example retrieves the value of the "FOO" property in a "Dev" instance of an Apache template at the group location "/Applications/WebServers/Unix".

Script





Template getParameterInstance Apache /Applications/WebServers/Unix Dev FOO 



Was this page helpful? Yes No Submitting... Thank you

Comments

  1. Natali Nogueira

    The example is different of command. getParameterInstancePropertyValue x getParameterInstance

    And when you execute the command, shows this error message: Template getParameterInstancePropertyValue cluster "/Admin/TMP" instance1 cluster-group Command execution failed. classField not available

    Dec 20, 2018 10:35
  2. Natali Nogueira

    Template getParameterInstance cluster "/Admin/TMP" instance1 cluster-group Unknown command : name space = 'Template', command = 'getParameterInstance'.com.bladelogic.om.infra.cli.factory.CommandNotFoundException: Found command 'Template.getParameterInstance' but with mismatching arguments. : java.lang.IllegalArgumentException: Wrong number of arguments provided to method : getParameterInstance expected : 3 received : 4

    Dec 20, 2018 10:35