dbnode_snapshots
Creates, updates, deletes, gets or lists a dbnode_snapshots resource.
Overview​
| Name | dbnode_snapshots |
| Type | Resource |
| Id | oci.database.dbnode_snapshots |
Fields​
The following fields are returned by SELECT queries:
- get
- list
Information about the Exadata Database Node Snapshot.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata Database Node Snapshot. |
name | string | The user-friendly name for the Database Node Snapshot. The name should be unique. |
clusterId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the VM cluster. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
lifecycleDetails | string | Additional information about the current lifecycle state of the Exadata Database Node Snapshot. |
lifecycleState | string | The current state of the Exadata Database Node Snapshot. (CREATING, AVAILABLE, TERMINATING, TERMINATED, FAILED, MOUNTED, MOUNTING, UNMOUNTING) |
mountPoints | array | Details of the mount points |
sourceDbnodeId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata Database Node. |
systemTags | object | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
timeCreated | string (date-time) | The date and time that the Exadata Database Node Snapshot was created. |
volumes | array | Details of the volumes |
Details of the Exadata Database Node Snapshot.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata Database Node Snapshot. |
name | string | The user-friendly name for the Database Node Snapshot. The name should be unique. |
clusterId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the VM cluster. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
lifecycleDetails | string | Additional information about the current lifecycle state of the Exadata Database Node Snapshot. |
lifecycleState | string | The current state of the Exadata Database Storage Vault. (x-obmcs-enumref: #/definitions/DbnodeSnapshot/lifecycleState) |
mountPoints | array | Details of the mount points |
sourceDbnodeId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata Database Node. |
systemTags | object | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
timeCreated | string (date-time) | The date and time that the Exadata Database Node Snapshot was created. |
volumes | array | Details of the volumes |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | dbnodeSnapshotId, region | opc-request-id | Gets information about the specified Exadata Database Node Snapshot in the specified compartment.<br /> |
list | select | compartmentId, region | limit, page, sortBy, name, sortOrder, lifecycleState, clusterId, sourceDbnodeId, opc-request-id | Gets a list of the Exadata Database Node Snapshots in the specified compartment.<br /> |
delete | delete | dbnodeSnapshotId, region | if-match, opc-request-id | Deletes the specified Exadata Database Node Snapshot.<br /> |
mount_dbnode_snapshot | exec | dbnodeSnapshotId, region, dbNodeId | opc-retry-token, opc-request-id, if-match | Mounts the snapshot for the provided dbNode.<br /> |
unmount_dbnode_snapshot | exec | dbnodeSnapshotId, region, dbNodeId | opc-retry-token, opc-request-id, if-match | Unmounts the snapshot for the provided dbNode.<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 compartment [OCID](/Content/General/Concepts/identifiers.htm). |
dbnodeSnapshotId | string | The Exadata Database Node Snapshot [OCID](/Content/General/Concepts/identifiers.htm). |
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) |
clusterId | string | A filter to return only Exadata Database Node Snapshots that match the given VM cluster. |
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 Exadata Database Snapshots that match the given lifecycle state exactly. |
limit | integer | The maximum number of items to return per page. |
name | string | A filter to return only resources that match the entire name given. The match is not case sensitive. |
opc-request-id | string | Unique identifier for the request. |
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 | The pagination token to continue listing from. |
sortBy | string | The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). |
sourceDbnodeId | string | A filter to return only Exadata Database Snapshots that match the given database node. |
SELECT examples​
- get
- list
Gets information about the specified Exadata Database Node Snapshot in the specified compartment.<br />
SELECT
id,
name,
clusterId,
compartmentId,
definedTags,
freeformTags,
lifecycleDetails,
lifecycleState,
mountPoints,
sourceDbnodeId,
systemTags,
timeCreated,
volumes
FROM oci.database.dbnode_snapshots
WHERE dbnodeSnapshotId = '{{ dbnodeSnapshotId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Gets a list of the Exadata Database Node Snapshots in the specified compartment.<br />
SELECT
id,
name,
clusterId,
compartmentId,
definedTags,
freeformTags,
lifecycleDetails,
lifecycleState,
mountPoints,
sourceDbnodeId,
systemTags,
timeCreated,
volumes
FROM oci.database.dbnode_snapshots
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND name = '{{ name }}'
AND sortOrder = '{{ sortOrder }}'
AND lifecycleState = '{{ lifecycleState }}'
AND clusterId = '{{ clusterId }}'
AND sourceDbnodeId = '{{ sourceDbnodeId }}'
AND opc-request-id = '{{ opc-request-id }}'
;
DELETE examples​
- delete
Deletes the specified Exadata Database Node Snapshot.<br />
DELETE FROM oci.database.dbnode_snapshots
WHERE dbnodeSnapshotId = '{{ dbnodeSnapshotId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;
Lifecycle Methods​
- mount_dbnode_snapshot
- unmount_dbnode_snapshot
Mounts the snapshot for the provided dbNode.<br />
EXEC oci.database.dbnode_snapshots.mount_dbnode_snapshot
@dbnodeSnapshotId='{{ dbnodeSnapshotId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"dbNodeId": "{{ dbNodeId }}"
}'
;
Unmounts the snapshot for the provided dbNode.<br />
EXEC oci.database.dbnode_snapshots.unmount_dbnode_snapshot
@dbnodeSnapshotId='{{ dbnodeSnapshotId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"dbNodeId": "{{ dbNodeId }}"
}'
;