Class EiaRoutingProtocolRequest
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.EiaRoutingProtocolRequest
Routing protocol configuration for an Equinix Internet Access (EIA) service create request.
Faithful to the spec's InternetAccessRoutingProtocolRequest (and its BGP variant):
a type discriminator, a list of customer routes referencing IP block UUIDs, a list of
connection UUIDs, plus the BGP-only fields (exportPolicy, the asn reference and
bgpAuthKey) which are simply omitted (NON_NULL) for the DIRECT and
STATIC variants.
The spec-deprecated customerAsn and customerAsnRange are not sent: name the
customer ASN with asn(String), the uuid of an ASN resource (/fabric/v4/asns).
bgpAuthKey stays on the request, where 4.34.0 does not deprecate it; on the response it
is replaced by bgpAuthType.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classASN resource reference:{"uuid": ...}.static classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionCreates a routing protocol request of the given type. -
Method Summary
Modifier and TypeMethodDescriptionaddConnection(String connectionUuid) Adds a connection reference by UUID.addCustomerRoute(String ipBlockUuid) Adds a customer route referencing an existing IP block by UUID.Sets the ASN resource the BGP session uses ("asn": {"uuid": ...}).bgpAuthKey(String bgpAuthKey) Sets the BGP authentication key.exportPolicy(String exportPolicy) Sets the BGP export policy (e.g.
-
Constructor Details
-
EiaRoutingProtocolRequest
Creates a routing protocol request of the given type.- Parameters:
type- the routing protocol type (BGP, DIRECT, or STATIC)
-
-
Method Details
-
addCustomerRoute
Adds a customer route referencing an existing IP block by UUID.- Parameters:
ipBlockUuid- the UUID of the IP block to advertise- Returns:
- this request
-
addConnection
Adds a connection reference by UUID.- Parameters:
connectionUuid- the UUID of the connection- Returns:
- this request
-
exportPolicy
Sets the BGP export policy (e.g.FULL,DEFAULT,FULL_DEFAULT,PARTIAL).- Parameters:
exportPolicy- the export policy- Returns:
- this request
-
asn
Sets the ASN resource the BGP session uses ("asn": {"uuid": ...}).- Parameters:
asnUuid- the uuid of an ASN resource- Returns:
- this request
-
bgpAuthKey
Sets the BGP authentication key.- Parameters:
bgpAuthKey- the BGP authentication key- Returns:
- this request
-