< Back
Get-GceNetwork
Post
NAME Get-GceNetwork
SYNOPSIS
Get data about the networks a project has.
SYNTAX
Get-GceNetwork [-Project <string>] [[-Name] <string[]>] [<CommonParameters>]
DESCRIPTION
Get data about the networks a project has. This includes its name, id, and subnetworks.
PARAMETERS
-Project <string>
The project to get the networks of. Defaults to the gcloud config project.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string[]>
The names of the networks to get.
Required? false
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Network <string[]>
The names of the networks to get.
This is an alias of the Name parameter.
Required? false
Position? 0
Default value
Accept pipeline input? true (ByValue)
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 names of the networks to get.
OUTPUTS
Google.Apis.Compute.v1.Data.Network
---------- EXAMPLE 1 ----------
PS C:\\> Get-GceNetwork
Lists all networks in set up for the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceNetwork "default"
Gets the default network for the default project.
RELATED LINKS
[Network resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Get data about the networks a project has.
SYNTAX
Get-GceNetwork [-Project <string>] [[-Name] <string[]>] [<CommonParameters>]
DESCRIPTION
Get data about the networks a project has. This includes its name, id, and subnetworks.
PARAMETERS
-Project <string>
The project to get the networks of. Defaults to the gcloud config project.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string[]>
The names of the networks to get.
Required? false
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Network <string[]>
The names of the networks to get.
This is an alias of the Name parameter.
Required? false
Position? 0
Default value
Accept pipeline input? true (ByValue)
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 names of the networks to get.
OUTPUTS
Google.Apis.Compute.v1.Data.Network
---------- EXAMPLE 1 ----------
PS C:\\> Get-GceNetwork
Lists all networks in set up for the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceNetwork "default"
Gets the default network for the default project.
RELATED LINKS
[Network resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)