Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.CloudMigrations.getMigrationPlanAvailableShapes
Explore with Pulumi AI
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/v2/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:
- Migration
Plan stringId - Unique migration plan identifier
- Availability
Domain string - The availability domain in which to list resources.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dvh
Host stringId - The ID of the Dvh in which to list resources.
- Filters
List<Get
Migration Plan Available Shapes Filter> - Reserved
Capacity stringId - The reserved capacity ID for which to list resources.
- Migration
Plan stringId - Unique migration plan identifier
- Availability
Domain string - The availability domain in which to list resources.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dvh
Host stringId - The ID of the Dvh in which to list resources.
- Filters
[]Get
Migration Plan Available Shapes Filter - Reserved
Capacity stringId - The reserved capacity ID for which to list resources.
- migration
Plan StringId - Unique migration plan identifier
- availability
Domain String - The availability domain in which to list resources.
- compartment
Id String - The ID of the compartment in which to list resources.
- dvh
Host StringId - The ID of the Dvh in which to list resources.
- filters
List<Get
Migration Plan Available Shapes Filter> - reserved
Capacity StringId - The reserved capacity ID for which to list resources.
- migration
Plan stringId - Unique migration plan identifier
- availability
Domain string - The availability domain in which to list resources.
- compartment
Id string - The ID of the compartment in which to list resources.
- dvh
Host stringId - The ID of the Dvh in which to list resources.
- filters
Get
Migration Plan Available Shapes Filter[] - reserved
Capacity stringId - The reserved capacity ID for which to list resources.
- migration_
plan_ strid - 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_ strid - The ID of the Dvh in which to list resources.
- filters
Sequence[cloudmigrations.
Get Migration Plan Available Shapes Filter] - reserved_
capacity_ strid - The reserved capacity ID for which to list resources.
- migration
Plan StringId - Unique migration plan identifier
- availability
Domain String - The availability domain in which to list resources.
- compartment
Id String - The ID of the compartment in which to list resources.
- dvh
Host StringId - The ID of the Dvh in which to list resources.
- filters List<Property Map>
- reserved
Capacity StringId - The reserved capacity ID for which to list resources.
getMigrationPlanAvailableShapes Result
The following output properties are available:
- Available
Shapes List<GetCollections Migration Plan Available Shapes Available Shapes Collection> - The list of available_shapes_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Plan stringId - Availability
Domain string - Availability domain of the shape.
- Compartment
Id string - Dvh
Host stringId - Filters
List<Get
Migration Plan Available Shapes Filter> - Reserved
Capacity stringId
- Available
Shapes []GetCollections Migration Plan Available Shapes Available Shapes Collection - The list of available_shapes_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Plan stringId - Availability
Domain string - Availability domain of the shape.
- Compartment
Id string - Dvh
Host stringId - Filters
[]Get
Migration Plan Available Shapes Filter - Reserved
Capacity stringId
- available
Shapes List<GetCollections Migration Plan Available Shapes Available Shapes Collection> - The list of available_shapes_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- migration
Plan StringId - availability
Domain String - Availability domain of the shape.
- compartment
Id String - dvh
Host StringId - filters
List<Get
Migration Plan Available Shapes Filter> - reserved
Capacity StringId
- available
Shapes GetCollections Migration Plan Available Shapes Available Shapes Collection[] - The list of available_shapes_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- migration
Plan stringId - availability
Domain string - Availability domain of the shape.
- compartment
Id string - dvh
Host stringId - filters
Get
Migration Plan Available Shapes Filter[] - reserved
Capacity stringId
- available_
shapes_ Sequence[cloudmigrations.collections Get Migration Plan Available Shapes Available Shapes Collection] - The list of available_shapes_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- migration_
plan_ strid - availability_
domain str - Availability domain of the shape.
- compartment_
id str - dvh_
host_ strid - filters
Sequence[cloudmigrations.
Get Migration Plan Available Shapes Filter] - reserved_
capacity_ strid
- available
Shapes List<Property Map>Collections - The list of available_shapes_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- migration
Plan StringId - availability
Domain String - Availability domain of the shape.
- compartment
Id String - dvh
Host StringId - filters List<Property Map>
- reserved
Capacity StringId
Supporting Types
GetMigrationPlanAvailableShapesAvailableShapesCollection
- Items
List<Get
Migration Plan Available Shapes Available Shapes Collection Item> - Available shapes list.
- Items
[]Get
Migration Plan Available Shapes Available Shapes Collection Item - Available shapes list.
- items
List<Get
Migration Plan Available Shapes Available Shapes Collection Item> - Available shapes list.
- items
Get
Migration Plan Available Shapes Available Shapes Collection Item[] - Available shapes list.
- items
Sequence[cloudmigrations.
Get Migration Plan Available Shapes Available Shapes Collection Item] - Available shapes list.
- items List<Property Map>
- Available shapes list.
GetMigrationPlanAvailableShapesAvailableShapesCollectionItem
- Availability
Domain string - The availability domain in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- Gpu
Description string - Description of the GPUs.
- Gpus int
- Number of GPUs.
- Local
Disk stringDescription - Description of local disks.
- Local
Disks int - Number of local disks.
- Local
Disks doubleTotal Size In Gbs - Total size of local disks for shape.
- Max
Vnic intAttachments - Maximum number of virtual network interfaces that can be attached.
- Memory
In doubleGbs - Amount of memory for the shape.
- Min
Total doubleBaseline Ocpus Required - Minimum CPUs required.
- Networking
Bandwidth doubleIn Gbps - Shape bandwidth.
- Ocpus double
- Number of CPUs.
- Pagination
Token string - Shape name and availability domain. Used for pagination.
- Processor
Description string - Description of the processor.
- Shape string
- Name of the shape.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Availability
Domain string - The availability domain in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- Gpu
Description string - Description of the GPUs.
- Gpus int
- Number of GPUs.
- Local
Disk stringDescription - Description of local disks.
- Local
Disks int - Number of local disks.
- Local
Disks float64Total Size In Gbs - Total size of local disks for shape.
- Max
Vnic intAttachments - Maximum number of virtual network interfaces that can be attached.
- Memory
In float64Gbs - Amount of memory for the shape.
- Min
Total float64Baseline Ocpus Required - Minimum CPUs required.
- Networking
Bandwidth float64In Gbps - Shape bandwidth.
- Ocpus float64
- Number of CPUs.
- Pagination
Token string - Shape name and availability domain. Used for pagination.
- Processor
Description string - Description of the processor.
- Shape string
- Name of the shape.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- availability
Domain String - The availability domain in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- gpu
Description String - Description of the GPUs.
- gpus Integer
- Number of GPUs.
- local
Disk StringDescription - Description of local disks.
- local
Disks Integer - Number of local disks.
- local
Disks DoubleTotal Size In Gbs - Total size of local disks for shape.
- max
Vnic IntegerAttachments - Maximum number of virtual network interfaces that can be attached.
- memory
In DoubleGbs - Amount of memory for the shape.
- min
Total DoubleBaseline Ocpus Required - Minimum CPUs required.
- networking
Bandwidth DoubleIn Gbps - Shape bandwidth.
- ocpus Double
- Number of CPUs.
- pagination
Token String - Shape name and availability domain. Used for pagination.
- processor
Description String - Description of the processor.
- shape String
- Name of the shape.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- availability
Domain string - The availability domain in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[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"}
- gpu
Description string - Description of the GPUs.
- gpus number
- Number of GPUs.
- local
Disk stringDescription - Description of local disks.
- local
Disks number - Number of local disks.
- local
Disks numberTotal Size In Gbs - Total size of local disks for shape.
- max
Vnic numberAttachments - Maximum number of virtual network interfaces that can be attached.
- memory
In numberGbs - Amount of memory for the shape.
- min
Total numberBaseline Ocpus Required - Minimum CPUs required.
- networking
Bandwidth numberIn Gbps - Shape bandwidth.
- ocpus number
- Number of CPUs.
- pagination
Token string - Shape name and availability domain. Used for pagination.
- processor
Description string - Description of the processor.
- shape string
- Name of the shape.
- {[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.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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_ strdescription - Description of local disks.
- local_
disks int - Number of local disks.
- local_
disks_ floattotal_ size_ in_ gbs - Total size of local disks for shape.
- max_
vnic_ intattachments - Maximum number of virtual network interfaces that can be attached.
- memory_
in_ floatgbs - Amount of memory for the shape.
- min_
total_ floatbaseline_ ocpus_ required - Minimum CPUs required.
- networking_
bandwidth_ floatin_ gbps - 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.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- availability
Domain String - The availability domain in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
- gpu
Description String - Description of the GPUs.
- gpus Number
- Number of GPUs.
- local
Disk StringDescription - Description of local disks.
- local
Disks Number - Number of local disks.
- local
Disks NumberTotal Size In Gbs - Total size of local disks for shape.
- max
Vnic NumberAttachments - Maximum number of virtual network interfaces that can be attached.
- memory
In NumberGbs - Amount of memory for the shape.
- min
Total NumberBaseline Ocpus Required - Minimum CPUs required.
- networking
Bandwidth NumberIn Gbps - Shape bandwidth.
- ocpus Number
- Number of CPUs.
- pagination
Token String - Shape name and availability domain. Used for pagination.
- processor
Description String - Description of the processor.
- shape String
- Name of the shape.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
GetMigrationPlanAvailableShapesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.