remote_peering_connections
Creates, updates, deletes, gets or lists a remote_peering_connections resource.
Overview​
| Name | remote_peering_connections |
| Type | Resource |
| Id | oci.network.remote_peering_connections |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The RPC was retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the RPC. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the RPC. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
drgId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the DRG that this RPC belongs to. |
freeformTags | object | 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](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
isCrossTenancyPeering | boolean | Whether the VCN at the other end of the peering is in a different tenancy. Example: false |
lifecycleState | string | The RPC's current lifecycle state. (AVAILABLE, PROVISIONING, TERMINATING, TERMINATED) |
peerId | string | If this RPC is peered, this value is the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the other RPC. |
peerRegionName | string | If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1 |
peerTenancyId | string | If this RPC is peered, this value is the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the other RPC's tenancy. |
peeringStatus | string | Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted. (INVALID, NEW, PENDING, PEERED, REVOKED) |
timeCreated | string (date-time) | The date and time the RPC was created, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
A remote peering connection (RPC) is an object on a DRG that lets the VCN that is attached<br />to the DRG peer with a VCN in a different region. Peering means that the two VCNs can<br />communicate using private IP addresses, but without the traffic traversing the internet or<br />routing through your on-premises network. For more information, see<br />[VCN Peering](/iaas/Content/Network/Tasks/VCNpeering.htm).<br /><br />To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,<br />talk to an administrator. If you're an administrator who needs to write policies to give users access, see<br />[Getting Started with Policies](/iaas/Content/Identity/Concepts/policygetstarted.htm).<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the RPC. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the RPC. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
drgId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the DRG that this RPC belongs to. |
freeformTags | object | 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](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
isCrossTenancyPeering | boolean | Whether the VCN at the other end of the peering is in a different tenancy. Example: false |
lifecycleState | string | The RPC's current lifecycle state. (AVAILABLE, PROVISIONING, TERMINATING, TERMINATED) |
peerId | string | If this RPC is peered, this value is the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the other RPC. |
peerRegionName | string | If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1 |
peerTenancyId | string | If this RPC is peered, this value is the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the other RPC's tenancy. |
peeringStatus | string | Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted. (INVALID, NEW, PENDING, PEERED, REVOKED) |
timeCreated | string (date-time) | The date and time the RPC was created, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | remotePeeringConnectionId, region | Get the specified remote peering connection's information.<br /> | |
list | select | compartmentId, region | drgId, limit, page | Lists the remote peering connections (RPCs) for the specified DRG and compartment<br />(the RPC's compartment).<br /> |
create | insert | region, compartmentId, drgId | opc-retry-token | Creates a new remote peering connection (RPC) for the specified DRG.<br /> |
update | update | remotePeeringConnectionId, region | if-match | Updates the specified remote peering connection (RPC).<br /> |
delete | delete | remotePeeringConnectionId, region | if-match | Deletes the remote peering connection (RPC).<br /><br />This is an asynchronous operation; the RPC's lifecycleState changes to TERMINATING temporarily<br />until the RPC is completely removed.<br /> |
change_compartment | exec | remotePeeringConnectionId, region, compartmentId | opc-request-id, opc-retry-token | Moves a remote peering connection (RPC) into a different compartment within the same tenancy. For information<br />about moving resources between compartments, see<br />[Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br /> |
connect_remote_peering_connections | exec | remotePeeringConnectionId, region, peerId, peerRegionName | Connects this RPC to another one in a different region.<br /><br />This operation must be called by the VCN administrator who is designated as<br />the requestor in the peering relationship. The acceptor must implement<br />an Identity and Access Management (IAM) policy that gives the requestor permission<br />to connect to RPCs in the acceptor's compartment. Without that permission, this<br />operation will fail. For more information, see<br />[VCN Peering](/iaas/Content/Network/Tasks/VCNpeering.htm).<br /> |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
remotePeeringConnectionId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). |
drgId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the DRG. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
limit | integer | For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50 |
opc-request-id | string | Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). |
page | string | For list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
SELECT examples​
- get
- list
Get the specified remote peering connection's information.<br />
SELECT
id,
compartmentId,
definedTags,
displayName,
drgId,
freeformTags,
isCrossTenancyPeering,
lifecycleState,
peerId,
peerRegionName,
peerTenancyId,
peeringStatus,
timeCreated
FROM oci.network.remote_peering_connections
WHERE remotePeeringConnectionId = '{{ remotePeeringConnectionId }}' -- required
AND region = '{{ region }}' -- required
;
Lists the remote peering connections (RPCs) for the specified DRG and compartment<br />(the RPC's compartment).<br />
SELECT
id,
compartmentId,
definedTags,
displayName,
drgId,
freeformTags,
isCrossTenancyPeering,
lifecycleState,
peerId,
peerRegionName,
peerTenancyId,
peeringStatus,
timeCreated
FROM oci.network.remote_peering_connections
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND drgId = '{{ drgId }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
;
INSERT examples​
- create
- Manifest
Creates a new remote peering connection (RPC) for the specified DRG.<br />
INSERT INTO oci.network.remote_peering_connections (
compartmentId,
definedTags,
displayName,
drgId,
freeformTags,
region,
opc-retry-token
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}',
'{{ drgId }}' /* required */,
'{{ freeformTags }}',
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
drgId,
freeformTags,
isCrossTenancyPeering,
lifecycleState,
peerId,
peerRegionName,
peerTenancyId,
peeringStatus,
timeCreated
;
# Description fields are for documentation purposes
- name: remote_peering_connections
props:
- name: region
value: "{{ region }}"
description: Required parameter for the remote_peering_connections resource.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the RPC.
- name: definedTags
value: "{{ definedTags }}"
description: |
Defined tags for this resource. Each key is predefined and scoped to a
namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).
Example: `{"Operations": {"CostCenter": "42"}}`
- name: displayName
value: "{{ displayName }}"
description: |
A user-friendly name. Does not have to be unique, and it's changeable.
Avoid entering confidential information.
- name: drgId
value: "{{ drgId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the DRG the RPC belongs to.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
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](/iaas/Content/General/Concepts/resourcetags.htm).
Example: `{"Department": "Finance"}`
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
UPDATE examples​
- update
Updates the specified remote peering connection (RPC).<br />
UPDATE oci.network.remote_peering_connections
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
remotePeeringConnectionId = '{{ remotePeeringConnectionId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
drgId,
freeformTags,
isCrossTenancyPeering,
lifecycleState,
peerId,
peerRegionName,
peerTenancyId,
peeringStatus,
timeCreated;
DELETE examples​
- delete
Deletes the remote peering connection (RPC).<br /><br />This is an asynchronous operation; the RPC's lifecycleState changes to TERMINATING temporarily<br />until the RPC is completely removed.<br />
DELETE FROM oci.network.remote_peering_connections
WHERE remotePeeringConnectionId = '{{ remotePeeringConnectionId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
;
Lifecycle Methods​
- change_compartment
- connect_remote_peering_connections
Moves a remote peering connection (RPC) into a different compartment within the same tenancy. For information<br />about moving resources between compartments, see<br />[Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br />
EXEC oci.network.remote_peering_connections.change_compartment
@remotePeeringConnectionId='{{ remotePeeringConnectionId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;
Connects this RPC to another one in a different region.<br /><br />This operation must be called by the VCN administrator who is designated as<br />the requestor in the peering relationship. The acceptor must implement<br />an Identity and Access Management (IAM) policy that gives the requestor permission<br />to connect to RPCs in the acceptor's compartment. Without that permission, this<br />operation will fail. For more information, see<br />[VCN Peering](/iaas/Content/Network/Tasks/VCNpeering.htm).<br />
EXEC oci.network.remote_peering_connections.connect_remote_peering_connections
@remotePeeringConnectionId='{{ remotePeeringConnectionId }}' --required,
@region='{{ region }}' --required
@@json=
'{
"peerId": "{{ peerId }}",
"peerRegionName": "{{ peerRegionName }}"
}'
;