1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudMigrations
  5. getMigrationPlanAvailableShapes
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.CloudMigrations.getMigrationPlanAvailableShapes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    This data source provides the list of Migration Plan Available Shapes in Oracle Cloud Infrastructure Cloud Migrations service.

    List of shapes by parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMigrationPlanAvailableShapes = oci.CloudMigrations.getMigrationPlanAvailableShapes({
        migrationPlanId: testMigrationPlan.id,
        availabilityDomain: migrationPlanAvailableShapeAvailabilityDomain,
        compartmentId: compartmentId,
        dvhHostId: testDvhHost.id,
        reservedCapacityId: testReservedCapacity.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_migration_plan_available_shapes = oci.CloudMigrations.get_migration_plan_available_shapes(migration_plan_id=test_migration_plan["id"],
        availability_domain=migration_plan_available_shape_availability_domain,
        compartment_id=compartment_id,
        dvh_host_id=test_dvh_host["id"],
        reserved_capacity_id=test_reserved_capacity["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.GetMigrationPlanAvailableShapes(ctx, &cloudmigrations.GetMigrationPlanAvailableShapesArgs{
    			MigrationPlanId:    testMigrationPlan.Id,
    			AvailabilityDomain: pulumi.StringRef(migrationPlanAvailableShapeAvailabilityDomain),
    			CompartmentId:      pulumi.StringRef(compartmentId),
    			DvhHostId:          pulumi.StringRef(testDvhHost.Id),
    			ReservedCapacityId: pulumi.StringRef(testReservedCapacity.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 testMigrationPlanAvailableShapes = Oci.CloudMigrations.GetMigrationPlanAvailableShapes.Invoke(new()
        {
            MigrationPlanId = testMigrationPlan.Id,
            AvailabilityDomain = migrationPlanAvailableShapeAvailabilityDomain,
            CompartmentId = compartmentId,
            DvhHostId = testDvhHost.Id,
            ReservedCapacityId = testReservedCapacity.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.GetMigrationPlanAvailableShapesArgs;
    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 testMigrationPlanAvailableShapes = CloudMigrationsFunctions.getMigrationPlanAvailableShapes(GetMigrationPlanAvailableShapesArgs.builder()
                .migrationPlanId(testMigrationPlan.id())
                .availabilityDomain(migrationPlanAvailableShapeAvailabilityDomain)
                .compartmentId(compartmentId)
                .dvhHostId(testDvhHost.id())
                .reservedCapacityId(testReservedCapacity.id())
                .build());
    
        }
    }
    
    variables:
      testMigrationPlanAvailableShapes:
        fn::invoke:
          Function: oci:CloudMigrations:getMigrationPlanAvailableShapes
          Arguments:
            migrationPlanId: ${testMigrationPlan.id}
            availabilityDomain: ${migrationPlanAvailableShapeAvailabilityDomain}
            compartmentId: ${compartmentId}
            dvhHostId: ${testDvhHost.id}
            reservedCapacityId: ${testReservedCapacity.id}
    

    Using getMigrationPlanAvailableShapes

    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 getMigrationPlanAvailableShapes(args: GetMigrationPlanAvailableShapesArgs, opts?: InvokeOptions): Promise<GetMigrationPlanAvailableShapesResult>
    function getMigrationPlanAvailableShapesOutput(args: GetMigrationPlanAvailableShapesOutputArgs, opts?: InvokeOptions): Output<GetMigrationPlanAvailableShapesResult>
    def get_migration_plan_available_shapes(availability_domain: Optional[str] = None,
                                            compartment_id: Optional[str] = None,
                                            dvh_host_id: Optional[str] = None,
                                            filters: Optional[Sequence[_cloudmigrations.GetMigrationPlanAvailableShapesFilter]] = None,
                                            migration_plan_id: Optional[str] = None,
                                            reserved_capacity_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetMigrationPlanAvailableShapesResult
    def get_migration_plan_available_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                            compartment_id: Optional[pulumi.Input[str]] = None,
                                            dvh_host_id: Optional[pulumi.Input[str]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudmigrations.GetMigrationPlanAvailableShapesFilterArgs]]]] = None,
                                            migration_plan_id: Optional[pulumi.Input[str]] = None,
                                            reserved_capacity_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetMigrationPlanAvailableShapesResult]
    func GetMigrationPlanAvailableShapes(ctx *Context, args *GetMigrationPlanAvailableShapesArgs, opts ...InvokeOption) (*GetMigrationPlanAvailableShapesResult, error)
    func GetMigrationPlanAvailableShapesOutput(ctx *Context, args *GetMigrationPlanAvailableShapesOutputArgs, opts ...InvokeOption) GetMigrationPlanAvailableShapesResultOutput

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

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

    The following arguments are supported:

    MigrationPlanId string
    Unique migration plan identifier
    AvailabilityDomain string
    The availability domain in which to list resources.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DvhHostId string
    The ID of the Dvh in which to list resources.
    Filters List<GetMigrationPlanAvailableShapesFilter>
    ReservedCapacityId string
    The reserved capacity ID for which to list resources.
    MigrationPlanId string
    Unique migration plan identifier
    AvailabilityDomain string
    The availability domain in which to list resources.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DvhHostId string
    The ID of the Dvh in which to list resources.
    Filters []GetMigrationPlanAvailableShapesFilter
    ReservedCapacityId string
    The reserved capacity ID for which to list resources.
    migrationPlanId String
    Unique migration plan identifier
    availabilityDomain String
    The availability domain in which to list resources.
    compartmentId String
    The ID of the compartment in which to list resources.
    dvhHostId String
    The ID of the Dvh in which to list resources.
    filters List<GetMigrationPlanAvailableShapesFilter>
    reservedCapacityId String
    The reserved capacity ID for which to list resources.
    migrationPlanId string
    Unique migration plan identifier
    availabilityDomain string
    The availability domain in which to list resources.
    compartmentId string
    The ID of the compartment in which to list resources.
    dvhHostId string
    The ID of the Dvh in which to list resources.
    filters GetMigrationPlanAvailableShapesFilter[]
    reservedCapacityId string
    The reserved capacity ID for which to list resources.
    migration_plan_id str
    Unique migration plan identifier
    availability_domain str
    The availability domain in which to list resources.
    compartment_id str
    The ID of the compartment in which to list resources.
    dvh_host_id str
    The ID of the Dvh in which to list resources.
    filters Sequence[cloudmigrations.GetMigrationPlanAvailableShapesFilter]
    reserved_capacity_id str
    The reserved capacity ID for which to list resources.
    migrationPlanId String
    Unique migration plan identifier
    availabilityDomain String
    The availability domain in which to list resources.
    compartmentId String
    The ID of the compartment in which to list resources.
    dvhHostId String
    The ID of the Dvh in which to list resources.
    filters List<Property Map>
    reservedCapacityId String
    The reserved capacity ID for which to list resources.

    getMigrationPlanAvailableShapes Result

    The following output properties are available:

    AvailableShapesCollections List<GetMigrationPlanAvailableShapesAvailableShapesCollection>
    The list of available_shapes_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    MigrationPlanId string
    AvailabilityDomain string
    Availability domain of the shape.
    CompartmentId string
    DvhHostId string
    Filters List<GetMigrationPlanAvailableShapesFilter>
    ReservedCapacityId string
    AvailableShapesCollections []GetMigrationPlanAvailableShapesAvailableShapesCollection
    The list of available_shapes_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    MigrationPlanId string
    AvailabilityDomain string
    Availability domain of the shape.
    CompartmentId string
    DvhHostId string
    Filters []GetMigrationPlanAvailableShapesFilter
    ReservedCapacityId string
    availableShapesCollections List<GetMigrationPlanAvailableShapesAvailableShapesCollection>
    The list of available_shapes_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    migrationPlanId String
    availabilityDomain String
    Availability domain of the shape.
    compartmentId String
    dvhHostId String
    filters List<GetMigrationPlanAvailableShapesFilter>
    reservedCapacityId String
    availableShapesCollections GetMigrationPlanAvailableShapesAvailableShapesCollection[]
    The list of available_shapes_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    migrationPlanId string
    availabilityDomain string
    Availability domain of the shape.
    compartmentId string
    dvhHostId string
    filters GetMigrationPlanAvailableShapesFilter[]
    reservedCapacityId string
    availableShapesCollections List<Property Map>
    The list of available_shapes_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    migrationPlanId String
    availabilityDomain String
    Availability domain of the shape.
    compartmentId String
    dvhHostId String
    filters List<Property Map>
    reservedCapacityId String

    Supporting Types

    GetMigrationPlanAvailableShapesAvailableShapesCollection

    items List<Property Map>
    Available shapes list.

    GetMigrationPlanAvailableShapesAvailableShapesCollectionItem

    AvailabilityDomain string
    The availability domain in which to list resources.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    GpuDescription string
    Description of the GPUs.
    Gpus int
    Number of GPUs.
    LocalDiskDescription string
    Description of local disks.
    LocalDisks int
    Number of local disks.
    LocalDisksTotalSizeInGbs double
    Total size of local disks for shape.
    MaxVnicAttachments int
    Maximum number of virtual network interfaces that can be attached.
    MemoryInGbs double
    Amount of memory for the shape.
    MinTotalBaselineOcpusRequired double
    Minimum CPUs required.
    NetworkingBandwidthInGbps double
    Shape bandwidth.
    Ocpus double
    Number of CPUs.
    PaginationToken string
    Shape name and availability domain. Used for pagination.
    ProcessorDescription string
    Description of the processor.
    Shape string
    Name of the shape.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    AvailabilityDomain string
    The availability domain in which to list resources.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    GpuDescription string
    Description of the GPUs.
    Gpus int
    Number of GPUs.
    LocalDiskDescription string
    Description of local disks.
    LocalDisks int
    Number of local disks.
    LocalDisksTotalSizeInGbs float64
    Total size of local disks for shape.
    MaxVnicAttachments int
    Maximum number of virtual network interfaces that can be attached.
    MemoryInGbs float64
    Amount of memory for the shape.
    MinTotalBaselineOcpusRequired float64
    Minimum CPUs required.
    NetworkingBandwidthInGbps float64
    Shape bandwidth.
    Ocpus float64
    Number of CPUs.
    PaginationToken string
    Shape name and availability domain. Used for pagination.
    ProcessorDescription string
    Description of the processor.
    Shape string
    Name of the shape.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    availabilityDomain String
    The availability domain in which to list resources.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    gpuDescription String
    Description of the GPUs.
    gpus Integer
    Number of GPUs.
    localDiskDescription String
    Description of local disks.
    localDisks Integer
    Number of local disks.
    localDisksTotalSizeInGbs Double
    Total size of local disks for shape.
    maxVnicAttachments Integer
    Maximum number of virtual network interfaces that can be attached.
    memoryInGbs Double
    Amount of memory for the shape.
    minTotalBaselineOcpusRequired Double
    Minimum CPUs required.
    networkingBandwidthInGbps Double
    Shape bandwidth.
    ocpus Double
    Number of CPUs.
    paginationToken String
    Shape name and availability domain. Used for pagination.
    processorDescription String
    Description of the processor.
    shape String
    Name of the shape.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    availabilityDomain string
    The availability domain in which to list resources.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    gpuDescription string
    Description of the GPUs.
    gpus number
    Number of GPUs.
    localDiskDescription string
    Description of local disks.
    localDisks number
    Number of local disks.
    localDisksTotalSizeInGbs number
    Total size of local disks for shape.
    maxVnicAttachments number
    Maximum number of virtual network interfaces that can be attached.
    memoryInGbs number
    Amount of memory for the shape.
    minTotalBaselineOcpusRequired number
    Minimum CPUs required.
    networkingBandwidthInGbps number
    Shape bandwidth.
    ocpus number
    Number of CPUs.
    paginationToken string
    Shape name and availability domain. Used for pagination.
    processorDescription string
    Description of the processor.
    shape string
    Name of the shape.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    availability_domain str
    The availability domain in which to list resources.
    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"}
    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"}
    gpu_description str
    Description of the GPUs.
    gpus int
    Number of GPUs.
    local_disk_description str
    Description of local disks.
    local_disks int
    Number of local disks.
    local_disks_total_size_in_gbs float
    Total size of local disks for shape.
    max_vnic_attachments int
    Maximum number of virtual network interfaces that can be attached.
    memory_in_gbs float
    Amount of memory for the shape.
    min_total_baseline_ocpus_required float
    Minimum CPUs required.
    networking_bandwidth_in_gbps float
    Shape bandwidth.
    ocpus float
    Number of CPUs.
    pagination_token str
    Shape name and availability domain. Used for pagination.
    processor_description str
    Description of the processor.
    shape str
    Name of the shape.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    availabilityDomain String
    The availability domain in which to list resources.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    gpuDescription String
    Description of the GPUs.
    gpus Number
    Number of GPUs.
    localDiskDescription String
    Description of local disks.
    localDisks Number
    Number of local disks.
    localDisksTotalSizeInGbs Number
    Total size of local disks for shape.
    maxVnicAttachments Number
    Maximum number of virtual network interfaces that can be attached.
    memoryInGbs Number
    Amount of memory for the shape.
    minTotalBaselineOcpusRequired Number
    Minimum CPUs required.
    networkingBandwidthInGbps Number
    Shape bandwidth.
    ocpus Number
    Number of CPUs.
    paginationToken String
    Shape name and availability domain. Used for pagination.
    processorDescription String
    Description of the processor.
    shape String
    Name of the shape.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    GetMigrationPlanAvailableShapesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.33.0 published on Thursday, Apr 25, 2024 by Pulumi