Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.CloudMigrations.getMigration
Explore with Pulumi AI
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 LookupMigration(ctx *Context, args *LookupMigrationArgs, opts ...InvokeOption) (*LookupMigrationResult, error)
func LookupMigrationOutput(ctx *Context, args *LookupMigrationOutputArgs, opts ...InvokeOption) LookupMigrationResultOutput> Note: This function is named LookupMigration 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)
public static Output<GetMigrationResult> getMigration(GetMigrationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CloudMigrations/getMigration:getMigration
  arguments:
    # arguments dictionaryThe 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
- 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
- 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
- ReplicationSchedule stringId 
- Replication schedule identifier
- State string
- The current state of migration.
- 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
- 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
- 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
- ReplicationSchedule stringId 
- Replication schedule identifier
- State string
- The current state of migration.
- 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
- 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
- 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
- replicationSchedule StringId 
- Replication schedule identifier
- state String
- The current state of migration.
- 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
- {[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
- {[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
- replicationSchedule stringId 
- Replication schedule identifier
- state string
- The current state of migration.
- {[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
- 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
- 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_ strid 
- Replication schedule identifier
- state str
- The current state of migration.
- 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
- 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
- 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
- replicationSchedule StringId 
- Replication schedule identifier
- state String
- The current state of migration.
- 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 ociTerraform Provider.