Skip to main content

scheduling_plans

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

Overview​

Namescheduling_plans
TypeResource
Idoci.database.scheduling_plans

Fields​

The following fields are returned by SELECT queries:

The Scheduling Plan details.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Scheduling Plan.
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).
displayNamestringThe display name of the Scheduling Plan.
estimatedTimeInMinsintegerThe estimated time for the Scheduling Plan.
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"}
isUsingRecommendedScheduledActionsbooleanIf true, recommended scheduled actions will be generated for the scheduling plan.
lifecycleDetailsstringAdditional information about the current lifecycle state.
lifecycleStatestringThe current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED. (CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING, DELETED)
planIntentstringThe current intent of the Scheduling Plan. Valid states are EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE and EXADATA_INFRASTRUCTURE_SECURITY_UPDATE. (EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE, EXADATA_INFRASTRUCTURE_SECURITY_UPDATE) (default: EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE)
resourceIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the resource.
schedulingPolicyIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Scheduling Policy.
serviceTypestringThe service type of the Scheduling Plan. (EXACC, EXACS, FPPPCS)
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 Scheduling Plan Resource was created.
timeUpdatedstring (date-time)The date and time the Scheduling Plan Resource was updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectschedulingPlanId, regionopc-request-idGets information about the specified Scheduling Plan.<br />
listselectcompartmentId, regionlimit, page, opc-request-id, sortBy, sortOrder, lifecycleState, displayName, resourceId, id, planIntentLists the Scheduling Plan resources in the specified compartment.<br />
createinsertregion, schedulingPolicyId, resourceId, compartmentId, serviceTypeopc-retry-token, opc-request-idCreates a Scheduling Plan resource.<br />
deletedeleteschedulingPlanId, regionif-match, opc-request-idDeletes the scheduling plan.<br />
change_compartmentexecschedulingPlanId, region, compartmentIdif-match, opc-request-id, opc-retry-tokenMoves an scheduling plan resource to another compartment.<br />
reorder_scheduled_actionsexecschedulingPlanId, region, scheduledActionIdOrdersopc-retry-token, opc-request-id, if-matchRe-order the scheduled actions under this scheduling plan resource.<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).
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)
schedulingPlanIdstringThe Schedule Plan [OCID](/Content/General/Concepts/identifiers.htm).
displayNamestringA filter to return only resources that match the entire display name given. The match is not case sensitive.
idstringA filter to return only resources that match the given Schedule Plan id 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.
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.
planIntentstringA filter to return only resources that match the given plan intent exactly.
resourceIdstringA filter to return only resources that match the given resource id exactly.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Gets information about the specified Scheduling Plan.<br />

SELECT
id,
compartmentId,
definedTags,
displayName,
estimatedTimeInMins,
freeformTags,
isUsingRecommendedScheduledActions,
lifecycleDetails,
lifecycleState,
planIntent,
resourceId,
schedulingPolicyId,
serviceType,
systemTags,
timeCreated,
timeUpdated
FROM oci.database.scheduling_plans
WHERE schedulingPlanId = '{{ schedulingPlanId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates a Scheduling Plan resource.<br />

INSERT INTO oci.database.scheduling_plans (
compartmentId,
definedTags,
freeformTags,
isUsingRecommendedScheduledActions,
planIntent,
resourceId,
schedulingPolicyId,
serviceType,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ freeformTags }}',
{{ isUsingRecommendedScheduledActions }},
'{{ planIntent }}',
'{{ resourceId }}' /* required */,
'{{ schedulingPolicyId }}' /* required */,
'{{ serviceType }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
estimatedTimeInMins,
freeformTags,
isUsingRecommendedScheduledActions,
lifecycleDetails,
lifecycleState,
planIntent,
resourceId,
schedulingPolicyId,
serviceType,
systemTags,
timeCreated,
timeUpdated
;

DELETE examples​

Deletes the scheduling plan.<br />

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

Lifecycle Methods​

Moves an scheduling plan resource to another compartment.<br />

EXEC oci.database.scheduling_plans.change_compartment
@schedulingPlanId='{{ schedulingPlanId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;