你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Route Class

Route resource.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

Route(*, id: str | None = None, name: str | None = None, type: str | None = None, address_prefix: str | None = None, next_hop_type: str | _models.RouteNextHopType | None = None, next_hop_ip_address: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
id
str

Resource ID.

Default value: None
name
str

The name of the resource that is unique within a resource group. This name can be used to access the resource.

Default value: None
type
str

The type of the resource.

Default value: None
address_prefix
str

The destination CIDR to which the route applies.

Default value: None
next_hop_type

The type of Azure hop the packet should be sent to. Known values are: "VirtualNetworkGateway", "VnetLocal", "Internet", "VirtualAppliance", and "None".

Default value: None
next_hop_ip_address
str

The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

Default value: None

Variables

Name Description
id
str

Resource ID.

name
str

The name of the resource that is unique within a resource group. This name can be used to access the resource.

etag
str

A unique read-only string that changes whenever the resource is updated.

type
str

The type of the resource.

address_prefix
str

The destination CIDR to which the route applies.

next_hop_type

The type of Azure hop the packet should be sent to. Known values are: "VirtualNetworkGateway", "VnetLocal", "Internet", "VirtualAppliance", and "None".

next_hop_ip_address
str

The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

provisioning_state

The provisioning state of the route resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting".

has_bgp_override

A value indicating whether this route overrides overlapping BGP routes regardless of LPM.