createResourceTemplateWithAgentPrototypes#

Create a resource template with agent prototypes from a JSON file

This method supports creating a resource template with multiple agent prototypes

Format#

udclient [\[global-args...\]](../../com.udeploy.reference.doc/topics/cli_command_format.md) [\[global-flags...\]](../../com.udeploy.reference.doc/topics/cli_command_format.md)
  createResourceTemplateWithAgentPrototypes [JSON file]

Parameters#

None.

Template#

This command takes a JSON request string or file. Use the following template for the request:

{
  "agentPrototypes": [{
    "agentNamePatterns": "List of name patterns (one per 
  line) for matching agents; (Optional)",
    "componentTags": "List of component tags to be mapped 
  to the prototype; format: [ {componentTag: '<name-or-id-of-
  comp-tag-1>'}, {componentTag: '<name-or-id-of-comp-tag-
  2>'}, ... ]; (Optional)",
    "components": "List of components to be mapped to the 
  prototype; format: [ {component: '<name-or-ID-of-comp-
  1>'}, {component: '<name-or-ID-of-comp-2>'}, ... ]; 
  (Optional)",
    "description": "Description",
    "name": "Name for the agent prototype",
    "teamMappings": "Array of team ids; if not specified, 
  no teams will be mapped to Template; format: [ {teamId: 
  '<ID-of-team-1>'}, {teamId: '<ID-of-team-2>'}, ... ]; 
  (Optional)"
  }],
  "description": "Description",
  "name": "Name for the resource template",
  "teamMappings": "Array of team ids; if not specified, no 
  teams will be mapped to Template; format: [ {teamId: '<ID-
  of-team-1>'}, {teamId: '<ID-of-team-2>'}, ... ]; 
  (Optional)"
}

Related REST command: Create a resource template with agent prototypes from a JSON file.

Parent topic: CLI Commands