Skip to content

Get OctopusResourceModel

Dalmiro edited this page Jun 6, 2015 · 16 revisions

###Summary This cmdlet creates instances of Octopus Resource Objects

###Parameters

Name DataType Description
Resource String Resource object model

###Syntax

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

###Examples EXAMPLE 1

Create an Environment Resource object

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

EXAMPLE 2

Create Project resource object

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

EXAMPLE 3

Create a Project Group resource object

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