< Back

Get-GceDisk

Mon Jan 13, 2020 11:09 pm

NAME Get-GceDisk



SYNOPSIS

Gets the Google Compute Engine disks associated with a project.





SYNTAX

Get-GceDisk [-Project <string>] [-Zone <string>] [[-DiskName] <string>] [<CommonParameters>]





DESCRIPTION

Returns the project's Google Compute Engine disk objects.



If a Project is specified, will instead return all disks owned by that project. Filters, such as Zone or Name, can

be provided to restrict the objects returned.





PARAMETERS

-Project <string>

The project to check for Compute Engine disks.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Zone <string>

Specific zone to lookup disks in, e.g. "us-central1-a". Partial names like "us-" or "us-central1" will also

work.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DiskName <string>

Name of the disk you want to have returned.



Required? false

Position? 0

Default value

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



OUTPUTS

Google.Apis.Compute.v1.Data.Disk





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



PS C:\\> Get-GceDisk -Project "ppiper-prod" "ppiper-frontend"



Get the disk named "ppiper-frontend".



RELATED LINKS

[Disk resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)