Skip to content

Get OctopusResourceModel

Dalmiro edited this page Jun 1, 2015 · 16 revisions

###Summary Returns an empty object from the Octopus Model that can later on be piped down to New-OctopusResource

###Parameters

Name DataType Description
Resource String Resource object model Lists all the available resource types [parameter(ParameterSetName='ListResourceType')] [switch]$ListAvailable

###Syntax

Get-OctopusResourceModel [-Resource <String>] [<CommonParameters>]    

###Examples EXAMPLE 1

Creates an instance of an Environment Resource object

PS C:\>$EnvironmentObj = Get-OctopusResourceModel -Resource "Environment"

EXAMPLE 2

Create Project Resource object instance

PS C:\>$ProjectObj = Get-OctopusResourceModel -Resource "Project"

EXAMPLE 3

Create Project Group resource object instance

PS C:\>$pg = Get-OctopusResourceModel -Resource ProjectGroup
Clone this wiki locally