< Back

Get-OctopusEnvironment

Sat Jan 18, 2020 5:25 pm

NAME Get-OctopusEnvironment



SYNOPSIS

Gets information about Octopus Environments





SYNTAX

Get-OctopusEnvironment [[-EnvironmentName] <string[]>] [-ResourceOnly <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Gets information about Octopus Environments





PARAMETERS

-EnvironmentName <string[]>

Environment name



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <string[]>

Environment name



This is an alias of the EnvironmentName parameter.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-ResourceOnly <SwitchParameter>

If set to TRUE the cmdlet will return the basic Octopus resource. If not set or set to FALSE, the cmdlet will

return a human friendly Octoposh output object



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String[]

Environment name





OUTPUTS

System.Collections.Generic.List`1[[Octoposh.Model.OutputOctopusEnvironment, Octoposh, Version=1.0.0.0,

Culture=neutral, PublicKeyToken=null]]



System.Collections.Generic.List`1[[Octopus.Client.Model.EnvironmentResource, Octopus.Client, Version=4.22.0.0,

Culture=neutral, PublicKeyToken=null]]





---------- EXAMPLE 1 ----------



PS C:\\> Get-OctopusEnvironment -name Production



Gets info about the environment "Production"

---------- EXAMPLE 2 ----------



PS C:\\> Get-OctopusEnvironment -name "FeatureTest*"



Gets info about all the environments whose name matches the pattern "FeatureTest*"



RELATED LINKS

WebSite: http://Octoposh.net

Github Project: https://github.com/Dalmirog/OctoPosh/

Wiki: http://octoposh.readthedocs.io

QA and Feature requests: https://gitter.im/Dalmirog/OctoPosh#initial