1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudMigrations
  5. getReplicationSchedules
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.CloudMigrations.getReplicationSchedules

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    This data source provides the list of Replication Schedules in Oracle Cloud Infrastructure Cloud Migrations service.

    Returns a list of replication schedules.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testReplicationSchedules = oci.CloudMigrations.getReplicationSchedules({
        compartmentId: compartmentId,
        displayName: replicationScheduleDisplayName,
        replicationScheduleId: testReplicationSchedule.id,
        state: replicationScheduleState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replication_schedules = oci.CloudMigrations.get_replication_schedules(compartment_id=compartment_id,
        display_name=replication_schedule_display_name,
        replication_schedule_id=test_replication_schedule["id"],
        state=replication_schedule_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudMigrations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudMigrations.GetReplicationSchedules(ctx, &cloudmigrations.GetReplicationSchedulesArgs{
    			CompartmentId:         pulumi.StringRef(compartmentId),
    			DisplayName:           pulumi.StringRef(replicationScheduleDisplayName),
    			ReplicationScheduleId: pulumi.StringRef(testReplicationSchedule.Id),
    			State:                 pulumi.StringRef(replicationScheduleState),
    		}, 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 testReplicationSchedules = Oci.CloudMigrations.GetReplicationSchedules.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = replicationScheduleDisplayName,
            ReplicationScheduleId = testReplicationSchedule.Id,
            State = replicationScheduleState,
        });
    
    });
    
    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.GetReplicationSchedulesArgs;
    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 testReplicationSchedules = CloudMigrationsFunctions.getReplicationSchedules(GetReplicationSchedulesArgs.builder()
                .compartmentId(compartmentId)
                .displayName(replicationScheduleDisplayName)
                .replicationScheduleId(testReplicationSchedule.id())
                .state(replicationScheduleState)
                .build());
    
        }
    }
    
    variables:
      testReplicationSchedules:
        fn::invoke:
          Function: oci:CloudMigrations:getReplicationSchedules
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${replicationScheduleDisplayName}
            replicationScheduleId: ${testReplicationSchedule.id}
            state: ${replicationScheduleState}
    

    Using getReplicationSchedules

    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 getReplicationSchedules(args: GetReplicationSchedulesArgs, opts?: InvokeOptions): Promise<GetReplicationSchedulesResult>
    function getReplicationSchedulesOutput(args: GetReplicationSchedulesOutputArgs, opts?: InvokeOptions): Output<GetReplicationSchedulesResult>
    def get_replication_schedules(compartment_id: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  filters: Optional[Sequence[_cloudmigrations.GetReplicationSchedulesFilter]] = None,
                                  replication_schedule_id: Optional[str] = None,
                                  state: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetReplicationSchedulesResult
    def get_replication_schedules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  display_name: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudmigrations.GetReplicationSchedulesFilterArgs]]]] = None,
                                  replication_schedule_id: Optional[pulumi.Input[str]] = None,
                                  state: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetReplicationSchedulesResult]
    func GetReplicationSchedules(ctx *Context, args *GetReplicationSchedulesArgs, opts ...InvokeOption) (*GetReplicationSchedulesResult, error)
    func GetReplicationSchedulesOutput(ctx *Context, args *GetReplicationSchedulesOutputArgs, opts ...InvokeOption) GetReplicationSchedulesResultOutput

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

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

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire given display name.
    Filters List<GetReplicationSchedulesFilter>
    ReplicationScheduleId string
    Unique replication schedule identifier in query
    State string
    The current state of the replication schedule.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire given display name.
    Filters []GetReplicationSchedulesFilter
    ReplicationScheduleId string
    Unique replication schedule identifier in query
    State string
    The current state of the replication schedule.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire given display name.
    filters List<GetReplicationSchedulesFilter>
    replicationScheduleId String
    Unique replication schedule identifier in query
    state String
    The current state of the replication schedule.
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire given display name.
    filters GetReplicationSchedulesFilter[]
    replicationScheduleId string
    Unique replication schedule identifier in query
    state string
    The current state of the replication schedule.
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire given display name.
    filters Sequence[cloudmigrations.GetReplicationSchedulesFilter]
    replication_schedule_id str
    Unique replication schedule identifier in query
    state str
    The current state of the replication schedule.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire given display name.
    filters List<Property Map>
    replicationScheduleId String
    Unique replication schedule identifier in query
    state String
    The current state of the replication schedule.

    getReplicationSchedules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ReplicationScheduleCollections List<GetReplicationSchedulesReplicationScheduleCollection>
    The list of replication_schedule_collection.
    CompartmentId string
    The OCID of the compartment in which the replication schedule exists.
    DisplayName string
    A name of the replication schedule.
    Filters List<GetReplicationSchedulesFilter>
    ReplicationScheduleId string
    State string
    Current state of the replication schedule.
    Id string
    The provider-assigned unique ID for this managed resource.
    ReplicationScheduleCollections []GetReplicationSchedulesReplicationScheduleCollection
    The list of replication_schedule_collection.
    CompartmentId string
    The OCID of the compartment in which the replication schedule exists.
    DisplayName string
    A name of the replication schedule.
    Filters []GetReplicationSchedulesFilter
    ReplicationScheduleId string
    State string
    Current state of the replication schedule.
    id String
    The provider-assigned unique ID for this managed resource.
    replicationScheduleCollections List<GetReplicationSchedulesReplicationScheduleCollection>
    The list of replication_schedule_collection.
    compartmentId String
    The OCID of the compartment in which the replication schedule exists.
    displayName String
    A name of the replication schedule.
    filters List<GetReplicationSchedulesFilter>
    replicationScheduleId String
    state String
    Current state of the replication schedule.
    id string
    The provider-assigned unique ID for this managed resource.
    replicationScheduleCollections GetReplicationSchedulesReplicationScheduleCollection[]
    The list of replication_schedule_collection.
    compartmentId string
    The OCID of the compartment in which the replication schedule exists.
    displayName string
    A name of the replication schedule.
    filters GetReplicationSchedulesFilter[]
    replicationScheduleId string
    state string
    Current state of the replication schedule.
    id str
    The provider-assigned unique ID for this managed resource.
    replication_schedule_collections Sequence[cloudmigrations.GetReplicationSchedulesReplicationScheduleCollection]
    The list of replication_schedule_collection.
    compartment_id str
    The OCID of the compartment in which the replication schedule exists.
    display_name str
    A name of the replication schedule.
    filters Sequence[cloudmigrations.GetReplicationSchedulesFilter]
    replication_schedule_id str
    state str
    Current state of the replication schedule.
    id String
    The provider-assigned unique ID for this managed resource.
    replicationScheduleCollections List<Property Map>
    The list of replication_schedule_collection.
    compartmentId String
    The OCID of the compartment in which the replication schedule exists.
    displayName String
    A name of the replication schedule.
    filters List<Property Map>
    replicationScheduleId String
    state String
    Current state of the replication schedule.

    Supporting Types

    GetReplicationSchedulesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetReplicationSchedulesReplicationScheduleCollection

    GetReplicationSchedulesReplicationScheduleCollectionItem

    CompartmentId string
    The ID of the compartment in which to list resources.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire given display name.
    ExecutionRecurrences string
    Recurrence specification for the replication schedule execution.
    FreeformTags Dictionary<string, string>
    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.
    State string
    The current state of the replication schedule.
    SystemTags Dictionary<string, string>
    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 ID of the compartment in which to list resources.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire given display name.
    ExecutionRecurrences string
    Recurrence specification for the replication schedule execution.
    FreeformTags map[string]string
    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.
    State string
    The current state of the replication schedule.
    SystemTags map[string]string
    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 ID of the compartment in which to list resources.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire given display name.
    executionRecurrences String
    Recurrence specification for the replication schedule execution.
    freeformTags Map<String,String>
    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.
    state String
    The current state of the replication schedule.
    systemTags Map<String,String>
    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 ID of the compartment in which to list resources.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A filter to return only resources that match the entire given display name.
    executionRecurrences string
    Recurrence specification for the replication schedule execution.
    freeformTags {[key: string]: string}
    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.
    state string
    The current state of the replication schedule.
    systemTags {[key: string]: string}
    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 ID of the compartment in which to list resources.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A filter to return only resources that match the entire given display name.
    execution_recurrences str
    Recurrence specification for the replication schedule execution.
    freeform_tags Mapping[str, str]
    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.
    state str
    The current state of the replication schedule.
    system_tags Mapping[str, str]
    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 ID of the compartment in which to list resources.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire given display name.
    executionRecurrences String
    Recurrence specification for the replication schedule execution.
    freeformTags Map<String>
    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.
    state String
    The current state of the replication schedule.
    systemTags Map<String>
    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 v2.18.0 published on Friday, Nov 22, 2024 by Pulumi