Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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 LookupSchedulingPlan(ctx *Context, args *LookupSchedulingPlanArgs, opts ...InvokeOption) (*LookupSchedulingPlanResult, error)
func LookupSchedulingPlanOutput(ctx *Context, args *LookupSchedulingPlanOutputArgs, opts ...InvokeOption) LookupSchedulingPlanResultOutput> Note: This function is named LookupSchedulingPlan 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:
- SchedulingPlan stringId 
- The Schedule Plan OCID.
- SchedulingPlan stringId 
- The Schedule Plan OCID.
- schedulingPlan StringId 
- The Schedule Plan OCID.
- schedulingPlan stringId 
- The Schedule Plan OCID.
- scheduling_plan_ strid 
- The Schedule Plan OCID.
- schedulingPlan StringId 
- The Schedule Plan OCID.
getSchedulingPlan Result
The following output properties are available:
- CompartmentId 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.
- DisplayName string
- The display name of the Scheduling Plan.
- EstimatedTime 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.
- IsUsing boolRecommended Scheduled Actions 
- 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.
- SchedulingPlan stringId 
- SchedulingPolicy stringId 
- 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.
- 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.
- 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.
- EstimatedTime 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.
- IsUsing boolRecommended Scheduled Actions 
- 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.
- SchedulingPlan stringId 
- SchedulingPolicy stringId 
- 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.
- 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.
- 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.
- estimatedTime 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.
- isUsing BooleanRecommended Scheduled Actions 
- 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.
- schedulingPlan StringId 
- schedulingPolicy StringId 
- 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.
- 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.
- {[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.
- estimatedTime 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.
- isUsing booleanRecommended Scheduled Actions 
- 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.
- schedulingPlan stringId 
- schedulingPolicy stringId 
- 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.
- {[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.
- 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.
- compartmentId 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.
- displayName String
- The display name of the Scheduling Plan.
- estimatedTime 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.
- isUsing BooleanRecommended Scheduled Actions 
- 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.
- schedulingPlan StringId 
- schedulingPolicy StringId 
- 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.
- 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 ociTerraform Provider.