1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getSchedulingPlan
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Database.getSchedulingPlan

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides details about a specific Scheduling Plan resource in Oracle Cloud Infrastructure Database service.

Gets information about the specified Scheduling Plan.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSchedulingPlan = oci.Database.getSchedulingPlan({
    schedulingPlanId: testSchedulingPlanOciDatabaseSchedulingPlan.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_scheduling_plan = oci.Database.get_scheduling_plan(scheduling_plan_id=test_scheduling_plan_oci_database_scheduling_plan["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetSchedulingPlan(ctx, &database.GetSchedulingPlanArgs{
			SchedulingPlanId: testSchedulingPlanOciDatabaseSchedulingPlan.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSchedulingPlan = Oci.Database.GetSchedulingPlan.Invoke(new()
    {
        SchedulingPlanId = testSchedulingPlanOciDatabaseSchedulingPlan.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetSchedulingPlanArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testSchedulingPlan = DatabaseFunctions.getSchedulingPlan(GetSchedulingPlanArgs.builder()
            .schedulingPlanId(testSchedulingPlanOciDatabaseSchedulingPlan.id())
            .build());

    }
}
Copy
variables:
  testSchedulingPlan:
    fn::invoke:
      function: oci:Database:getSchedulingPlan
      arguments:
        schedulingPlanId: ${testSchedulingPlanOciDatabaseSchedulingPlan.id}
Copy

Using getSchedulingPlan

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSchedulingPlan(args: GetSchedulingPlanArgs, opts?: InvokeOptions): Promise<GetSchedulingPlanResult>
function getSchedulingPlanOutput(args: GetSchedulingPlanOutputArgs, opts?: InvokeOptions): Output<GetSchedulingPlanResult>
Copy
def get_scheduling_plan(scheduling_plan_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSchedulingPlanResult
def get_scheduling_plan_output(scheduling_plan_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSchedulingPlanResult]
Copy
func GetSchedulingPlan(ctx *Context, args *GetSchedulingPlanArgs, opts ...InvokeOption) (*GetSchedulingPlanResult, error)
func GetSchedulingPlanOutput(ctx *Context, args *GetSchedulingPlanOutputArgs, opts ...InvokeOption) GetSchedulingPlanResultOutput
Copy

> Note: This function is named GetSchedulingPlan in the Go SDK.

public static class GetSchedulingPlan 
{
    public static Task<GetSchedulingPlanResult> InvokeAsync(GetSchedulingPlanArgs args, InvokeOptions? opts = null)
    public static Output<GetSchedulingPlanResult> Invoke(GetSchedulingPlanInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSchedulingPlanResult> getSchedulingPlan(GetSchedulingPlanArgs args, InvokeOptions options)
public static Output<GetSchedulingPlanResult> getSchedulingPlan(GetSchedulingPlanArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getSchedulingPlan:getSchedulingPlan
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SchedulingPlanId This property is required. string
The Schedule Plan OCID.
SchedulingPlanId This property is required. string
The Schedule Plan OCID.
schedulingPlanId This property is required. String
The Schedule Plan OCID.
schedulingPlanId This property is required. string
The Schedule Plan OCID.
scheduling_plan_id This property is required. str
The Schedule Plan OCID.
schedulingPlanId This property is required. String
The Schedule Plan OCID.

getSchedulingPlan Result

The following output properties are available:

CompartmentId string
The OCID of the compartment.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName string
The display name of the Scheduling Plan.
EstimatedTimeInMins int
The estimated time for the Scheduling Plan.
FreeformTags Dictionary<string, string>
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. Example: {"Department": "Finance"}
Id string
The OCID of the Scheduling Plan.
IsUsingRecommendedScheduledActions bool
If true, recommended scheduled actions will be generated for the scheduling plan.
LifecycleDetails string
Additional information about the current lifecycle state.
PlanIntent string
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
ResourceId string
The OCID of the resource.
SchedulingPlanId string
SchedulingPolicyId string
The OCID of the Scheduling Policy.
ServiceType string
The service type of the Scheduling Plan.
State string
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
TimeCreated string
The date and time the Scheduling Plan Resource was created.
TimeUpdated string
The date and time the Scheduling Plan Resource was updated.
CompartmentId string
The OCID of the compartment.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName string
The display name of the Scheduling Plan.
EstimatedTimeInMins int
The estimated time for the Scheduling Plan.
FreeformTags map[string]string
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. Example: {"Department": "Finance"}
Id string
The OCID of the Scheduling Plan.
IsUsingRecommendedScheduledActions bool
If true, recommended scheduled actions will be generated for the scheduling plan.
LifecycleDetails string
Additional information about the current lifecycle state.
PlanIntent string
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
ResourceId string
The OCID of the resource.
SchedulingPlanId string
SchedulingPolicyId string
The OCID of the Scheduling Policy.
ServiceType string
The service type of the Scheduling Plan.
State string
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
TimeCreated string
The date and time the Scheduling Plan Resource was created.
TimeUpdated string
The date and time the Scheduling Plan Resource was updated.
compartmentId String
The OCID of the compartment.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName String
The display name of the Scheduling Plan.
estimatedTimeInMins Integer
The estimated time for the Scheduling Plan.
freeformTags Map<String,String>
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. Example: {"Department": "Finance"}
id String
The OCID of the Scheduling Plan.
isUsingRecommendedScheduledActions Boolean
If true, recommended scheduled actions will be generated for the scheduling plan.
lifecycleDetails String
Additional information about the current lifecycle state.
planIntent String
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
resourceId String
The OCID of the resource.
schedulingPlanId String
schedulingPolicyId String
The OCID of the Scheduling Policy.
serviceType String
The service type of the Scheduling Plan.
state String
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
timeCreated String
The date and time the Scheduling Plan Resource was created.
timeUpdated String
The date and time the Scheduling Plan Resource was updated.
compartmentId string
The OCID of the compartment.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName string
The display name of the Scheduling Plan.
estimatedTimeInMins number
The estimated time for the Scheduling Plan.
freeformTags {[key: string]: string}
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. Example: {"Department": "Finance"}
id string
The OCID of the Scheduling Plan.
isUsingRecommendedScheduledActions boolean
If true, recommended scheduled actions will be generated for the scheduling plan.
lifecycleDetails string
Additional information about the current lifecycle state.
planIntent string
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
resourceId string
The OCID of the resource.
schedulingPlanId string
schedulingPolicyId string
The OCID of the Scheduling Policy.
serviceType string
The service type of the Scheduling Plan.
state string
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
timeCreated string
The date and time the Scheduling Plan Resource was created.
timeUpdated string
The date and time the Scheduling Plan Resource was updated.
compartment_id str
The OCID of the compartment.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
display_name str
The display name of the Scheduling Plan.
estimated_time_in_mins int
The estimated time for the Scheduling Plan.
freeform_tags Mapping[str, str]
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. Example: {"Department": "Finance"}
id str
The OCID of the Scheduling Plan.
is_using_recommended_scheduled_actions bool
If true, recommended scheduled actions will be generated for the scheduling plan.
lifecycle_details str
Additional information about the current lifecycle state.
plan_intent str
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
resource_id str
The OCID of the resource.
scheduling_plan_id str
scheduling_policy_id str
The OCID of the Scheduling Policy.
service_type str
The service type of the Scheduling Plan.
state str
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
time_created str
The date and time the Scheduling Plan Resource was created.
time_updated str
The date and time the Scheduling Plan Resource was updated.
compartmentId String
The OCID of the compartment.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName String
The display name of the Scheduling Plan.
estimatedTimeInMins Number
The estimated time for the Scheduling Plan.
freeformTags Map<String>
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. Example: {"Department": "Finance"}
id String
The OCID of the Scheduling Plan.
isUsingRecommendedScheduledActions Boolean
If true, recommended scheduled actions will be generated for the scheduling plan.
lifecycleDetails String
Additional information about the current lifecycle state.
planIntent String
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
resourceId String
The OCID of the resource.
schedulingPlanId String
schedulingPolicyId String
The OCID of the Scheduling Policy.
serviceType String
The service type of the Scheduling Plan.
state String
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
timeCreated String
The date and time the Scheduling Plan Resource was created.
timeUpdated String
The date and time the Scheduling Plan Resource was updated.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi