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

oci.CloudMigrations.getMigrationPlanAvailableShape

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 Plan Available Shape resource 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 testMigrationPlanAvailableShape = oci.CloudMigrations.getMigrationPlanAvailableShape({
        migrationPlanId: testMigrationPlan.id,
        availabilityDomain: migrationPlanAvailableShapeAvailabilityDomain,
        compartmentId: compartmentId,
        dvhHostId: testDvhHost.id,
        reservedCapacityId: testReservedCapacity.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_migration_plan_available_shape = oci.CloudMigrations.get_migration_plan_available_shape(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/v2/go/oci/CloudMigrations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudMigrations.GetMigrationPlanAvailableShape(ctx, &cloudmigrations.GetMigrationPlanAvailableShapeArgs{
    			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 testMigrationPlanAvailableShape = Oci.CloudMigrations.GetMigrationPlanAvailableShape.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.GetMigrationPlanAvailableShapeArgs;
    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 testMigrationPlanAvailableShape = CloudMigrationsFunctions.getMigrationPlanAvailableShape(GetMigrationPlanAvailableShapeArgs.builder()
                .migrationPlanId(testMigrationPlan.id())
                .availabilityDomain(migrationPlanAvailableShapeAvailabilityDomain)
                .compartmentId(compartmentId)
                .dvhHostId(testDvhHost.id())
                .reservedCapacityId(testReservedCapacity.id())
                .build());
    
        }
    }
    
    variables:
      testMigrationPlanAvailableShape:
        fn::invoke:
          Function: oci:CloudMigrations:getMigrationPlanAvailableShape
          Arguments:
            migrationPlanId: ${testMigrationPlan.id}
            availabilityDomain: ${migrationPlanAvailableShapeAvailabilityDomain}
            compartmentId: ${compartmentId}
            dvhHostId: ${testDvhHost.id}
            reservedCapacityId: ${testReservedCapacity.id}
    

    Using getMigrationPlanAvailableShape

    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 getMigrationPlanAvailableShape(args: GetMigrationPlanAvailableShapeArgs, opts?: InvokeOptions): Promise<GetMigrationPlanAvailableShapeResult>
    function getMigrationPlanAvailableShapeOutput(args: GetMigrationPlanAvailableShapeOutputArgs, opts?: InvokeOptions): Output<GetMigrationPlanAvailableShapeResult>
    def get_migration_plan_available_shape(availability_domain: Optional[str] = None,
                                           compartment_id: Optional[str] = None,
                                           dvh_host_id: Optional[str] = None,
                                           migration_plan_id: Optional[str] = None,
                                           reserved_capacity_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetMigrationPlanAvailableShapeResult
    def get_migration_plan_available_shape_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                           compartment_id: Optional[pulumi.Input[str]] = None,
                                           dvh_host_id: Optional[pulumi.Input[str]] = None,
                                           migration_plan_id: Optional[pulumi.Input[str]] = None,
                                           reserved_capacity_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetMigrationPlanAvailableShapeResult]
    func GetMigrationPlanAvailableShape(ctx *Context, args *GetMigrationPlanAvailableShapeArgs, opts ...InvokeOption) (*GetMigrationPlanAvailableShapeResult, error)
    func GetMigrationPlanAvailableShapeOutput(ctx *Context, args *GetMigrationPlanAvailableShapeOutputArgs, opts ...InvokeOption) GetMigrationPlanAvailableShapeResultOutput

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

    public static class GetMigrationPlanAvailableShape 
    {
        public static Task<GetMigrationPlanAvailableShapeResult> InvokeAsync(GetMigrationPlanAvailableShapeArgs args, InvokeOptions? opts = null)
        public static Output<GetMigrationPlanAvailableShapeResult> Invoke(GetMigrationPlanAvailableShapeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMigrationPlanAvailableShapeResult> getMigrationPlanAvailableShape(GetMigrationPlanAvailableShapeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudMigrations/getMigrationPlanAvailableShape:getMigrationPlanAvailableShape
      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.
    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.
    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.
    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.
    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.
    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.
    reservedCapacityId String
    The reserved capacity ID for which to list resources.

    getMigrationPlanAvailableShape Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetMigrationPlanAvailableShapeItem>
    Available shapes list.
    MigrationPlanId string
    AvailabilityDomain string
    Availability domain of the shape.
    CompartmentId string
    DvhHostId string
    ReservedCapacityId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetMigrationPlanAvailableShapeItem
    Available shapes list.
    MigrationPlanId string
    AvailabilityDomain string
    Availability domain of the shape.
    CompartmentId string
    DvhHostId string
    ReservedCapacityId string
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetMigrationPlanAvailableShapeItem>
    Available shapes list.
    migrationPlanId String
    availabilityDomain String
    Availability domain of the shape.
    compartmentId String
    dvhHostId String
    reservedCapacityId String
    id string
    The provider-assigned unique ID for this managed resource.
    items GetMigrationPlanAvailableShapeItem[]
    Available shapes list.
    migrationPlanId string
    availabilityDomain string
    Availability domain of the shape.
    compartmentId string
    dvhHostId string
    reservedCapacityId string
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[cloudmigrations.GetMigrationPlanAvailableShapeItem]
    Available shapes list.
    migration_plan_id str
    availability_domain str
    Availability domain of the shape.
    compartment_id str
    dvh_host_id str
    reserved_capacity_id str
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    Available shapes list.
    migrationPlanId String
    availabilityDomain String
    Availability domain of the shape.
    compartmentId String
    dvhHostId String
    reservedCapacityId String

    Supporting Types

    GetMigrationPlanAvailableShapeItem

    AvailabilityDomain string
    The availability domain in which to list resources.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    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, string>
    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]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    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]string
    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,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    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,String>
    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]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    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]: string}
    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, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    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, str]
    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>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}
    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<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    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