Skip to main content

public_ip_pools

Creates, updates, deletes, gets or lists a public_ip_pools resource.

Overview​

Namepublic_ip_pools
TypeResource
Idoci.network.public_ip_pools

Fields​

The following fields are returned by SELECT queries:

The PublicIpPool object was retrieved.

NameDatatypeDescription
idstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool.
cidrBlocksarrayThe CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing this pool.
definedTagsobjectDefined 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"}}
displayNamestringA user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTagsobjectFree-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"}
lifecycleStatestringThe public IP pool's current state. (INACTIVE, UPDATING, ACTIVE, DELETING, DELETED)
timeCreatedstring (date-time)The date and time the public IP pool 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpublicIpPoolId, regionopc-request-idGets the specified PublicIpPool object. You must specify the object's [OCID](/iaas/Content/General/Concepts/identifiers.htm).<br />
listselectcompartmentId, regionopc-request-id, limit, page, displayName, byoipRangeId, sortBy, sortOrderLists the public IP pools in the specified compartment.<br />You can filter the list using query parameters.<br />
createinsertregion, compartmentIdopc-request-id, opc-retry-tokenCreates a public IP pool.<br />
updateupdatepublicIpPoolId, regionopc-request-id, if-matchUpdates the specified public IP pool.<br />
deletedeletepublicIpPoolId, regionopc-request-id, if-matchDeletes the specified public IP pool.<br />To delete a public IP pool it must not have any active IP address allocations.<br />You must specify the object's [OCID](/iaas/Content/General/Concepts/identifiers.htm) when deleting an IP pool.<br />
add_public_ip_pool_capacityexecpublicIpPoolId, region, byoipRangeId, cidrBlockopc-request-id, opc-retry-tokenAdds some or all of a CIDR block to a public IP pool.<br /><br />The CIDR block (or subrange) must not overlap with any other CIDR block already added to this or any other public IP pool.<br />
change_compartmentexecpublicIpPoolId, region, compartmentIdopc-request-id, opc-retry-tokenMoves a public IP pool 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 />
remove_public_ip_pool_capacityexecpublicIpPoolId, region, cidrBlockopc-request-id, opc-retry-tokenRemoves a CIDR block from the referenced public IP pool.<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.

NameDatatypeDescription
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
publicIpPoolIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool.
regionstringOCI 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)
byoipRangeIdstringA filter to return only resources that match the given BYOIP CIDR block.
displayNamestringA filter to return only resources that match the given display name exactly.
if-matchstringFor 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.
limitintegerFor 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-idstringUnique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA 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).
pagestringFor 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).
sortBystringThe 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.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

SELECT examples​

Gets the specified PublicIpPool object. You must specify the object's [OCID](/iaas/Content/General/Concepts/identifiers.htm).<br />

SELECT
id,
cidrBlocks,
compartmentId,
definedTags,
displayName,
freeformTags,
lifecycleState,
timeCreated
FROM oci.network.public_ip_pools
WHERE publicIpPoolId = '{{ publicIpPoolId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates a public IP pool.<br />

INSERT INTO oci.network.public_ip_pools (
compartmentId,
definedTags,
displayName,
freeformTags,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
RETURNING
id,
cidrBlocks,
compartmentId,
definedTags,
displayName,
freeformTags,
lifecycleState,
timeCreated
;

UPDATE examples​

Updates the specified public IP pool.<br />

UPDATE oci.network.public_ip_pools
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
publicIpPoolId = '{{ publicIpPoolId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id}}'
AND if-match = '{{ if-match}}'
RETURNING
id,
cidrBlocks,
compartmentId,
definedTags,
displayName,
freeformTags,
lifecycleState,
timeCreated;

DELETE examples​

Deletes the specified public IP pool.<br />To delete a public IP pool it must not have any active IP address allocations.<br />You must specify the object's [OCID](/iaas/Content/General/Concepts/identifiers.htm) when deleting an IP pool.<br />

DELETE FROM oci.network.public_ip_pools
WHERE publicIpPoolId = '{{ publicIpPoolId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id }}'
AND if-match = '{{ if-match }}'
;

Lifecycle Methods​

Adds some or all of a CIDR block to a public IP pool.<br /><br />The CIDR block (or subrange) must not overlap with any other CIDR block already added to this or any other public IP pool.<br />

EXEC oci.network.public_ip_pools.add_public_ip_pool_capacity
@publicIpPoolId='{{ publicIpPoolId }}' --required,
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"byoipRangeId": "{{ byoipRangeId }}",
"cidrBlock": "{{ cidrBlock }}"
}'
;