Show / Hide Table of Contents

Class LocalPeeringGateway

A local peering gateway (LPG) is an object on a VCN that lets that VCN peer with another VCN in the same region. Peering means that the two VCNs can communicate using private IP addresses, but without the traffic traversing the internet or routing through your on-premises network. For more information, see VCN Peering.
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.

Inheritance
object
LocalPeeringGateway
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class LocalPeeringGateway

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment containing the LPG.

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

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

Remarks

Required

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<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: {"Department": "Finance"}

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The LPG's Oracle ID (OCID).

Remarks

Required

IsCrossTenancyPeering

Declaration
[Required(ErrorMessage = "IsCrossTenancyPeering is required.")]
[JsonProperty(PropertyName = "isCrossTenancyPeering")]
public bool? IsCrossTenancyPeering { get; set; }
Property Value
Type Description
bool?

Whether the VCN at the other end of the peering is in a different tenancy.
Example: false

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LocalPeeringGateway.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
LocalPeeringGateway.LifecycleStateEnum?

The LPG's current lifecycle state.

Remarks

Required

PeerAdvertisedCidr

Declaration
[JsonProperty(PropertyName = "peerAdvertisedCidr")]
public string PeerAdvertisedCidr { get; set; }
Property Value
Type Description
string

The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See peerAdvertisedCidrDetails for the individual CIDRs. The value is null if the LPG is not peered.
Example: 192.168.0.0/16, or if aggregated with 172.16.0.0/24 then 128.0.0.0/1

PeerAdvertisedCidrDetails

Declaration
[JsonProperty(PropertyName = "peerAdvertisedCidrDetails")]
public List<string> PeerAdvertisedCidrDetails { get; set; }
Property Value
Type Description
List<string>

The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is null if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG.
Example: [192.168.0.0/16, 172.16.0.0/24]

PeerId

Declaration
[Required(ErrorMessage = "PeerId is required.")]
[JsonProperty(PropertyName = "peerId")]
public string PeerId { get; set; }
Property Value
Type Description
string

The OCID of the peered LPG.

Remarks

Required

PeeringStatus

Declaration
[Required(ErrorMessage = "PeeringStatus is required.")]
[JsonProperty(PropertyName = "peeringStatus")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LocalPeeringGateway.PeeringStatusEnum? PeeringStatus { get; set; }
Property Value
Type Description
LocalPeeringGateway.PeeringStatusEnum?

Whether the LPG is peered with another LPG. NEW means the LPG has not yet been peered. PENDING means the peering is being established. REVOKED means the LPG at the other end of the peering has been deleted.

Remarks

Required

PeeringStatusDetails

Declaration
[JsonProperty(PropertyName = "peeringStatusDetails")]
public string PeeringStatusDetails { get; set; }
Property Value
Type Description
string

Additional information regarding the peering status, if applicable.

RouteTableId

Declaration
[JsonProperty(PropertyName = "routeTableId")]
public string RouteTableId { get; set; }
Property Value
Type Description
string

The OCID of the route table the LPG is using.
For information about why you would associate a route table with an LPG, see Transit Routing: Access to Multiple VCNs in Same Region.

SecurityAttributes

Declaration
[JsonProperty(PropertyName = "securityAttributes")]
public Dictionary<string, Dictionary<string, object>> SecurityAttributes { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources.
Example: {"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the LPG was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z

Remarks

Required

VcnId

Declaration
[Required(ErrorMessage = "VcnId is required.")]
[JsonProperty(PropertyName = "vcnId")]
public string VcnId { get; set; }
Property Value
Type Description
string

The OCID of the VCN that uses the LPG.

Remarks

Required

In this article
Back to top