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

oci.CloudMigrations.getMigrationAsset

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

    Gets a migration asset by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMigrationAsset = oci.CloudMigrations.getMigrationAsset({
        migrationAssetId: testMigrationAssetOciCloudMigrationsMigrationAsset.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_migration_asset = oci.CloudMigrations.get_migration_asset(migration_asset_id=test_migration_asset_oci_cloud_migrations_migration_asset["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.GetMigrationAsset(ctx, &cloudmigrations.GetMigrationAssetArgs{
    			MigrationAssetId: testMigrationAssetOciCloudMigrationsMigrationAsset.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 testMigrationAsset = Oci.CloudMigrations.GetMigrationAsset.Invoke(new()
        {
            MigrationAssetId = testMigrationAssetOciCloudMigrationsMigrationAsset.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.GetMigrationAssetArgs;
    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 testMigrationAsset = CloudMigrationsFunctions.getMigrationAsset(GetMigrationAssetArgs.builder()
                .migrationAssetId(testMigrationAssetOciCloudMigrationsMigrationAsset.id())
                .build());
    
        }
    }
    
    variables:
      testMigrationAsset:
        fn::invoke:
          Function: oci:CloudMigrations:getMigrationAsset
          Arguments:
            migrationAssetId: ${testMigrationAssetOciCloudMigrationsMigrationAsset.id}
    

    Using getMigrationAsset

    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 getMigrationAsset(args: GetMigrationAssetArgs, opts?: InvokeOptions): Promise<GetMigrationAssetResult>
    function getMigrationAssetOutput(args: GetMigrationAssetOutputArgs, opts?: InvokeOptions): Output<GetMigrationAssetResult>
    def get_migration_asset(migration_asset_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetMigrationAssetResult
    def get_migration_asset_output(migration_asset_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetMigrationAssetResult]
    func GetMigrationAsset(ctx *Context, args *GetMigrationAssetArgs, opts ...InvokeOption) (*GetMigrationAssetResult, error)
    func GetMigrationAssetOutput(ctx *Context, args *GetMigrationAssetOutputArgs, opts ...InvokeOption) GetMigrationAssetResultOutput

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

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

    The following arguments are supported:

    MigrationAssetId string
    Unique migration asset identifier
    MigrationAssetId string
    Unique migration asset identifier
    migrationAssetId String
    Unique migration asset identifier
    migrationAssetId string
    Unique migration asset identifier
    migration_asset_id str
    Unique migration asset identifier
    migrationAssetId String
    Unique migration asset identifier

    getMigrationAsset Result

    The following output properties are available:

    AvailabilityDomain string
    Availability domain
    CompartmentId string
    Compartment Identifier
    DependedOnBies List<string>
    List of migration assets that depend on the asset.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Id string
    Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
    InventoryAssetId string
    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.
    MigrationAssetDependsOns List<string>
    MigrationAssetId string
    MigrationId string
    OCID of the associated migration.
    Notifications List<string>
    List of notifications
    ParentSnapshot string
    The parent snapshot of the migration asset to be used by the replication task.
    ReplicationCompartmentId string
    Replication compartment identifier
    ReplicationScheduleId string
    Replication schedule identifier
    SnapShotBucketName string
    Name of snapshot bucket
    Snapshots Dictionary<string, string>
    Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {"bar-key": "value"}
    SourceAssetId string
    OCID that is referenced to an asset for an inventory.
    State string
    The current state of the migration asset.
    TenancyId string
    Tenancy identifier
    TimeCreated string
    The time when the migration asset was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the migration asset was updated. An RFC3339 formatted datetime string.
    Type string
    The type of asset referenced for inventory.
    AvailabilityDomain string
    Availability domain
    CompartmentId string
    Compartment Identifier
    DependedOnBies []string
    List of migration assets that depend on the asset.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Id string
    Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
    InventoryAssetId string
    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.
    MigrationAssetDependsOns []string
    MigrationAssetId string
    MigrationId string
    OCID of the associated migration.
    Notifications []string
    List of notifications
    ParentSnapshot string
    The parent snapshot of the migration asset to be used by the replication task.
    ReplicationCompartmentId string
    Replication compartment identifier
    ReplicationScheduleId string
    Replication schedule identifier
    SnapShotBucketName string
    Name of snapshot bucket
    Snapshots map[string]string
    Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {"bar-key": "value"}
    SourceAssetId string
    OCID that is referenced to an asset for an inventory.
    State string
    The current state of the migration asset.
    TenancyId string
    Tenancy identifier
    TimeCreated string
    The time when the migration asset was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the migration asset was updated. An RFC3339 formatted datetime string.
    Type string
    The type of asset referenced for inventory.
    availabilityDomain String
    Availability domain
    compartmentId String
    Compartment Identifier
    dependedOnBies List<String>
    List of migration assets that depend on the asset.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    id String
    Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
    inventoryAssetId String
    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.
    migrationAssetDependsOns List<String>
    migrationAssetId String
    migrationId String
    OCID of the associated migration.
    notifications List<String>
    List of notifications
    parentSnapshot String
    The parent snapshot of the migration asset to be used by the replication task.
    replicationCompartmentId String
    Replication compartment identifier
    replicationScheduleId String
    Replication schedule identifier
    snapShotBucketName String
    Name of snapshot bucket
    snapshots Map<String,String>
    Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {"bar-key": "value"}
    sourceAssetId String
    OCID that is referenced to an asset for an inventory.
    state String
    The current state of the migration asset.
    tenancyId String
    Tenancy identifier
    timeCreated String
    The time when the migration asset was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the migration asset was updated. An RFC3339 formatted datetime string.
    type String
    The type of asset referenced for inventory.
    availabilityDomain string
    Availability domain
    compartmentId string
    Compartment Identifier
    dependedOnBies string[]
    List of migration assets that depend on the asset.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    id string
    Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
    inventoryAssetId string
    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.
    migrationAssetDependsOns string[]
    migrationAssetId string
    migrationId string
    OCID of the associated migration.
    notifications string[]
    List of notifications
    parentSnapshot string
    The parent snapshot of the migration asset to be used by the replication task.
    replicationCompartmentId string
    Replication compartment identifier
    replicationScheduleId string
    Replication schedule identifier
    snapShotBucketName string
    Name of snapshot bucket
    snapshots {[key: string]: string}
    Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {"bar-key": "value"}
    sourceAssetId string
    OCID that is referenced to an asset for an inventory.
    state string
    The current state of the migration asset.
    tenancyId string
    Tenancy identifier
    timeCreated string
    The time when the migration asset was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time when the migration asset was updated. An RFC3339 formatted datetime string.
    type string
    The type of asset referenced for inventory.
    availability_domain str
    Availability domain
    compartment_id str
    Compartment Identifier
    depended_on_bies Sequence[str]
    List of migration assets that depend on the asset.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    id str
    Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
    inventory_asset_id str
    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_asset_depends_ons Sequence[str]
    migration_asset_id str
    migration_id str
    OCID of the associated migration.
    notifications Sequence[str]
    List of notifications
    parent_snapshot str
    The parent snapshot of the migration asset to be used by the replication task.
    replication_compartment_id str
    Replication compartment identifier
    replication_schedule_id str
    Replication schedule identifier
    snap_shot_bucket_name str
    Name of snapshot bucket
    snapshots Mapping[str, str]
    Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {"bar-key": "value"}
    source_asset_id str
    OCID that is referenced to an asset for an inventory.
    state str
    The current state of the migration asset.
    tenancy_id str
    Tenancy identifier
    time_created str
    The time when the migration asset was created. An RFC3339 formatted datetime string.
    time_updated str
    The time when the migration asset was updated. An RFC3339 formatted datetime string.
    type str
    The type of asset referenced for inventory.
    availabilityDomain String
    Availability domain
    compartmentId String
    Compartment Identifier
    dependedOnBies List<String>
    List of migration assets that depend on the asset.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    id String
    Asset ID generated by mirgration service. It is used in the mirgration service pipeline.
    inventoryAssetId String
    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.
    migrationAssetDependsOns List<String>
    migrationAssetId String
    migrationId String
    OCID of the associated migration.
    notifications List<String>
    List of notifications
    parentSnapshot String
    The parent snapshot of the migration asset to be used by the replication task.
    replicationCompartmentId String
    Replication compartment identifier
    replicationScheduleId String
    Replication schedule identifier
    snapShotBucketName String
    Name of snapshot bucket
    snapshots Map<String>
    Key-value pair representing disks ID mapped to the OCIDs of replicated or hydration server volume snapshots. Example: {"bar-key": "value"}
    sourceAssetId String
    OCID that is referenced to an asset for an inventory.
    state String
    The current state of the migration asset.
    tenancyId String
    Tenancy identifier
    timeCreated String
    The time when the migration asset was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the migration asset was updated. An RFC3339 formatted datetime string.
    type String
    The type of asset referenced for inventory.

    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