virtual_circuits
Creates, updates, deletes, gets or lists a virtual_circuits resource.
Overview​
| Name | virtual_circuits |
| Type | Resource |
| Id | oci.network.virtual_circuits |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The virtual circuit was retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The virtual circuit's Oracle ID ([OCID](/iaas/Content/General/Concepts/identifiers.htm)). |
bandwidthShapeName | string | The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see [ListFastConnectProviderServiceVirtualCircuitBandwidthShapes](#/en/iaas/latest/FastConnectProviderService/ListFastConnectProviderVirtualCircuitBandwidthShapes). Example: 10 Gbps |
bgpAdminState | string | Set to ENABLED (the default) to activate the BGP session of the virtual circuit, set to DISABLED to deactivate the virtual circuit. (ENABLED, DISABLED) |
bgpIpv6SessionState | string | The state of the Ipv6 BGP session associated with the virtual circuit. (UP, DOWN) |
bgpManagement | string | Deprecated. Instead use the information in [FastConnectProviderService](#/en/iaas/latest/FastConnectProviderService/). (CUSTOMER_MANAGED, PROVIDER_MANAGED, ORACLE_MANAGED) |
bgpSessionState | string | The state of the Ipv4 BGP session associated with the virtual circuit. (UP, DOWN) |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the virtual circuit. |
crossConnectMappings | array | An array of mappings, each containing properties for a cross-connect or cross-connect group that is associated with this virtual circuit. |
customerBgpAsn | integer | The BGP ASN of the network at the other end of the BGP session from Oracle. If the session is between the customer's edge router and Oracle, the value is the customer's ASN. If the BGP session is between the provider's edge router and Oracle, the value is the provider's ASN. |
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. |
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"} |
gatewayId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the customer's [dynamic routing gateway (DRG)](#/en/iaas/latest/Drg) that this virtual circuit uses. Applicable only to private virtual circuits. |
ipMtu | string | The layer 3 IP MTU to use on this virtual circuit. (MTU_1500, MTU_9000) (x-obmcs-top-level-enum: #/definitions/VirtualCircuitIpMtu) |
isBfdEnabled | boolean | Set to true to enable BFD for IPv4 BGP peering, or set to false to disable BFD. If this is not set, the default is false. |
isTransportMode | boolean | Set to true for the virtual circuit to carry only encrypted traffic, or set to false for the virtual circuit to carry unencrypted traffic. If this is not set, the default is false. |
lifecycleState | string | The virtual circuit's current state. For information about the different states, see [FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm). (PENDING_PROVIDER, VERIFYING, PROVISIONING, PROVISIONED, FAILED, INACTIVE, TERMINATING, TERMINATED) |
oracleBgpAsn | integer | The Oracle BGP ASN. |
providerName | string | Deprecated. Instead use providerServiceId. |
providerServiceId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if the customer is connecting via a provider). |
providerServiceKeyName | string | The service key name offered by the provider (if the customer is connecting via a provider). |
providerServiceName | string | Deprecated. Instead use providerServiceId. |
providerState | string | The provider's state in relation to this virtual circuit (if the customer is connecting via a provider). ACTIVE means the provider has provisioned the virtual circuit from their end. INACTIVE means the provider has not yet provisioned the virtual circuit, or has de-provisioned it. (ACTIVE, INACTIVE) |
publicPrefixes | array | For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to advertise across the connection. All prefix sizes are allowed. |
referenceComment | string | Provider-supplied reference information about this virtual circuit (if the customer is connecting via a provider). |
region | string | The Oracle Cloud Infrastructure region where this virtual circuit is located. |
routingPolicy | array | The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. Policies available are: ORACLE_SERVICE_NETWORK, REGIONAL, MARKET_LEVEL, and GLOBAL. See [Route Filtering](/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. By default, routing information is shared for all routes in the same market. |
serviceType | string | Provider service type. (COLOCATED, LAYER2, LAYER3) |
timeCreated | string (date-time) | The date and time the virtual circuit was created, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
type | string | Whether the virtual circuit supports private or public peering. For more information, see [FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm). (PUBLIC, PRIVATE) |
virtualCircuitRedundancyMetadata | object | This resource provides redundancy level details for the virtual circuit. For more about redundancy, see [FastConnect Redundancy Best Practices](/iaas/Content/Network/Concepts/fastconnectresiliency.htm). |
For use with Oracle Cloud Infrastructure FastConnect.<br /><br />A virtual circuit is an isolated network path that runs over one or more physical<br />network connections to provide a single, logical connection between the edge router<br />on the customer's existing network and Oracle Cloud Infrastructure. Private<br />virtual circuits support private peering, and public virtual circuits support<br />public peering. For more information, see [FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm).<br /><br />Each virtual circuit is made up of information shared between a customer, Oracle,<br />and a provider (if the customer is using FastConnect via a provider). Who fills in<br />a given property of a virtual circuit depends on whether the BGP session related to<br />that virtual circuit goes from the customer's edge router to Oracle, or from the provider's<br />edge router to Oracle. Also, in the case where the customer is using a provider, values<br />for some of the properties may not be present immediately, but may get filled in as the<br />provider and Oracle each do their part to provision the virtual circuit.<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 virtual circuit's Oracle ID ([OCID](/iaas/Content/General/Concepts/identifiers.htm)). |
bandwidthShapeName | string | The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see [ListFastConnectProviderServiceVirtualCircuitBandwidthShapes](#/en/iaas/latest/FastConnectProviderService/ListFastConnectProviderVirtualCircuitBandwidthShapes). Example: 10 Gbps |
bgpAdminState | string | Set to ENABLED (the default) to activate the BGP session of the virtual circuit, set to DISABLED to deactivate the virtual circuit. (ENABLED, DISABLED) |
bgpIpv6SessionState | string | The state of the Ipv6 BGP session associated with the virtual circuit. (UP, DOWN) |
bgpManagement | string | Deprecated. Instead use the information in [FastConnectProviderService](#/en/iaas/latest/FastConnectProviderService/). (CUSTOMER_MANAGED, PROVIDER_MANAGED, ORACLE_MANAGED) |
bgpSessionState | string | The state of the Ipv4 BGP session associated with the virtual circuit. (UP, DOWN) |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the virtual circuit. |
crossConnectMappings | array | An array of mappings, each containing properties for a cross-connect or cross-connect group that is associated with this virtual circuit. |
customerBgpAsn | integer | The BGP ASN of the network at the other end of the BGP session from Oracle. If the session is between the customer's edge router and Oracle, the value is the customer's ASN. If the BGP session is between the provider's edge router and Oracle, the value is the provider's ASN. |
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. |
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"} |
gatewayId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the customer's [dynamic routing gateway (DRG)](#/en/iaas/latest/Drg) that this virtual circuit uses. Applicable only to private virtual circuits. |
ipMtu | string | The layer 3 IP MTU to use on this virtual circuit. (MTU_1500, MTU_9000) (x-obmcs-top-level-enum: #/definitions/VirtualCircuitIpMtu) |
isBfdEnabled | boolean | Set to true to enable BFD for IPv4 BGP peering, or set to false to disable BFD. If this is not set, the default is false. |
isTransportMode | boolean | Set to true for the virtual circuit to carry only encrypted traffic, or set to false for the virtual circuit to carry unencrypted traffic. If this is not set, the default is false. |
lifecycleState | string | The virtual circuit's current state. For information about the different states, see [FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm). (PENDING_PROVIDER, VERIFYING, PROVISIONING, PROVISIONED, FAILED, INACTIVE, TERMINATING, TERMINATED) |
oracleBgpAsn | integer | The Oracle BGP ASN. |
providerName | string | Deprecated. Instead use providerServiceId. |
providerServiceId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if the customer is connecting via a provider). |
providerServiceKeyName | string | The service key name offered by the provider (if the customer is connecting via a provider). |
providerServiceName | string | Deprecated. Instead use providerServiceId. |
providerState | string | The provider's state in relation to this virtual circuit (if the customer is connecting via a provider). ACTIVE means the provider has provisioned the virtual circuit from their end. INACTIVE means the provider has not yet provisioned the virtual circuit, or has de-provisioned it. (ACTIVE, INACTIVE) |
publicPrefixes | array | For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to advertise across the connection. All prefix sizes are allowed. |
referenceComment | string | Provider-supplied reference information about this virtual circuit (if the customer is connecting via a provider). |
region | string | The Oracle Cloud Infrastructure region where this virtual circuit is located. |
routingPolicy | array | The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. Policies available are: ORACLE_SERVICE_NETWORK, REGIONAL, MARKET_LEVEL, and GLOBAL. See [Route Filtering](/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. By default, routing information is shared for all routes in the same market. |
serviceType | string | Provider service type. (COLOCATED, LAYER2, LAYER3) |
timeCreated | string (date-time) | The date and time the virtual circuit was created, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
type | string | Whether the virtual circuit supports private or public peering. For more information, see [FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm). (PUBLIC, PRIVATE) |
virtualCircuitRedundancyMetadata | object | This resource provides redundancy level details for the virtual circuit. For more about redundancy, see [FastConnect Redundancy Best Practices](/iaas/Content/Network/Concepts/fastconnectresiliency.htm). |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | virtualCircuitId, region | Gets the specified virtual circuit's information. | |
list | select | compartmentId, region | limit, page, displayName, sortBy, sortOrder, lifecycleState | Lists the virtual circuits in the specified compartment.<br /> |
create | insert | region, compartmentId, type | opc-retry-token | Creates a new virtual circuit to use with Oracle Cloud<br />Infrastructure FastConnect. For more information, see<br />[FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm).<br /><br />For the purposes of access control, you must provide the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the<br />compartment where you want the virtual circuit to reside. If you're<br />not sure which compartment to use, put the virtual circuit in the<br />same compartment with the DRG it's using. For more information about<br />compartments and access control, see<br />[Overview of the IAM Service](/iaas/Content/Identity/Concepts/overview.htm).<br />For information about OCIDs, see<br />[Resource Identifiers](/iaas/Content/General/Concepts/identifiers.htm).<br /><br />You may optionally specify a display name for the virtual circuit.<br />It does not have to be unique, and you can change it. Avoid entering confidential information.<br /><br />Important: When creating a virtual circuit, you specify a DRG for<br />the traffic to flow through. Make sure you attach the DRG to your<br />VCN and confirm the VCN's routing sends traffic to the DRG. Otherwise<br />traffic will not flow. For more information, see<br />[Route Tables](/iaas/Content/Network/Tasks/managingroutetables.htm).<br /> |
update | update | virtualCircuitId, region | if-match | Updates the specified virtual circuit. This can be called by<br />either the customer who owns the virtual circuit, or the<br />provider (when provisioning or de-provisioning the virtual<br />circuit from their end). The documentation for<br />[UpdateVirtualCircuitDetails](#/en/iaas/latest/requests/UpdateVirtualCircuitDetails)<br />indicates who can update each property of the virtual circuit.<br /><br />Important: If the virtual circuit is working and in the<br />PROVISIONED state, updating any of the network-related properties<br />(such as the DRG being used, the BGP ASN, and so on) will cause the virtual<br />circuit's state to switch to PROVISIONING and the related BGP<br />session to go down. After Oracle re-provisions the virtual circuit,<br />its state will return to PROVISIONED. Make sure you confirm that<br />the associated BGP session is back up. For more information<br />about the various states and how to test connectivity, see<br />[FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm).<br /><br />To change the list of public IP prefixes for a public virtual circuit,<br />use [BulkAddVirtualCircuitPublicPrefixes](#/en/iaas/latest/VirtualCircuitPublicPrefix/BulkAddVirtualCircuitPublicPrefixes)<br />and<br />[BulkDeleteVirtualCircuitPublicPrefixes](#/en/iaas/latest/VirtualCircuitPublicPrefix/BulkDeleteVirtualCircuitPublicPrefixes).<br />Updating the list of prefixes does NOT cause the BGP session to go down. However,<br />Oracle must verify the customer's ownership of each added prefix before<br />traffic for that prefix will flow across the virtual circuit.<br /> |
delete | delete | virtualCircuitId, region | if-match | Deletes the specified virtual circuit.<br /><br />Important: If you're using FastConnect via a provider,<br />make sure to also terminate the connection with<br />the provider, or else the provider may continue to bill you.<br /> |
bulk_add_virtual_circuit_public_prefixes | exec | virtualCircuitId, region, publicPrefixes | Adds one or more customer public IP prefixes to the specified public virtual circuit.<br />Use this operation (and not [UpdateVirtualCircuit](#/en/iaas/latest/VirtualCircuit/UpdateVirtualCircuit))<br />to add prefixes to the virtual circuit. Oracle must verify the customer's ownership<br />of each prefix before traffic for that prefix will flow across the virtual circuit.<br /> | |
bulk_delete_virtual_circuit_public_prefixes | exec | virtualCircuitId, region, publicPrefixes | Removes one or more customer public IP prefixes from the specified public virtual circuit.<br />Use this operation (and not [UpdateVirtualCircuit](#/en/iaas/latest/VirtualCircuit/UpdateVirtualCircuit))<br />to remove prefixes from the virtual circuit. When the virtual circuit's state switches<br />back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection.<br /> | |
change_compartment | exec | virtualCircuitId, region, compartmentId | opc-request-id, opc-retry-token | Moves a virtual circuit 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 /> |
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) |
virtualCircuitId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. |
displayName | string | A filter to return only resources that match the given display name exactly. |
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. |
lifecycleState | string | A filter to return only resources that match the specified lifecycle state. The value is case insensitive. |
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). |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. Note: In general, some "List" operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these "List" operations without specifying an availability domain, the resources are grouped by availability domain, then sorted. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive. |
SELECT examples​
- get
- list
Gets the specified virtual circuit's information.
SELECT
id,
bandwidthShapeName,
bgpAdminState,
bgpIpv6SessionState,
bgpManagement,
bgpSessionState,
compartmentId,
crossConnectMappings,
customerBgpAsn,
definedTags,
displayName,
freeformTags,
gatewayId,
ipMtu,
isBfdEnabled,
isTransportMode,
lifecycleState,
oracleBgpAsn,
providerName,
providerServiceId,
providerServiceKeyName,
providerServiceName,
providerState,
publicPrefixes,
referenceComment,
region,
routingPolicy,
serviceType,
timeCreated,
type,
virtualCircuitRedundancyMetadata
FROM oci.network.virtual_circuits
WHERE virtualCircuitId = '{{ virtualCircuitId }}' -- required
AND region = '{{ region }}' -- required
;
Lists the virtual circuits in the specified compartment.<br />
SELECT
id,
bandwidthShapeName,
bgpAdminState,
bgpIpv6SessionState,
bgpManagement,
bgpSessionState,
compartmentId,
crossConnectMappings,
customerBgpAsn,
definedTags,
displayName,
freeformTags,
gatewayId,
ipMtu,
isBfdEnabled,
isTransportMode,
lifecycleState,
oracleBgpAsn,
providerName,
providerServiceId,
providerServiceKeyName,
providerServiceName,
providerState,
publicPrefixes,
referenceComment,
region,
routingPolicy,
serviceType,
timeCreated,
type,
virtualCircuitRedundancyMetadata
FROM oci.network.virtual_circuits
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND displayName = '{{ displayName }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND lifecycleState = '{{ lifecycleState }}'
;
INSERT examples​
- create
- Manifest
Creates a new virtual circuit to use with Oracle Cloud<br />Infrastructure FastConnect. For more information, see<br />[FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm).<br /><br />For the purposes of access control, you must provide the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the<br />compartment where you want the virtual circuit to reside. If you're<br />not sure which compartment to use, put the virtual circuit in the<br />same compartment with the DRG it's using. For more information about<br />compartments and access control, see<br />[Overview of the IAM Service](/iaas/Content/Identity/Concepts/overview.htm).<br />For information about OCIDs, see<br />[Resource Identifiers](/iaas/Content/General/Concepts/identifiers.htm).<br /><br />You may optionally specify a display name for the virtual circuit.<br />It does not have to be unique, and you can change it. Avoid entering confidential information.<br /><br />Important: When creating a virtual circuit, you specify a DRG for<br />the traffic to flow through. Make sure you attach the DRG to your<br />VCN and confirm the VCN's routing sends traffic to the DRG. Otherwise<br />traffic will not flow. For more information, see<br />[Route Tables](/iaas/Content/Network/Tasks/managingroutetables.htm).<br />
INSERT INTO oci.network.virtual_circuits (
bandwidthShapeName,
bgpAdminState,
compartmentId,
crossConnectMappings,
customerBgpAsn,
definedTags,
displayName,
freeformTags,
gatewayId,
ipMtu,
isBfdEnabled,
isTransportMode,
providerName,
providerServiceId,
providerServiceKeyName,
providerServiceName,
publicPrefixes,
region,
routingPolicy,
type,
region,
opc-retry-token
)
SELECT
'{{ bandwidthShapeName }}',
'{{ bgpAdminState }}',
'{{ compartmentId }}' /* required */,
'{{ crossConnectMappings }}',
{{ customerBgpAsn }},
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ gatewayId }}',
'{{ ipMtu }}',
{{ isBfdEnabled }},
{{ isTransportMode }},
'{{ providerName }}',
'{{ providerServiceId }}',
'{{ providerServiceKeyName }}',
'{{ providerServiceName }}',
'{{ publicPrefixes }}',
'{{ region }}',
'{{ routingPolicy }}',
'{{ type }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
id,
bandwidthShapeName,
bgpAdminState,
bgpIpv6SessionState,
bgpManagement,
bgpSessionState,
compartmentId,
crossConnectMappings,
customerBgpAsn,
definedTags,
displayName,
freeformTags,
gatewayId,
ipMtu,
isBfdEnabled,
isTransportMode,
lifecycleState,
oracleBgpAsn,
providerName,
providerServiceId,
providerServiceKeyName,
providerServiceName,
providerState,
publicPrefixes,
referenceComment,
region,
routingPolicy,
serviceType,
timeCreated,
type,
virtualCircuitRedundancyMetadata
;
# Description fields are for documentation purposes
- name: virtual_circuits
props:
- name: region
value: "{{ region }}"
description: Required parameter for the virtual_circuits resource.
- name: bandwidthShapeName
value: "{{ bandwidthShapeName }}"
description: |
The provisioned data rate of the connection. To get a list of the
available bandwidth levels (that is, shapes), see
[ListFastConnectProviderServiceVirtualCircuitBandwidthShapes](#/en/iaas/latest/FastConnectProviderService/ListFastConnectProviderVirtualCircuitBandwidthShapes).
Example: `10 Gbps`
- name: bgpAdminState
value: "{{ bgpAdminState }}"
description: |
Set to `ENABLED` (the default) to activate the BGP session of the virtual circuit, set to `DISABLED` to deactivate the virtual circuit.
valid_values: ['ENABLED', 'DISABLED']
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the virtual circuit.
- name: crossConnectMappings
description: |
Create a `CrossConnectMapping` for each cross-connect or cross-connect
group this virtual circuit will run on.
value:
- bgpMd5AuthKey: "{{ bgpMd5AuthKey }}"
crossConnectOrCrossConnectGroupId: "{{ crossConnectOrCrossConnectGroupId }}"
customerBgpPeeringIp: "{{ customerBgpPeeringIp }}"
customerBgpPeeringIpv6: "{{ customerBgpPeeringIpv6 }}"
oracleBgpPeeringIp: "{{ oracleBgpPeeringIp }}"
oracleBgpPeeringIpv6: "{{ oracleBgpPeeringIpv6 }}"
vlan: {{ vlan }}
- name: customerBgpAsn
value: {{ customerBgpAsn }}
description: |
Your BGP ASN (either public or private). Provide this value only if
there's a BGP session that goes from your edge router to Oracle.
Otherwise, leave this empty or null.
- 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: 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: gatewayId
value: "{{ gatewayId }}"
description: |
For private virtual circuits only. The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the [dynamic routing gateway (DRG)](#/en/iaas/latest/Drg)
that this virtual circuit uses.
- name: ipMtu
value: "{{ ipMtu }}"
description: |
The layer 3 IP MTU to use with this virtual circuit.
valid_values: ['MTU_1500', 'MTU_9000']
- name: isBfdEnabled
value: {{ isBfdEnabled }}
description: |
Set to `true` to enable BFD for IPv4 BGP peering, or set to `false` to disable BFD. If this is not set, the default is `false`.
default: false
- name: isTransportMode
value: {{ isTransportMode }}
description: |
Set to `true` for the virtual circuit to carry only encrypted traffic, or set to `false` for the virtual circuit to carry unencrypted traffic. If this is not set, the default is `false`.
default: false
- name: providerName
value: "{{ providerName }}"
description: |
Deprecated. Instead use `providerServiceId`.
To get a list of the provider names, see
[ListFastConnectProviderServices](#/en/iaas/latest/FastConnectProviderService/ListFastConnectProviderServices).
- name: providerServiceId
value: "{{ providerServiceId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if you're connecting
via a provider). To get a list of the available service offerings, see
[ListFastConnectProviderServices](#/en/iaas/latest/FastConnectProviderService/ListFastConnectProviderServices).
- name: providerServiceKeyName
value: "{{ providerServiceKeyName }}"
description: |
The service key name or activation key offered by the provider (if the customer is connecting via a provider).
- name: providerServiceName
value: "{{ providerServiceName }}"
description: |
Deprecated. Instead use `providerServiceId`.
To get a list of the provider names, see
[ListFastConnectProviderServices](#/en/iaas/latest/FastConnectProviderService/ListFastConnectProviderServices).
- name: publicPrefixes
description: |
For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to
advertise across the connection.
value:
- cidrBlock: "{{ cidrBlock }}"
- name: region
value: "{{ region }}"
description: |
The Oracle Cloud Infrastructure region where this virtual
circuit is located.
Example: `phx`
- name: routingPolicy
value:
- "{{ routingPolicy }}"
description: |
The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit.
Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`.
See [Route Filtering](/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details.
By default, routing information is shared for all routes in the same market.
- name: type
value: "{{ type }}"
description: |
The type of IP addresses used in this virtual circuit. PRIVATE
means [RFC 1918](https://tools.ietf.org/html/rfc1918) addresses
(10.0.0.0/8, 172.16/12, and 192.168/16).
valid_values: ['PUBLIC', 'PRIVATE']
- 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 virtual circuit. This can be called by<br />either the customer who owns the virtual circuit, or the<br />provider (when provisioning or de-provisioning the virtual<br />circuit from their end). The documentation for<br />[UpdateVirtualCircuitDetails](#/en/iaas/latest/requests/UpdateVirtualCircuitDetails)<br />indicates who can update each property of the virtual circuit.<br /><br />Important: If the virtual circuit is working and in the<br />PROVISIONED state, updating any of the network-related properties<br />(such as the DRG being used, the BGP ASN, and so on) will cause the virtual<br />circuit's state to switch to PROVISIONING and the related BGP<br />session to go down. After Oracle re-provisions the virtual circuit,<br />its state will return to PROVISIONED. Make sure you confirm that<br />the associated BGP session is back up. For more information<br />about the various states and how to test connectivity, see<br />[FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm).<br /><br />To change the list of public IP prefixes for a public virtual circuit,<br />use [BulkAddVirtualCircuitPublicPrefixes](#/en/iaas/latest/VirtualCircuitPublicPrefix/BulkAddVirtualCircuitPublicPrefixes)<br />and<br />[BulkDeleteVirtualCircuitPublicPrefixes](#/en/iaas/latest/VirtualCircuitPublicPrefix/BulkDeleteVirtualCircuitPublicPrefixes).<br />Updating the list of prefixes does NOT cause the BGP session to go down. However,<br />Oracle must verify the customer's ownership of each added prefix before<br />traffic for that prefix will flow across the virtual circuit.<br />
UPDATE oci.network.virtual_circuits
SET
bandwidthShapeName = '{{ bandwidthShapeName }}',
bgpAdminState = '{{ bgpAdminState }}',
crossConnectMappings = '{{ crossConnectMappings }}',
customerBgpAsn = {{ customerBgpAsn }},
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
gatewayId = '{{ gatewayId }}',
ipMtu = '{{ ipMtu }}',
isBfdEnabled = {{ isBfdEnabled }},
isTransportMode = {{ isTransportMode }},
providerServiceKeyName = '{{ providerServiceKeyName }}',
providerState = '{{ providerState }}',
referenceComment = '{{ referenceComment }}',
routingPolicy = '{{ routingPolicy }}'
WHERE
virtualCircuitId = '{{ virtualCircuitId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
RETURNING
id,
bandwidthShapeName,
bgpAdminState,
bgpIpv6SessionState,
bgpManagement,
bgpSessionState,
compartmentId,
crossConnectMappings,
customerBgpAsn,
definedTags,
displayName,
freeformTags,
gatewayId,
ipMtu,
isBfdEnabled,
isTransportMode,
lifecycleState,
oracleBgpAsn,
providerName,
providerServiceId,
providerServiceKeyName,
providerServiceName,
providerState,
publicPrefixes,
referenceComment,
region,
routingPolicy,
serviceType,
timeCreated,
type,
virtualCircuitRedundancyMetadata;
DELETE examples​
- delete
Deletes the specified virtual circuit.<br /><br />Important: If you're using FastConnect via a provider,<br />make sure to also terminate the connection with<br />the provider, or else the provider may continue to bill you.<br />
DELETE FROM oci.network.virtual_circuits
WHERE virtualCircuitId = '{{ virtualCircuitId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
;
Lifecycle Methods​
- bulk_add_virtual_circuit_public_prefixes
- bulk_delete_virtual_circuit_public_prefixes
- change_compartment
Adds one or more customer public IP prefixes to the specified public virtual circuit.<br />Use this operation (and not [UpdateVirtualCircuit](#/en/iaas/latest/VirtualCircuit/UpdateVirtualCircuit))<br />to add prefixes to the virtual circuit. Oracle must verify the customer's ownership<br />of each prefix before traffic for that prefix will flow across the virtual circuit.<br />
EXEC oci.network.virtual_circuits.bulk_add_virtual_circuit_public_prefixes
@virtualCircuitId='{{ virtualCircuitId }}' --required,
@region='{{ region }}' --required
@@json=
'{
"publicPrefixes": "{{ publicPrefixes }}"
}'
;
Removes one or more customer public IP prefixes from the specified public virtual circuit.<br />Use this operation (and not [UpdateVirtualCircuit](#/en/iaas/latest/VirtualCircuit/UpdateVirtualCircuit))<br />to remove prefixes from the virtual circuit. When the virtual circuit's state switches<br />back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection.<br />
EXEC oci.network.virtual_circuits.bulk_delete_virtual_circuit_public_prefixes
@virtualCircuitId='{{ virtualCircuitId }}' --required,
@region='{{ region }}' --required
@@json=
'{
"publicPrefixes": "{{ publicPrefixes }}"
}'
;
Moves a virtual circuit 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.virtual_circuits.change_compartment
@virtualCircuitId='{{ virtualCircuitId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;