Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Scheduling Policy resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified Scheduling Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSchedulingPolicy = oci.Database.getSchedulingPolicy({
schedulingPolicyId: testSchedulingPolicyOciDatabaseSchedulingPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_scheduling_policy = oci.Database.get_scheduling_policy(scheduling_policy_id=test_scheduling_policy_oci_database_scheduling_policy["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := database.GetSchedulingPolicy(ctx, &database.GetSchedulingPolicyArgs{
SchedulingPolicyId: testSchedulingPolicyOciDatabaseSchedulingPolicy.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 testSchedulingPolicy = Oci.Database.GetSchedulingPolicy.Invoke(new()
{
SchedulingPolicyId = testSchedulingPolicyOciDatabaseSchedulingPolicy.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.GetSchedulingPolicyArgs;
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 testSchedulingPolicy = DatabaseFunctions.getSchedulingPolicy(GetSchedulingPolicyArgs.builder()
.schedulingPolicyId(testSchedulingPolicyOciDatabaseSchedulingPolicy.id())
.build());
}
}
variables:
testSchedulingPolicy:
fn::invoke:
function: oci:Database:getSchedulingPolicy
arguments:
schedulingPolicyId: ${testSchedulingPolicyOciDatabaseSchedulingPolicy.id}
Using getSchedulingPolicy
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 getSchedulingPolicy(args: GetSchedulingPolicyArgs, opts?: InvokeOptions): Promise<GetSchedulingPolicyResult>
function getSchedulingPolicyOutput(args: GetSchedulingPolicyOutputArgs, opts?: InvokeOptions): Output<GetSchedulingPolicyResult>def get_scheduling_policy(scheduling_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchedulingPolicyResult
def get_scheduling_policy_output(scheduling_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchedulingPolicyResult]func LookupSchedulingPolicy(ctx *Context, args *LookupSchedulingPolicyArgs, opts ...InvokeOption) (*LookupSchedulingPolicyResult, error)
func LookupSchedulingPolicyOutput(ctx *Context, args *LookupSchedulingPolicyOutputArgs, opts ...InvokeOption) LookupSchedulingPolicyResultOutput> Note: This function is named LookupSchedulingPolicy in the Go SDK.
public static class GetSchedulingPolicy
{
public static Task<GetSchedulingPolicyResult> InvokeAsync(GetSchedulingPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetSchedulingPolicyResult> Invoke(GetSchedulingPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchedulingPolicyResult> getSchedulingPolicy(GetSchedulingPolicyArgs args, InvokeOptions options)
public static Output<GetSchedulingPolicyResult> getSchedulingPolicy(GetSchedulingPolicyArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getSchedulingPolicy:getSchedulingPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Scheduling
Policy stringId - The Scheduling Policy OCID.
- Scheduling
Policy stringId - The Scheduling Policy OCID.
- scheduling
Policy StringId - The Scheduling Policy OCID.
- scheduling
Policy stringId - The Scheduling Policy OCID.
- scheduling_
policy_ strid - The Scheduling Policy OCID.
- scheduling
Policy StringId - The Scheduling Policy OCID.
getSchedulingPolicy Result
The following output properties are available:
- Cadence string
- The cadence period.
- Cadence
Start List<GetMonths Scheduling Policy Cadence Start Month> - Start of the month to be followed during the cadence period.
- 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 user-friendly name for the Scheduling Policy. The name does not need to be unique.
- 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 Policy.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Scheduling
Policy stringId - State string
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- Time
Created string - The date and time the Scheduling Policy was created.
- Time
Next stringWindow Starts - The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
- Time
Updated string - The last date and time that the Scheduling Policy was updated.
- Cadence string
- The cadence period.
- Cadence
Start []GetMonths Scheduling Policy Cadence Start Month - Start of the month to be followed during the cadence period.
- 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 user-friendly name for the Scheduling Policy. The name does not need to be unique.
- 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 Policy.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Scheduling
Policy stringId - State string
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- Time
Created string - The date and time the Scheduling Policy was created.
- Time
Next stringWindow Starts - The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
- Time
Updated string - The last date and time that the Scheduling Policy was updated.
- cadence String
- The cadence period.
- cadence
Start List<GetMonths Scheduling Policy Cadence Start Month> - Start of the month to be followed during the cadence period.
- 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 user-friendly name for the Scheduling Policy. The name does not need to be unique.
- 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 Policy.
- lifecycle
Details String - Additional information about the current lifecycle state.
- scheduling
Policy StringId - state String
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- time
Created String - The date and time the Scheduling Policy was created.
- time
Next StringWindow Starts - The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
- time
Updated String - The last date and time that the Scheduling Policy was updated.
- cadence string
- The cadence period.
- cadence
Start GetMonths Scheduling Policy Cadence Start Month[] - Start of the month to be followed during the cadence period.
- 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 user-friendly name for the Scheduling Policy. The name does not need to be unique.
- {[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 Policy.
- lifecycle
Details string - Additional information about the current lifecycle state.
- scheduling
Policy stringId - state string
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- time
Created string - The date and time the Scheduling Policy was created.
- time
Next stringWindow Starts - The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
- time
Updated string - The last date and time that the Scheduling Policy was updated.
- cadence str
- The cadence period.
- cadence_
start_ Sequence[Getmonths Scheduling Policy Cadence Start Month] - Start of the month to be followed during the cadence period.
- 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 user-friendly name for the Scheduling Policy. The name does not need to be unique.
- 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 Policy.
- lifecycle_
details str - Additional information about the current lifecycle state.
- scheduling_
policy_ strid - state str
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- time_
created str - The date and time the Scheduling Policy was created.
- time_
next_ strwindow_ starts - The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
- time_
updated str - The last date and time that the Scheduling Policy was updated.
- cadence String
- The cadence period.
- cadence
Start List<Property Map>Months - Start of the month to be followed during the cadence period.
- 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 user-friendly name for the Scheduling Policy. The name does not need to be unique.
- 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 Policy.
- lifecycle
Details String - Additional information about the current lifecycle state.
- scheduling
Policy StringId - state String
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- time
Created String - The date and time the Scheduling Policy was created.
- time
Next StringWindow Starts - The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
- time
Updated String - The last date and time that the Scheduling Policy was updated.
Supporting Types
GetSchedulingPolicyCadenceStartMonth
- Name string
- Name of the month of the year.
- Name string
- Name of the month of the year.
- name String
- Name of the month of the year.
- name string
- Name of the month of the year.
- name str
- Name of the month of the year.
- name String
- Name of the month of the year.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
