< Back

Add-GceRoute

Mon Jan 13, 2020 11:01 pm

NAME Add-GceRoute



SYNOPSIS

Adds a new networking route.





SYNTAX

Add-GceRoute [-Project <string>] [-Object] <Route> [<CommonParameters>]



Add-GceRoute [-Project <string>] [-Name] <string> [-DestinationIpRange] <string> [-Network] <string> [-Priority

<long>] [-Description <string>] [-Tag <string[]>] [-NextHopInstance <string>] [-NextHopIp <string>]

[-NextHopVpnTunnel <string>] [-NextHopInternetGateway <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Adds a new networking route.





PARAMETERS

-Project <string>

The project to add the route to. Defaults to the gcloud config project.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Object <Route>

An object describing a route to add.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <string>

The name of the route to add.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationIpRange <string>

The destination range of outgoing packets that this route applies to.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Network <string>

The network this route applies to. Can be either a URL, or a network object from Get-GceNetwork.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Priority <long>

The priority of this route. Priority is used to break ties in cases where there is more than one matching

route of equal prefix length. In the case of two routes with equal prefix length, the one with the

lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <string>

Human readable description of this route.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Tag <string[]>

Instance tag(s) this route applies to. May only contain lowercase letters, dashes and numbers.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NextHopInstance <string>

The instance that should handle matching packets. Can be either a URL, or an instance from Get-GceInstance.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NextHopIp <string>

The IP Address of an instance that should handle matching packets.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NextHopVpnTunnel <string>

The URL of a VPN Tunnel that should handle matching packets.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NextHopInternetGateway <SwitchParameter>

The URL to a gateway that should handle matching packets.



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

Google.Apis.Compute.v1.Data.Route

An object describing a route to add.





OUTPUTS

Google.Apis.Compute.v1.Data.Route







RELATED LINKS

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