1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudMigrations
  5. getReplicationSchedule
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.CloudMigrations.getReplicationSchedule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Replication Schedule resource in Oracle Cloud Infrastructure Cloud Migrations service.

    Gets a replication schedule by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testReplicationSchedule = oci.CloudMigrations.getReplicationSchedule({
        replicationScheduleId: oci_cloud_migrations_replication_schedule.test_replication_schedule.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replication_schedule = oci.CloudMigrations.get_replication_schedule(replication_schedule_id=oci_cloud_migrations_replication_schedule["test_replication_schedule"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudMigrations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudMigrations.GetReplicationSchedule(ctx, &cloudmigrations.GetReplicationScheduleArgs{
    			ReplicationScheduleId: oci_cloud_migrations_replication_schedule.Test_replication_schedule.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 testReplicationSchedule = Oci.CloudMigrations.GetReplicationSchedule.Invoke(new()
        {
            ReplicationScheduleId = oci_cloud_migrations_replication_schedule.Test_replication_schedule.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudMigrations.CloudMigrationsFunctions;
    import com.pulumi.oci.CloudMigrations.inputs.GetReplicationScheduleArgs;
    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 testReplicationSchedule = CloudMigrationsFunctions.getReplicationSchedule(GetReplicationScheduleArgs.builder()
                .replicationScheduleId(oci_cloud_migrations_replication_schedule.test_replication_schedule().id())
                .build());
    
        }
    }
    
    variables:
      testReplicationSchedule:
        fn::invoke:
          Function: oci:CloudMigrations:getReplicationSchedule
          Arguments:
            replicationScheduleId: ${oci_cloud_migrations_replication_schedule.test_replication_schedule.id}
    

    Using getReplicationSchedule

    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 getReplicationSchedule(args: GetReplicationScheduleArgs, opts?: InvokeOptions): Promise<GetReplicationScheduleResult>
    function getReplicationScheduleOutput(args: GetReplicationScheduleOutputArgs, opts?: InvokeOptions): Output<GetReplicationScheduleResult>
    def get_replication_schedule(replication_schedule_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetReplicationScheduleResult
    def get_replication_schedule_output(replication_schedule_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetReplicationScheduleResult]
    func GetReplicationSchedule(ctx *Context, args *GetReplicationScheduleArgs, opts ...InvokeOption) (*GetReplicationScheduleResult, error)
    func GetReplicationScheduleOutput(ctx *Context, args *GetReplicationScheduleOutputArgs, opts ...InvokeOption) GetReplicationScheduleResultOutput

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

    public static class GetReplicationSchedule 
    {
        public static Task<GetReplicationScheduleResult> InvokeAsync(GetReplicationScheduleArgs args, InvokeOptions? opts = null)
        public static Output<GetReplicationScheduleResult> Invoke(GetReplicationScheduleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReplicationScheduleResult> getReplicationSchedule(GetReplicationScheduleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudMigrations/getReplicationSchedule:getReplicationSchedule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ReplicationScheduleId string
    Unique replication schedule identifier in path
    ReplicationScheduleId string
    Unique replication schedule identifier in path
    replicationScheduleId String
    Unique replication schedule identifier in path
    replicationScheduleId string
    Unique replication schedule identifier in path
    replication_schedule_id str
    Unique replication schedule identifier in path
    replicationScheduleId String
    Unique replication schedule identifier in path

    getReplicationSchedule Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment in which the replication schedule exists.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A name of the replication schedule.
    ExecutionRecurrences string
    Recurrence specification for the replication schedule execution.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"}
    Id string
    The OCID of the replication schedule.
    LifecycleDetails string
    The detailed state of the replication schedule.
    ReplicationScheduleId string
    State string
    Current state of the replication schedule.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the replication schedule was created in RFC3339 format.
    TimeUpdated string
    The time when the replication schedule was last updated in RFC3339 format.
    CompartmentId string
    The OCID of the compartment in which the replication schedule exists.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A name of the replication schedule.
    ExecutionRecurrences string
    Recurrence specification for the replication schedule execution.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"}
    Id string
    The OCID of the replication schedule.
    LifecycleDetails string
    The detailed state of the replication schedule.
    ReplicationScheduleId string
    State string
    Current state of the replication schedule.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the replication schedule was created in RFC3339 format.
    TimeUpdated string
    The time when the replication schedule was last updated in RFC3339 format.
    compartmentId String
    The OCID of the compartment in which the replication schedule exists.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A name of the replication schedule.
    executionRecurrences String
    Recurrence specification for the replication schedule execution.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"}
    id String
    The OCID of the replication schedule.
    lifecycleDetails String
    The detailed state of the replication schedule.
    replicationScheduleId String
    state String
    Current state of the replication schedule.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the replication schedule was created in RFC3339 format.
    timeUpdated String
    The time when the replication schedule was last updated in RFC3339 format.
    compartmentId string
    The OCID of the compartment in which the replication schedule exists.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A name of the replication schedule.
    executionRecurrences string
    Recurrence specification for the replication schedule execution.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"}
    id string
    The OCID of the replication schedule.
    lifecycleDetails string
    The detailed state of the replication schedule.
    replicationScheduleId string
    state string
    Current state of the replication schedule.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the replication schedule was created in RFC3339 format.
    timeUpdated string
    The time when the replication schedule was last updated in RFC3339 format.
    compartment_id str
    The OCID of the compartment in which the replication schedule exists.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A name of the replication schedule.
    execution_recurrences str
    Recurrence specification for the replication schedule execution.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"}
    id str
    The OCID of the replication schedule.
    lifecycle_details str
    The detailed state of the replication schedule.
    replication_schedule_id str
    state str
    Current state of the replication schedule.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time when the replication schedule was created in RFC3339 format.
    time_updated str
    The time when the replication schedule was last updated in RFC3339 format.
    compartmentId String
    The OCID of the compartment in which the replication schedule exists.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A name of the replication schedule.
    executionRecurrences String
    Recurrence specification for the replication schedule execution.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {"bar-key": "value"}
    id String
    The OCID of the replication schedule.
    lifecycleDetails String
    The detailed state of the replication schedule.
    replicationScheduleId String
    state String
    Current state of the replication schedule.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the replication schedule was created in RFC3339 format.
    timeUpdated String
    The time when the replication schedule was last updated in RFC3339 format.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi