1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudMigrations
  5. getMigration
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.CloudMigrations.getMigration

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 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: testMigrationOciCloudMigrationsMigration.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_migration = oci.CloudMigrations.get_migration(migration_id=test_migration_oci_cloud_migrations_migration["id"])
    
    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.GetMigration(ctx, &cloudmigrations.GetMigrationArgs{
    			MigrationId: testMigrationOciCloudMigrationsMigration.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 = testMigrationOciCloudMigrationsMigration.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(testMigrationOciCloudMigrationsMigration.id())
                .build());
    
        }
    }
    
    variables:
      testMigration:
        fn::invoke:
          Function: oci:CloudMigrations:getMigration
          Arguments:
            migrationId: ${testMigrationOciCloudMigrationsMigration.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, string>
    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, 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
    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, 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 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]string
    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]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
    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]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 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,String>
    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,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
    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,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 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]: string}
    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]: 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
    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]: 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 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, str]
    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, 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
    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, 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 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<String>
    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>
    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>
    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi