Routing¶
- class oci.healthchecks.models.Routing(**kwargs)¶
Bases:
objectThe routing information for a vantage point.
Methods:
__init__(**kwargs)Initializes a new Routing object with values from keyword arguments.
Attributes:
Gets the as_label of this Routing.
Gets the asn of this Routing.
Gets the prefix of this Routing.
Gets the weight of this Routing.
- __init__(**kwargs)¶
Initializes a new Routing object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
as_label (str) – The value to assign to the as_label property of this Routing.
asn (int) – The value to assign to the asn property of this Routing.
prefix (str) – The value to assign to the prefix property of this Routing.
weight (int) – The value to assign to the weight property of this Routing.
- property as_label¶
Gets the as_label of this Routing. The registry label for asn, usually the name of the organization that owns the ASN. May be omitted or null.
- Returns
The as_label of this Routing.
- Return type
str
- property asn¶
Gets the asn of this Routing. The Autonomous System Number (ASN) identifying the organization responsible for routing packets to prefix.
- Returns
The asn of this Routing.
- Return type
int
- property prefix¶
Gets the prefix of this Routing. An IP prefix (CIDR syntax) that is less specific than address, through which address is routed.
- Returns
The prefix of this Routing.
- Return type
str
- property weight¶
Gets the weight of this Routing. An integer between 0 and 100 used to select between multiple origin ASNs when routing to prefix. Most prefixes have exactly one origin ASN, in which case weight will be 100.
- Returns
The weight of this Routing.
- Return type
int