byoip_ranges
Creates, updates, deletes, gets or lists a byoip_ranges resource.
Overview​
| Name | byoip_ranges |
| Type | Resource |
| Id | oci.network.byoip_ranges |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The ByoipRange resource was retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the ByoipRange resource. |
byoipRangeVcnIpv6Allocations | array | A list of ByoipRangeVcnIpv6AllocationSummary objects. |
cidrBlock | string | The public IPv4 CIDR block being imported from on-premises to the Oracle cloud. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOIP CIDR block. |
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"} |
ipv6CidrBlock | string | The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be also assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size. |
lifecycleDetails | string | The ByoipRange resource's current status. (CREATING, VALIDATING, PROVISIONED, ACTIVE, FAILED, DELETING, DELETED, ADVERTISING, WITHDRAWING) |
lifecycleState | string | The ByoipRange resource's current state. (INACTIVE, UPDATING, ACTIVE, DELETING, DELETED) |
originAsn | object | Information about the origin asn. |
timeAdvertised | string (date-time) | The date and time the ByoipRange resource was advertised to the internet by BGP, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
timeCreated | string (date-time) | The date and time the ByoipRange resource was created, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
timeValidated | string (date-time) | The date and time the ByoipRange resource was validated, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
timeWithdrawn | string (date-time) | The date and time the ByoipRange resource was withdrawn from advertisement by BGP to the internet, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z |
validationToken | string | The validation token is an internally-generated ASCII string used in the validation process. See [Importing a CIDR block](/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details. |
The list is being retrieved.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the ByoipRange resource. |
byoipRangeVcnIpv6Allocations | array | A list of ByoipRangeVcnIpv6AllocationSummary objects. |
cidrBlock | string | The public IPv4 address range you are importing to the Oracle cloud. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the ByoipRange resource. |
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"} |
ipv6CidrBlock | string | The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size. |
lifecycleDetails | string | The Byoip Range's current lifeCycle substate. (x-obmcs-enumref: #/definitions/ByoipRange/lifecycleDetails) |
lifecycleState | string | The ByoipRange resource's current state. (x-obmcs-enumref: #/definitions/ByoipRange/lifecycleState) |
timeCreated | string (date-time) | The date and time the ByoipRange resource 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 | byoipRangeId, region | opc-request-id | Gets the ByoipRange resource. You must specify the [OCID](/iaas/Content/General/Concepts/identifiers.htm).<br /> |
list | select | compartmentId, region | opc-request-id, limit, page, displayName, lifecycleState, sortBy, sortOrder | Lists the ByoipRange resources in the specified compartment.<br />You can filter the list using query parameters.<br /> |
create | insert | region, compartmentId | opc-request-id, opc-retry-token | Creates a subrange of the BYOIP CIDR block.<br /> |
update | update | byoipRangeId, region | opc-request-id, if-match | Updates the tags or display name associated to the specified BYOIP CIDR block.<br /> |
delete | delete | byoipRangeId, region | opc-request-id, if-match | Deletes the specified ByoipRange resource.<br />The resource must be in one of the following states: CREATING, PROVISIONED, ACTIVE, or FAILED.<br />It must not have any subranges currently allocated to a PublicIpPool object or the deletion will fail.<br />You must specify the [OCID](/iaas/Content/General/Concepts/identifiers.htm).<br />If the ByoipRange resource is currently in the PROVISIONED or ACTIVE state, it will be de-provisioned and then deleted.<br /> |
advertise_byoip_range | exec | byoipRangeId, region | opc-request-id | Begins BGP route advertisements for the BYOIP CIDR block you imported to the Oracle Cloud.<br />The ByoipRange resource must be in the PROVISIONED state before the BYOIP CIDR block routes can be advertised with BGP.<br /> |
change_compartment | exec | byoipRangeId, region, compartmentId | opc-request-id, opc-retry-token | Moves a BYOIP CIDR block to a different compartment. For information<br />about moving resources between compartments, see<br />[Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br /> |
set_origin_asn | exec | byoipRangeId, region, byoasnId | opc-request-id, opc-retry-token, if-match | Update BYOIP's origin ASN to byoasn.<br /> |
set_origin_asn_to_oracle | exec | byoipRangeId, region | opc-request-id, if-match | Update prefix's origin ASN to OCI<br /> |
validate_byoip_range | exec | byoipRangeId, region | opc-request-id | Submits the BYOIP CIDR block you are importing for validation. Do not submit to Oracle for validation if you have not already<br />modified the information for the BYOIP CIDR block with your Regional Internet Registry. See [To import a CIDR block](/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details.<br /> |
withdraw_byoip_range | exec | byoipRangeId, region | opc-request-id | Withdraws BGP route advertisement for the BYOIP CIDR block.<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 |
|---|---|---|
byoipRangeId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the ByoipRange resource containing the BYOIP CIDR block. |
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) |
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 given lifecycle state name exactly. |
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 ByoipRange resource. You must specify the [OCID](/iaas/Content/General/Concepts/identifiers.htm).<br />
SELECT
id,
byoipRangeVcnIpv6Allocations,
cidrBlock,
compartmentId,
definedTags,
displayName,
freeformTags,
ipv6CidrBlock,
lifecycleDetails,
lifecycleState,
originAsn,
timeAdvertised,
timeCreated,
timeValidated,
timeWithdrawn,
validationToken
FROM oci.network.byoip_ranges
WHERE byoipRangeId = '{{ byoipRangeId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Lists the ByoipRange resources in the specified compartment.<br />You can filter the list using query parameters.<br />
SELECT
id,
byoipRangeVcnIpv6Allocations,
cidrBlock,
compartmentId,
definedTags,
displayName,
freeformTags,
ipv6CidrBlock,
lifecycleDetails,
lifecycleState,
timeCreated
FROM oci.network.byoip_ranges
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND displayName = '{{ displayName }}'
AND lifecycleState = '{{ lifecycleState }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
;
INSERT examples​
- create
- Manifest
Creates a subrange of the BYOIP CIDR block.<br />
INSERT INTO oci.network.byoip_ranges (
cidrBlock,
compartmentId,
definedTags,
displayName,
freeformTags,
ipv6CidrBlock,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ cidrBlock }}',
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ ipv6CidrBlock }}',
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
RETURNING
id,
byoipRangeVcnIpv6Allocations,
cidrBlock,
compartmentId,
definedTags,
displayName,
freeformTags,
ipv6CidrBlock,
lifecycleDetails,
lifecycleState,
originAsn,
timeAdvertised,
timeCreated,
timeValidated,
timeWithdrawn,
validationToken
;
# Description fields are for documentation purposes
- name: byoip_ranges
props:
- name: region
value: "{{ region }}"
description: Required parameter for the byoip_ranges resource.
- name: cidrBlock
value: "{{ cidrBlock }}"
description: |
The BYOIP CIDR block. You can assign some or all of it to a public IP pool after it is validated.
Example: `10.0.1.0/24`
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOIP CIDR block.
- 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: ipv6CidrBlock
value: "{{ ipv6CidrBlock }}"
description: |
The BYOIPv6 prefix. You can assign some or all of it to a VCN after it is validated.
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
- 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 tags or display name associated to the specified BYOIP CIDR block.<br />
UPDATE oci.network.byoip_ranges
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
byoipRangeId = '{{ byoipRangeId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id}}'
AND if-match = '{{ if-match}}'
RETURNING
id,
byoipRangeVcnIpv6Allocations,
cidrBlock,
compartmentId,
definedTags,
displayName,
freeformTags,
ipv6CidrBlock,
lifecycleDetails,
lifecycleState,
originAsn,
timeAdvertised,
timeCreated,
timeValidated,
timeWithdrawn,
validationToken;
DELETE examples​
- delete
Deletes the specified ByoipRange resource.<br />The resource must be in one of the following states: CREATING, PROVISIONED, ACTIVE, or FAILED.<br />It must not have any subranges currently allocated to a PublicIpPool object or the deletion will fail.<br />You must specify the [OCID](/iaas/Content/General/Concepts/identifiers.htm).<br />If the ByoipRange resource is currently in the PROVISIONED or ACTIVE state, it will be de-provisioned and then deleted.<br />
DELETE FROM oci.network.byoip_ranges
WHERE byoipRangeId = '{{ byoipRangeId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id }}'
AND if-match = '{{ if-match }}'
;
Lifecycle Methods​
- advertise_byoip_range
- change_compartment
- set_origin_asn
- set_origin_asn_to_oracle
- validate_byoip_range
- withdraw_byoip_range
Begins BGP route advertisements for the BYOIP CIDR block you imported to the Oracle Cloud.<br />The ByoipRange resource must be in the PROVISIONED state before the BYOIP CIDR block routes can be advertised with BGP.<br />
EXEC oci.network.byoip_ranges.advertise_byoip_range
@byoipRangeId='{{ byoipRangeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}'
;
Moves a BYOIP CIDR block to a different compartment. 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.byoip_ranges.change_compartment
@byoipRangeId='{{ byoipRangeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;
Update BYOIP's origin ASN to byoasn.<br />
EXEC oci.network.byoip_ranges.set_origin_asn
@byoipRangeId='{{ byoipRangeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}',
@if-match='{{ if-match }}'
@@json=
'{
"asPathPrependLength": {{ asPathPrependLength }},
"byoasnId": "{{ byoasnId }}"
}'
;
Update prefix's origin ASN to OCI<br />
EXEC oci.network.byoip_ranges.set_origin_asn_to_oracle
@byoipRangeId='{{ byoipRangeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
;
Submits the BYOIP CIDR block you are importing for validation. Do not submit to Oracle for validation if you have not already<br />modified the information for the BYOIP CIDR block with your Regional Internet Registry. See [To import a CIDR block](/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details.<br />
EXEC oci.network.byoip_ranges.validate_byoip_range
@byoipRangeId='{{ byoipRangeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}'
;
Withdraws BGP route advertisement for the BYOIP CIDR block.<br />
EXEC oci.network.byoip_ranges.withdraw_byoip_range
@byoipRangeId='{{ byoipRangeId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}'
;