Skip to main content

execution_actions

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

Overview​

Nameexecution_actions
TypeResource
Idoci.database.execution_actions

Fields​

The following fields are returned by SELECT queries:

The execution action details.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the execution action.
actionMembersarrayList of action members of this execution action.
actionParamsobjectMap<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: &#123;"count": "3"&#125;
actionTypestringThe action type of the execution action being performed (DB_SERVER_FULL_SOFTWARE_UPDATE, STORAGE_SERVER_FULL_SOFTWARE_UPDATE, NETWORK_SWITCH_FULL_SOFTWARE_UPDATE, DB_SERVER_ONLINE_SOFTWARE_UPDATE)
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).
descriptionstringDescription of the execution action.
displayNamestringThe user-friendly name for the execution action. The name does not need to be unique.
estimatedTimeInMinsintegerThe estimated time of the execution action in minutes.
executionActionOrderintegerThe priority order of the execution action.
executionWindowIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the execution window resource the execution action belongs to.
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: &#123;"Department": "Finance"&#125;
lifecycleDetailsstringAdditional information about the current lifecycle state.
lifecycleStatestringThe current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. (SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED, PARTIAL_SUCCESS)
lifecycleSubstatestringThe current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING. (DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS, WAITING)
systemTagsobjectSystem tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
timeCreatedstring (date-time)The date and time the execution action was created.
timeUpdatedstring (date-time)The last date and time that the execution action was updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexecutionActionId, regionopc-request-idGets information about the specified execution action.<br />
listselectcompartmentId, regionlimit, page, opc-request-id, sortBy, sortOrder, lifecycleState, executionWindowId, displayNameLists the execution action resources in the specified compartment.<br />
createinsertregion, executionWindowId, actionTypeopc-retry-token, opc-request-idCreates an execution action resource.<br />
updateupdateexecutionActionId, regionif-match, opc-request-idUpdates the execution action resource.<br />
deletedeleteexecutionActionId, regionif-match, opc-request-idDeletes the execution action.<br />
move_execution_action_memberexecexecutionActionId, regionif-match, opc-request-id, opc-retry-tokenMoves an execution action member to this execution action resource from another.<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 compartment [OCID](/Content/General/Concepts/identifiers.htm).
executionActionIdstringThe execution action [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)
displayNamestringA filter to return only resources that match the entire display name given. The match is not case sensitive.
executionWindowIdstringA filter to return only resources that match the given execution wondow id.
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 the specified execution action.<br />

SELECT
id,
actionMembers,
actionParams,
actionType,
compartmentId,
definedTags,
description,
displayName,
estimatedTimeInMins,
executionActionOrder,
executionWindowId,
freeformTags,
lifecycleDetails,
lifecycleState,
lifecycleSubstate,
systemTags,
timeCreated,
timeUpdated
FROM oci.database.execution_actions
WHERE executionActionId = '{{ executionActionId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates an execution action resource.<br />

INSERT INTO oci.database.execution_actions (
actionMembers,
actionParams,
actionType,
compartmentId,
definedTags,
executionWindowId,
freeformTags,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ actionMembers }}',
'{{ actionParams }}',
'{{ actionType }}' /* required */,
'{{ compartmentId }}',
'{{ definedTags }}',
'{{ executionWindowId }}' /* required */,
'{{ freeformTags }}',
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
actionMembers,
actionParams,
actionType,
compartmentId,
definedTags,
description,
displayName,
estimatedTimeInMins,
executionActionOrder,
executionWindowId,
freeformTags,
lifecycleDetails,
lifecycleState,
lifecycleSubstate,
systemTags,
timeCreated,
timeUpdated
;

UPDATE examples​

Updates the execution action resource.<br />

UPDATE oci.database.execution_actions
SET
actionMembers = '{{ actionMembers }}',
actionParams = '{{ actionParams }}',
definedTags = '{{ definedTags }}',
executionWindowId = '{{ executionWindowId }}',
freeformTags = '{{ freeformTags }}'
WHERE
executionActionId = '{{ executionActionId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}'
RETURNING
id,
actionMembers,
actionParams,
actionType,
compartmentId,
definedTags,
description,
displayName,
estimatedTimeInMins,
executionActionOrder,
executionWindowId,
freeformTags,
lifecycleDetails,
lifecycleState,
lifecycleSubstate,
systemTags,
timeCreated,
timeUpdated;

DELETE examples​

Deletes the execution action.<br />

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

Lifecycle Methods​

Moves an execution action member to this execution action resource from another.<br />

EXEC oci.database.execution_actions.move_execution_action_member
@executionActionId='{{ executionActionId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"definedTags": "{{ definedTags }}",
"executionActionMemberCount": {{ executionActionMemberCount }},
"executionActionMemberId": "{{ executionActionMemberId }}",
"freeformTags": "{{ freeformTags }}",
"sourceExecutionActionId": "{{ sourceExecutionActionId }}"
}'
;