Skip to main content

application_vips

Creates, updates, deletes, gets or lists an application_vips resource.

Overview​

Nameapplication_vips
TypeResource
Idoci.database.application_vips

Fields​

The following fields are returned by SELECT queries:

The application virtual IP (VIP) address details.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the application virtual IP (VIP) address.
cloudVmClusterIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the cloud VM cluster associated with the application virtual IP (VIP) address.
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment.
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"}
hostnameLabelstringThe hostname of the application virtual IP (VIP) address.
ipAddressstringThe application virtual IP (VIP) address.
lifecycleDetailsstringAdditional information about the current lifecycle state of the application virtual IP (VIP) address.
lifecycleStatestringThe current lifecycle state of the application virtual IP (VIP) address. (PROVISIONING, AVAILABLE, TERMINATING, TERMINATED, FAILED)
subnetIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the subnet associated with the application virtual IP (VIP) address.
timeAssignedstring (date-time)The date and time when the create operation for the application virtual IP (VIP) address completed.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapplicationVipId, regionopc-request-idGets information about a specified application virtual IP (VIP) address.
listselectcompartmentId, cloudVmClusterId, regionlimit, page, opc-request-id, sortOrder, sortBy, lifecycleStateGets a list of application virtual IP (VIP) addresses on a cloud VM cluster.<br />
createinsertregion, hostnameLabel, cloudVmClusterIdopc-retry-token, opc-request-idCreates a new application virtual IP (VIP) address in the specified cloud VM cluster based on the request parameters you provide.<br />
deletedeleteapplicationVipId, regionif-match, opc-request-idDeletes and deregisters the specified application virtual IP (VIP) address.<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
applicationVipIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the application virtual IP (VIP) address.
cloudVmClusterIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the cloud VM cluster associated with the application virtual IP (VIP) address.
compartmentIdstringThe compartment [OCID](/Content/General/Concepts/identifiers.htm).
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)
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.
lifecycleStatestringA filter to return only resources that match the given lifecycle state exactly.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
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).
pagestringThe pagination token to continue listing from.
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.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets information about a specified application virtual IP (VIP) address.

SELECT
id,
cloudVmClusterId,
compartmentId,
definedTags,
freeformTags,
hostnameLabel,
ipAddress,
lifecycleDetails,
lifecycleState,
subnetId,
timeAssigned
FROM oci.database.application_vips
WHERE applicationVipId = '{{ applicationVipId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates a new application virtual IP (VIP) address in the specified cloud VM cluster based on the request parameters you provide.<br />

INSERT INTO oci.database.application_vips (
cloudVmClusterId,
dbNodeId,
hostnameLabel,
ipAddress,
subnetId,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ cloudVmClusterId }}' /* required */,
'{{ dbNodeId }}',
'{{ hostnameLabel }}' /* required */,
'{{ ipAddress }}',
'{{ subnetId }}',
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
cloudVmClusterId,
compartmentId,
definedTags,
freeformTags,
hostnameLabel,
ipAddress,
lifecycleDetails,
lifecycleState,
subnetId,
timeAssigned
;

DELETE examples​

Deletes and deregisters the specified application virtual IP (VIP) address.<br />

DELETE FROM oci.database.application_vips
WHERE applicationVipId = '{{ applicationVipId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;