Create a resource template with agent prototypes from a JSON file#

This method supports creating a resource template with multiple agent prototypes

Request#

PUT https://{hostname}:{port}
    /cli/resourceTemplate/createWithPrototypes
Accept: application/json

Parameter Type Required Description
Accept application/json true  

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 UCD team ids; if not 
  specified, no teams will be mapped to agent prototype; 
  format: [ {teamId: '<ID-of-team-1>'}, {teamId: '<ID-of-
  team-2>'}, ... ]; (Optional)"
  }],
  "description": "Description",
  "name": "Name for the resource template",
  "teamMappings": "Array of UCD 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 CLI command: createResourceTemplateWithAgentPrototypes.

Parent topic: resourceTemplate resource