< Back
Get-GcsBucket
Post
NAME Get-GcsBucket
SYNOPSIS
Gets Google Cloud Storage buckets
SYNTAX
Get-GcsBucket [-Name] <string> [<CommonParameters>]
Get-GcsBucket [-Project <string>] [<CommonParameters>]
DESCRIPTION
If a name is specified, gets the Google Cloud Storage bucket with the given name. The gcloud user must have access
to view the bucket.
If a name is not specified, gets all Google Cloud Storage buckets owned by a project. The project can be specifed.
If it is not, the project in the active Cloud SDK configuration will be used. The gcloud user must have access to
view the project.
PARAMETERS
-Name <string>
The name of the bucket to return.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Project <string>
The project to check for Storage buckets. If not set via PowerShell parameter processing, will default to the
Cloud SDK's DefaultProject property.
Required? false
Position? named
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.Storage.v1.Data.Bucket
---------- EXAMPLE 1 ----------
PS C:\\> Get-GcsBucket "widget-co-logs"
Get the bucket named "widget-co-logs".
---------- EXAMPLE 2 ----------
PS C:\\> Get-GcsBucket -Project "widget-co"
Get all buckets for project "widget-co".
---------- EXAMPLE 3 ----------
Get-GcsBucket
Get all buckets for current project in the active gcloud configuration.
RELATED LINKS
SYNOPSIS
Gets Google Cloud Storage buckets
SYNTAX
Get-GcsBucket [-Name] <string> [<CommonParameters>]
Get-GcsBucket [-Project <string>] [<CommonParameters>]
DESCRIPTION
If a name is specified, gets the Google Cloud Storage bucket with the given name. The gcloud user must have access
to view the bucket.
If a name is not specified, gets all Google Cloud Storage buckets owned by a project. The project can be specifed.
If it is not, the project in the active Cloud SDK configuration will be used. The gcloud user must have access to
view the project.
PARAMETERS
-Name <string>
The name of the bucket to return.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Project <string>
The project to check for Storage buckets. If not set via PowerShell parameter processing, will default to the
Cloud SDK's DefaultProject property.
Required? false
Position? named
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.Storage.v1.Data.Bucket
---------- EXAMPLE 1 ----------
PS C:\\> Get-GcsBucket "widget-co-logs"
Get the bucket named "widget-co-logs".
---------- EXAMPLE 2 ----------
PS C:\\> Get-GcsBucket -Project "widget-co"
Get all buckets for project "widget-co".
---------- EXAMPLE 3 ----------
Get-GcsBucket
Get all buckets for current project in the active gcloud configuration.
RELATED LINKS