< Back

Get-OctopusLifecycle

Sat Jan 18, 2020 5:25 pm

NAME Get-OctopusLifecycle



SYNOPSIS

This cmdlet returns information about Octopus Lifecycles





SYNTAX

Get-OctopusLifecycle [[-LifecycleName] <string[]>] [-ResourceOnly <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

This cmdlet returns information about Octopus Lifecycles





PARAMETERS

-LifecycleName <string[]>

Lifecycle name



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <string[]>

Lifecycle name



This is an alias of the LifecycleName 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[]

Lifecycle name





OUTPUTS

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

Culture=neutral, PublicKeyToken=null]]



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

Culture=neutral, PublicKeyToken=null]]





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



PS C:\\> Get-OctopusLifecycle



Get all the Lifecycles of the current Instance

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



PS C:\\> Get-OctopusLifecycle -name MyLifecycle



Get the Lifecycle named "MyLifecycle"

---------- EXAMPLE 3 ----------



PS C:\\> Get-OctopusLifecycle -name "ProjectA_Lifecycle","ProjectB_Lifecycle"



Gets the teams with the names "ProjectA_Lifecycle" and "ProjectB_Lifecycle"

---------- EXAMPLE 4 ----------



PS C:\\> Get-OctopusLifecycle -name "ProjectA*"



Gets all the lifecycles whose name starts with "ProjectA"



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