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

oci.CloudMigrations.getMigration

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 Migration resource in Oracle Cloud Infrastructure Cloud Migrations service.

    Gets a migration by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMigration = oci.CloudMigrations.getMigration({
        migrationId: oci_cloud_migrations_migration.test_migration.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_migration = oci.CloudMigrations.get_migration(migration_id=oci_cloud_migrations_migration["test_migration"]["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.GetMigration(ctx, &cloudmigrations.GetMigrationArgs{
    			MigrationId: oci_cloud_migrations_migration.Test_migration.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 testMigration = Oci.CloudMigrations.GetMigration.Invoke(new()
        {
            MigrationId = oci_cloud_migrations_migration.Test_migration.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.GetMigrationArgs;
    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 testMigration = CloudMigrationsFunctions.getMigration(GetMigrationArgs.builder()
                .migrationId(oci_cloud_migrations_migration.test_migration().id())
                .build());
    
        }
    }
    
    variables:
      testMigration:
        fn::invoke:
          Function: oci:CloudMigrations:getMigration
          Arguments:
            migrationId: ${oci_cloud_migrations_migration.test_migration.id}
    

    Using getMigration

    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 getMigration(args: GetMigrationArgs, opts?: InvokeOptions): Promise<GetMigrationResult>
    function getMigrationOutput(args: GetMigrationOutputArgs, opts?: InvokeOptions): Output<GetMigrationResult>
    def get_migration(migration_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetMigrationResult
    def get_migration_output(migration_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetMigrationResult]
    func GetMigration(ctx *Context, args *GetMigrationArgs, opts ...InvokeOption) (*GetMigrationResult, error)
    func GetMigrationOutput(ctx *Context, args *GetMigrationOutputArgs, opts ...InvokeOption) GetMigrationResultOutput

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

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

    The following arguments are supported:

    MigrationId string
    Unique migration identifier
    MigrationId string
    Unique migration identifier
    migrationId String
    Unique migration identifier
    migrationId string
    Unique migration identifier
    migration_id str
    Unique migration identifier
    migrationId String
    Unique migration identifier

    getMigration Result

    The following output properties are available:

    CompartmentId string
    Compartment Identifier
    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
    Migration Identifier that can be renamed
    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
    Unique identifier that is immutable on creation
    IsCompleted bool
    Indicates whether migration is marked as completed.
    LifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    MigrationId string
    ReplicationScheduleId string
    Replication schedule identifier
    State string
    The current state of migration.
    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 migration project was created. An RFC3339 formatted datetime string
    TimeUpdated string
    The time when the migration project was updated. An RFC3339 formatted datetime string
    CompartmentId string
    Compartment Identifier
    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
    Migration Identifier that can be renamed
    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
    Unique identifier that is immutable on creation
    IsCompleted bool
    Indicates whether migration is marked as completed.
    LifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    MigrationId string
    ReplicationScheduleId string
    Replication schedule identifier
    State string
    The current state of migration.
    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 migration project was created. An RFC3339 formatted datetime string
    TimeUpdated string
    The time when the migration project was updated. An RFC3339 formatted datetime string
    compartmentId String
    Compartment Identifier
    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
    Migration Identifier that can be renamed
    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
    Unique identifier that is immutable on creation
    isCompleted Boolean
    Indicates whether migration is marked as completed.
    lifecycleDetails String
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    migrationId String
    replicationScheduleId String
    Replication schedule identifier
    state String
    The current state of migration.
    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 migration project was created. An RFC3339 formatted datetime string
    timeUpdated String
    The time when the migration project was updated. An RFC3339 formatted datetime string
    compartmentId string
    Compartment Identifier
    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
    Migration Identifier that can be renamed
    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
    Unique identifier that is immutable on creation
    isCompleted boolean
    Indicates whether migration is marked as completed.
    lifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    migrationId string
    replicationScheduleId string
    Replication schedule identifier
    state string
    The current state of migration.
    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 migration project was created. An RFC3339 formatted datetime string
    timeUpdated string
    The time when the migration project was updated. An RFC3339 formatted datetime string
    compartment_id str
    Compartment Identifier
    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
    Migration Identifier that can be renamed
    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
    Unique identifier that is immutable on creation
    is_completed bool
    Indicates whether migration is marked as completed.
    lifecycle_details str
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    migration_id str
    replication_schedule_id str
    Replication schedule identifier
    state str
    The current state of migration.
    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 migration project was created. An RFC3339 formatted datetime string
    time_updated str
    The time when the migration project was updated. An RFC3339 formatted datetime string
    compartmentId String
    Compartment Identifier
    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
    Migration Identifier that can be renamed
    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
    Unique identifier that is immutable on creation
    isCompleted Boolean
    Indicates whether migration is marked as completed.
    lifecycleDetails String
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    migrationId String
    replicationScheduleId String
    Replication schedule identifier
    state String
    The current state of migration.
    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 migration project was created. An RFC3339 formatted datetime string
    timeUpdated String
    The time when the migration project was updated. An RFC3339 formatted datetime string

    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