Skip to main content

IPSecConnection

Struct IPSecConnection 

Source
pub struct IPSecConnection {
Show 13 fields pub compartment_id: String, pub cpe_id: String, pub drg_id: String, pub id: String, pub lifecycle_state: IPSecConnectionLifecycleState, pub defined_tags: Option<HashMap<String, HashMap<String, Value>>>, pub display_name: Option<String>, pub freeform_tags: Option<HashMap<String, String>>, pub cpe_local_identifier: Option<String>, pub cpe_local_identifier_type: Option<IPSecConnectionCpeLocalIdentifierType>, pub static_routes: Option<Vec<String>>, pub time_created: Option<DateTime<Utc>>, pub transport_type: Option<IPSecConnectionTransportType>,
}
Expand description

A connection between a DRG and CPE. This connection consists of multiple IPSec tunnels. Creating this connection is one of the steps required when setting up a Site-to-Site VPN.

Important:* Each tunnel in an IPSec connection can use either static routing or BGP dynamic routing (see the {@link IPSecConnectionTunnel} object’s {@code routing} attribute). Originally only static routing was supported and every IPSec connection was required to have at least one static route configured. To maintain backward compatibility in the API when support for BPG dynamic routing was introduced, the API accepts an empty list of static routes if you configure both of the IPSec tunnels to use BGP dynamic routing. If you switch a tunnel’s routing from {@code BGP} to {@code STATIC}, you must first ensure that the IPSec connection is configured with at least one valid CIDR block static route. Oracle uses the IPSec connection’s static routes when routing a tunnel’s traffic only if that tunnel’s {@code routing} attribute = {@code STATIC}. Otherwise the static routes are ignored.

For more information about the workflow for setting up an IPSec connection, see Site-to-Site VPN Overview.

To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.

Fields§

§compartment_id: String

The OCID of the compartment containing the IPSec connection.

§cpe_id: String

The OCID of the {@link Cpe} object.

§drg_id: String

The OCID of the DRG.

§id: String

The IPSec connection’s Oracle ID (OCID).

§lifecycle_state: IPSecConnectionLifecycleState

The IPSec connection’s current state.

§defined_tags: Option<HashMap<String, HashMap<String, Value>>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {@code {"Operations": {"CostCenter": "42"}}}

§display_name: Option<String>

A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

§freeform_tags: Option<HashMap<String, String>>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {@code {"Department": "Finance"}}

§cpe_local_identifier: Option<String>

Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for {@code cpeLocalIdentifierType}.

If you don’t provide a value when creating the IPSec connection, the {@code ipAddress} attribute for the {@link Cpe} object specified by {@code cpeId} is used as the {@code cpeLocalIdentifier}.

For information about why you’d provide this value, see If Your CPE Is Behind a NAT Device.

Example IP address: {@code 10.0.3.3}

Example hostname: {@code cpe.example.com}

§cpe_local_identifier_type: Option<IPSecConnectionCpeLocalIdentifierType>

The type of identifier for your CPE device. The value here must correspond to the value for {@code cpeLocalIdentifier}.

§static_routes: Option<Vec<String>>

Static routes to the CPE. The CIDR must not be a multicast address or class E address.

Used for routing a given IPSec tunnel’s traffic only if the tunnel is using static routing. If you configure at least one tunnel to use static routing, then you must provide at least one valid static route. If you configure both tunnels to use BGP dynamic routing, you can provide an empty list for the static routes.

The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.

Example: {@code 10.0.1.0/24}

Example: {@code 2001:db8::/32}

§time_created: Option<DateTime<Utc>>

The date and time the IPSec connection was created, in the format defined by RFC3339.

Example: {@code 2016-08-25T21:10:29.600Z}

§transport_type: Option<IPSecConnectionTransportType>

The transport type used for the IPSec connection.

Implementations§

Source§

impl IPSecConnection

Source

pub fn new(required: IPSecConnectionRequired) -> Self

Create a new IPSecConnection with required fields

Source

pub fn set_compartment_id(self, value: String) -> Self

Set compartment_id

Source

pub fn set_cpe_id(self, value: String) -> Self

Set cpe_id

Source

pub fn set_defined_tags( self, value: Option<HashMap<String, HashMap<String, Value>>>, ) -> Self

Set defined_tags

Source

pub fn set_display_name(self, value: Option<String>) -> Self

Set display_name

Source

pub fn set_drg_id(self, value: String) -> Self

Set drg_id

Source

pub fn set_freeform_tags(self, value: Option<HashMap<String, String>>) -> Self

Set freeform_tags

Source

pub fn set_id(self, value: String) -> Self

Set id

Source

pub fn set_lifecycle_state(self, value: IPSecConnectionLifecycleState) -> Self

Set lifecycle_state

Source

pub fn set_cpe_local_identifier(self, value: Option<String>) -> Self

Set cpe_local_identifier

Source

pub fn set_cpe_local_identifier_type( self, value: Option<IPSecConnectionCpeLocalIdentifierType>, ) -> Self

Set cpe_local_identifier_type

Source

pub fn set_static_routes(self, value: Option<Vec<String>>) -> Self

Set static_routes

Source

pub fn set_time_created(self, value: Option<DateTime<Utc>>) -> Self

Set time_created

Source

pub fn set_transport_type( self, value: Option<IPSecConnectionTransportType>, ) -> Self

Set transport_type

Source

pub fn with_defined_tags( self, value: HashMap<String, HashMap<String, Value>>, ) -> Self

Set defined_tags (unwraps Option)

Source

pub fn with_display_name(self, value: impl Into<String>) -> Self

Set display_name (unwraps Option)

Source

pub fn with_freeform_tags(self, value: HashMap<String, String>) -> Self

Set freeform_tags (unwraps Option)

Source

pub fn with_cpe_local_identifier(self, value: impl Into<String>) -> Self

Set cpe_local_identifier (unwraps Option)

Source

pub fn with_cpe_local_identifier_type( self, value: IPSecConnectionCpeLocalIdentifierType, ) -> Self

Set cpe_local_identifier_type (unwraps Option)

Source

pub fn with_static_routes(self, value: Vec<String>) -> Self

Set static_routes (unwraps Option)

Source

pub fn with_time_created(self, value: DateTime<Utc>) -> Self

Set time_created (unwraps Option)

Source

pub fn with_transport_type(self, value: IPSecConnectionTransportType) -> Self

Set transport_type (unwraps Option)

Trait Implementations§

Source§

impl Clone for IPSecConnection

Source§

fn clone(&self) -> IPSecConnection

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IPSecConnection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for IPSecConnection

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for IPSecConnection

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,