Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Database.getSchedulingPlan
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testSchedulingPlan:
    fn::invoke:
      function: oci:Database:getSchedulingPlan
      arguments:
        schedulingPlanId: ${testSchedulingPlanOciDatabaseSchedulingPlan.id}
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>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]func GetSchedulingPlan(ctx *Context, args *GetSchedulingPlanArgs, opts ...InvokeOption) (*GetSchedulingPlanResult, error)
func GetSchedulingPlanOutput(ctx *Context, args *GetSchedulingPlanOutputArgs, opts ...InvokeOption) GetSchedulingPlanResultOutput> 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)
}public static CompletableFuture<GetSchedulingPlanResult> getSchedulingPlan(GetSchedulingPlanArgs args, InvokeOptions options)
public static Output<GetSchedulingPlanResult> getSchedulingPlan(GetSchedulingPlanArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getSchedulingPlan:getSchedulingPlan
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Scheduling
Plan stringId  - The Schedule Plan OCID.
 
- Scheduling
Plan stringId  - The Schedule Plan OCID.
 
- scheduling
Plan StringId  - The Schedule Plan OCID.
 
- scheduling
Plan stringId  - The Schedule Plan OCID.
 
- scheduling_
plan_ strid  - The Schedule Plan OCID.
 
- scheduling
Plan StringId  - The Schedule Plan OCID.
 
getSchedulingPlan Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Display
Name string - The display name of the Scheduling Plan.
 - Estimated
Time intIn Mins  - The estimated time for the Scheduling Plan.
 - 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.
 - Is
Using boolRecommended Scheduled Actions  - If true, recommended scheduled actions will be generated for the scheduling plan.
 - Lifecycle
Details string - Additional information about the current lifecycle state.
 - Plan
Intent string - The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
 - Resource
Id string - The OCID of the resource.
 - Scheduling
Plan stringId  - Scheduling
Policy stringId  - The OCID of the Scheduling Policy.
 - Service
Type 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.
 - Dictionary<string, string>
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Time
Created string - The date and time the Scheduling Plan Resource was created.
 - Time
Updated string - The date and time the Scheduling Plan Resource was updated.
 
- Compartment
Id string - The OCID of the compartment.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Display
Name string - The display name of the Scheduling Plan.
 - Estimated
Time intIn Mins  - The estimated time for the Scheduling Plan.
 - 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.
 - Is
Using boolRecommended Scheduled Actions  - If true, recommended scheduled actions will be generated for the scheduling plan.
 - Lifecycle
Details string - Additional information about the current lifecycle state.
 - Plan
Intent string - The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
 - Resource
Id string - The OCID of the resource.
 - Scheduling
Plan stringId  - Scheduling
Policy stringId  - The OCID of the Scheduling Policy.
 - Service
Type 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.
 - map[string]string
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Time
Created string - The date and time the Scheduling Plan Resource was created.
 - Time
Updated string - The date and time the Scheduling Plan Resource was updated.
 
- compartment
Id String - The OCID of the compartment.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - display
Name String - The display name of the Scheduling Plan.
 - estimated
Time IntegerIn Mins  - The estimated time for the Scheduling Plan.
 - 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.
 - is
Using BooleanRecommended Scheduled Actions  - If true, recommended scheduled actions will be generated for the scheduling plan.
 - lifecycle
Details String - Additional information about the current lifecycle state.
 - plan
Intent String - The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
 - resource
Id String - The OCID of the resource.
 - scheduling
Plan StringId  - scheduling
Policy StringId  - The OCID of the Scheduling Policy.
 - service
Type 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.
 - Map<String,String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - time
Created String - The date and time the Scheduling Plan Resource was created.
 - time
Updated String - The date and time the Scheduling Plan Resource was updated.
 
- compartment
Id string - The OCID of the compartment.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - display
Name string - The display name of the Scheduling Plan.
 - estimated
Time numberIn Mins  - The estimated time for the Scheduling Plan.
 - {[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.
 - is
Using booleanRecommended Scheduled Actions  - If true, recommended scheduled actions will be generated for the scheduling plan.
 - lifecycle
Details string - Additional information about the current lifecycle state.
 - plan
Intent string - The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
 - resource
Id string - The OCID of the resource.
 - scheduling
Plan stringId  - scheduling
Policy stringId  - The OCID of the Scheduling Policy.
 - service
Type 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.
 - {[key: string]: string}
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - time
Created string - The date and time the Scheduling Plan Resource was created.
 - time
Updated string - The date and time the Scheduling Plan Resource was updated.
 
- compartment_
id str - The OCID of the compartment.
 - 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_ intin_ mins  - The estimated time for the Scheduling Plan.
 - 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_ boolrecommended_ scheduled_ actions  - 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_ strid  - scheduling_
policy_ strid  - 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.
 - 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.
 
- compartment
Id String - The OCID of the compartment.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - display
Name String - The display name of the Scheduling Plan.
 - estimated
Time NumberIn Mins  - The estimated time for the Scheduling Plan.
 - 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.
 - is
Using BooleanRecommended Scheduled Actions  - If true, recommended scheduled actions will be generated for the scheduling plan.
 - lifecycle
Details String - Additional information about the current lifecycle state.
 - plan
Intent String - The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
 - resource
Id String - The OCID of the resource.
 - scheduling
Plan StringId  - scheduling
Policy StringId  - The OCID of the Scheduling Policy.
 - service
Type 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.
 - Map<String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - time
Created String - The date and time the Scheduling Plan Resource was created.
 - time
Updated 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 
ociTerraform Provider.