ControlTier > core
 

resource-add

Command Reference

Description

Add a resource relationship

Creates a resources relationship between two objects. The resourcetype/resourcename options specify what will be the child resource object.

Inspired from Deployment#Register-Dependency

static: This command can be run outside of an object context.

Usage

ctl -m modelutil -c resource-add -depot <> -name <> -resourcename <> -resourcetype <> -type <>

Options

Option Description Type Default
depot project depot name string ${context.depot}
name logical node name string
resourcename the resource name string
resourcetype the resource type string
type the node type string

Examples

Create a resource relationship between two objects already defined in the model

ctl -p demo -t modelutil -c resource-add --\
		-name strongbad -type Node -resourcename tomcat1 -resourcetype Service