< Back

Get-GceManagedInstanceGroup

Mon Jan 13, 2020 11:13 pm

NAME Get-GceManagedInstanceGroup



SYNOPSIS

Gets Google Compute Engine instance group managers.





SYNTAX

Get-GceManagedInstanceGroup [-Project <string>] [-InstanceStatus <SwitchParameter>] [<CommonParameters>]



Get-GceManagedInstanceGroup [-Project <string>] -Zone <string> [-InstanceStatus <SwitchParameter>]

[<CommonParameters>]



Get-GceManagedInstanceGroup [-Project <string>] -Region <string> [-InstanceStatus <SwitchParameter>]

[<CommonParameters>]



Get-GceManagedInstanceGroup [-Project <string>] [-Zone <string>] [-Region <string>] [-Name] <string>

[-InstanceStatus <SwitchParameter>] [<CommonParameters>]



Get-GceManagedInstanceGroup -Uri <string> [-InstanceStatus <SwitchParameter>] [<CommonParameters>]



Get-GceManagedInstanceGroup -Object <InstanceGroupManager> [-InstanceStatus <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Gets Google Compute Engine instance group managers.





PARAMETERS

-Project <string>

The project that owns the instance group.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Zone <string>

The zone the instance group is in.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Region <string>

The zone the instance group is in.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the instance group to get.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Uri <string>

The full uri of the managed instance group



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Object <InstanceGroupManager>

The InstanceGroupManager object to get.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-InstanceStatus <SwitchParameter>

If set, will return ManagedInstance objects describing the state of the instances of this group, including

whether they exist yet or not.



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

The name of the instance group to get.



Google.Apis.Compute.v1.Data.InstanceGroupManager

The InstanceGroupManager object to get.





OUTPUTS

Google.Apis.Compute.v1.Data.InstanceGroupManager



Google.Apis.Compute.v1.Data.ManagedInstance





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



PS C:\\> Get-GceManagedInstanceGroup



Lists all managed instance groups for the default project.

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



PS C:\\> Get-GceManagedInstanceGroup -Zone "us-central1-a"



Lists all managed instance groups for the default project in the given zone.

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



PS C:\\> Get-GceManagedInstanceGroup "my-instance-group" -InstanceStatus



Lists the status of all members of the instance group named "my-instance-group" in the default project and zone.



RELATED LINKS

[Managed Instance Group resource definition]

(https://cloud.google.com/compute/docs/r ... s#resource)