Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.CloudMigrations.getMigration
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Migration
Id string - Unique migration identifier
- Migration
Id string - Unique migration identifier
- migration
Id String - Unique migration identifier
- migration
Id string - Unique migration identifier
- migration_
id str - Unique migration identifier
- migration
Id String - Unique migration identifier
getMigration Result
The following output properties are available:
- Compartment
Id string - Compartment Identifier
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Migration Identifier that can be renamed
- 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
- Is
Completed bool - Indicates whether migration is marked as completed.
- Lifecycle
Details 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.
- Migration
Id string - Replication
Schedule stringId - Replication schedule identifier
- State string
- The current state of migration.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the migration project was created. An RFC3339 formatted datetime string
- Time
Updated string - The time when the migration project was updated. An RFC3339 formatted datetime string
- Compartment
Id string - Compartment Identifier
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Migration Identifier that can be renamed
- 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
- Is
Completed bool - Indicates whether migration is marked as completed.
- Lifecycle
Details 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.
- Migration
Id string - Replication
Schedule stringId - Replication schedule identifier
- State string
- The current state of migration.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the migration project was created. An RFC3339 formatted datetime string
- Time
Updated string - The time when the migration project was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Migration Identifier that can be renamed
- 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
- is
Completed Boolean - Indicates whether migration is marked as completed.
- lifecycle
Details 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.
- migration
Id String - replication
Schedule StringId - Replication schedule identifier
- state String
- The current state of migration.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the migration project was created. An RFC3339 formatted datetime string
- time
Updated String - The time when the migration project was updated. An RFC3339 formatted datetime string
- compartment
Id string - Compartment Identifier
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - Migration Identifier that can be renamed
- {[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
- is
Completed boolean - Indicates whether migration is marked as completed.
- lifecycle
Details 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.
- migration
Id string - replication
Schedule stringId - Replication schedule identifier
- state string
- The current state of migration.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when the migration project was created. An RFC3339 formatted datetime string
- time
Updated string - The time when the migration project was updated. An RFC3339 formatted datetime string
- compartment_
id str - Compartment Identifier
- 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
- 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_ strid - Replication schedule identifier
- state str
- The current state of migration.
- 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
- compartment
Id String - Compartment Identifier
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Migration Identifier that can be renamed
- 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
- is
Completed Boolean - Indicates whether migration is marked as completed.
- lifecycle
Details 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.
- migration
Id String - replication
Schedule StringId - Replication schedule identifier
- state String
- The current state of migration.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the migration project was created. An RFC3339 formatted datetime string
- time
Updated 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi