Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi
oci.CloudMigrations.getMigrationPlanAvailableShape
Explore with Pulumi AI
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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- reserved
Capacity StringId - 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<Get
Migration Plan Available Shape Item> - Available shapes list.
- Migration
Plan stringId - Availability
Domain string - Availability domain of the shape.
- Compartment
Id string - Dvh
Host stringId - Reserved
Capacity stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Migration Plan Available Shape Item - Available shapes list.
- Migration
Plan stringId - Availability
Domain string - Availability domain of the shape.
- Compartment
Id string - Dvh
Host stringId - Reserved
Capacity stringId
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Migration Plan Available Shape Item> - Available shapes list.
- migration
Plan StringId - availability
Domain String - Availability domain of the shape.
- compartment
Id String - dvh
Host StringId - reserved
Capacity StringId
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Migration Plan Available Shape Item[] - Available shapes list.
- migration
Plan stringId - availability
Domain string - Availability domain of the shape.
- compartment
Id string - dvh
Host stringId - reserved
Capacity stringId
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[cloudmigrations.
Get Migration Plan Available Shape Item] - Available shapes list.
- migration_
plan_ strid - availability_
domain str - Availability domain of the shape.
- compartment_
id str - dvh_
host_ strid - reserved_
capacity_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Available shapes list.
- migration
Plan StringId - availability
Domain String - Availability domain of the shape.
- compartment
Id String - dvh
Host StringId - reserved
Capacity StringId
Supporting Types
GetMigrationPlanAvailableShapeItem
- 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"}
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.