outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale
outscale.getVmTypes
Explore with Pulumi AI
Provides information about VM types.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
All types of VMs
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const allVmTypes = outscale.getVmTypes({});
import pulumi
import pulumi_outscale as outscale
all_vm_types = outscale.get_vm_types()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.GetVmTypes(ctx, &outscale.GetVmTypesArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var allVmTypes = Outscale.GetVmTypes.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetVmTypesArgs;
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 allVmTypes = OutscaleFunctions.getVmTypes();
}
}
variables:
allVmTypes:
fn::invoke:
function: outscale:getVmTypes
arguments: {}
VMs optimized for Block Storage Unit (BSU)
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const vmTypes01 = outscale.getVmTypes({
filters: [{
name: "bsu_optimized",
values: ["true"],
}],
});
import pulumi
import pulumi_outscale as outscale
vm_types01 = outscale.get_vm_types(filters=[{
"name": "bsu_optimized",
"values": ["true"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.GetVmTypes(ctx, &outscale.GetVmTypesArgs{
Filters: []outscale.GetVmTypesFilter{
{
Name: "bsu_optimized",
Values: []string{
"true",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var vmTypes01 = Outscale.GetVmTypes.Invoke(new()
{
Filters = new[]
{
new Outscale.Inputs.GetVmTypesFilterInputArgs
{
Name = "bsu_optimized",
Values = new[]
{
"true",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetVmTypesArgs;
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 vmTypes01 = OutscaleFunctions.getVmTypes(GetVmTypesArgs.builder()
.filters(GetVmTypesFilterArgs.builder()
.name("bsu_optimized")
.values(true)
.build())
.build());
}
}
variables:
vmTypes01:
fn::invoke:
function: outscale:getVmTypes
arguments:
filters:
- name: bsu_optimized
values:
- true
Specific VM type
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const vmTypes02 = outscale.getVmTypes({
filters: [{
name: "vm_type_names",
values: ["m3.large"],
}],
});
import pulumi
import pulumi_outscale as outscale
vm_types02 = outscale.get_vm_types(filters=[{
"name": "vm_type_names",
"values": ["m3.large"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.GetVmTypes(ctx, &outscale.GetVmTypesArgs{
Filters: []outscale.GetVmTypesFilter{
{
Name: "vm_type_names",
Values: []string{
"m3.large",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var vmTypes02 = Outscale.GetVmTypes.Invoke(new()
{
Filters = new[]
{
new Outscale.Inputs.GetVmTypesFilterInputArgs
{
Name = "vm_type_names",
Values = new[]
{
"m3.large",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetVmTypesArgs;
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 vmTypes02 = OutscaleFunctions.getVmTypes(GetVmTypesArgs.builder()
.filters(GetVmTypesFilterArgs.builder()
.name("vm_type_names")
.values("m3.large")
.build())
.build());
}
}
variables:
vmTypes02:
fn::invoke:
function: outscale:getVmTypes
arguments:
filters:
- name: vm_type_names
values:
- m3.large
Using getVmTypes
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 getVmTypes(args: GetVmTypesArgs, opts?: InvokeOptions): Promise<GetVmTypesResult>
function getVmTypesOutput(args: GetVmTypesOutputArgs, opts?: InvokeOptions): Output<GetVmTypesResult>
def get_vm_types(filters: Optional[Sequence[GetVmTypesFilter]] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVmTypesResult
def get_vm_types_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVmTypesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVmTypesResult]
func GetVmTypes(ctx *Context, args *GetVmTypesArgs, opts ...InvokeOption) (*GetVmTypesResult, error)
func GetVmTypesOutput(ctx *Context, args *GetVmTypesOutputArgs, opts ...InvokeOption) GetVmTypesResultOutput
> Note: This function is named GetVmTypes
in the Go SDK.
public static class GetVmTypes
{
public static Task<GetVmTypesResult> InvokeAsync(GetVmTypesArgs args, InvokeOptions? opts = null)
public static Output<GetVmTypesResult> Invoke(GetVmTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVmTypesResult> getVmTypes(GetVmTypesArgs args, InvokeOptions options)
public static Output<GetVmTypesResult> getVmTypes(GetVmTypesArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getVmTypes:getVmTypes
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Vm Types Filter> - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Filters
[]Get
Vm Types Filter - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- filters
List<Get
Vm Types Filter> - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- filters
Get
Vm Types Filter[] - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- filters
Sequence[Get
Vm Types Filter] - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
getVmTypes Result
The following output properties are available:
- Id string
- Request
Id string - Vm
Types List<GetVm Types Vm Type> - Information about one or more VM types.
- Filters
List<Get
Vm Types Filter>
- Id string
- Request
Id string - Vm
Types []GetVm Types Vm Type - Information about one or more VM types.
- Filters
[]Get
Vm Types Filter
- id String
- request
Id String - vm
Types List<GetVm Types Vm Type> - Information about one or more VM types.
- filters
List<Get
Vm Types Filter>
- id string
- request
Id string - vm
Types GetVm Types Vm Type[] - Information about one or more VM types.
- filters
Get
Vm Types Filter[]
- id str
- request_
id str - vm_
types Sequence[GetVm Types Vm Type] - Information about one or more VM types.
- filters
Sequence[Get
Vm Types Filter]
- id String
- request
Id String - vm
Types List<Property Map> - Information about one or more VM types.
- filters List<Property Map>
Supporting Types
GetVmTypesFilter
GetVmTypesVmType
- Bsu
Optimized This property is required. bool - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
- Max
Private Ips This property is required. double - The maximum number of private IPs per network interface card (NIC).
- Memory
Size This property is required. double - The amount of memory, in gibibytes.
- Vcore
Count This property is required. double - The number of vCores.
- Vm
Type Name This property is required. string - The name of the VM type.
- Volume
Count This property is required. double - The maximum number of ephemeral storage disks.
- Volume
Size This property is required. double - The size of one ephemeral storage disk, in gibibytes (GiB).
- Bsu
Optimized This property is required. bool - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
- Max
Private Ips This property is required. float64 - The maximum number of private IPs per network interface card (NIC).
- Memory
Size This property is required. float64 - The amount of memory, in gibibytes.
- Vcore
Count This property is required. float64 - The number of vCores.
- Vm
Type Name This property is required. string - The name of the VM type.
- Volume
Count This property is required. float64 - The maximum number of ephemeral storage disks.
- Volume
Size This property is required. float64 - The size of one ephemeral storage disk, in gibibytes (GiB).
- bsu
Optimized This property is required. Boolean - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
- max
Private Ips This property is required. Double - The maximum number of private IPs per network interface card (NIC).
- memory
Size This property is required. Double - The amount of memory, in gibibytes.
- vcore
Count This property is required. Double - The number of vCores.
- vm
Type Name This property is required. String - The name of the VM type.
- volume
Count This property is required. Double - The maximum number of ephemeral storage disks.
- volume
Size This property is required. Double - The size of one ephemeral storage disk, in gibibytes (GiB).
- bsu
Optimized This property is required. boolean - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
- max
Private Ips This property is required. number - The maximum number of private IPs per network interface card (NIC).
- memory
Size This property is required. number - The amount of memory, in gibibytes.
- vcore
Count This property is required. number - The number of vCores.
- vm
Type Name This property is required. string - The name of the VM type.
- volume
Count This property is required. number - The maximum number of ephemeral storage disks.
- volume
Size This property is required. number - The size of one ephemeral storage disk, in gibibytes (GiB).
- bsu_
optimized This property is required. bool - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
- max_
private_ ips This property is required. float - The maximum number of private IPs per network interface card (NIC).
- memory_
size This property is required. float - The amount of memory, in gibibytes.
- vcore_
count This property is required. float - The number of vCores.
- vm_
type_ name This property is required. str - The name of the VM type.
- volume_
count This property is required. float - The maximum number of ephemeral storage disks.
- volume_
size This property is required. float - The size of one ephemeral storage disk, in gibibytes (GiB).
- bsu
Optimized This property is required. Boolean - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS.
- max
Private Ips This property is required. Number - The maximum number of private IPs per network interface card (NIC).
- memory
Size This property is required. Number - The amount of memory, in gibibytes.
- vcore
Count This property is required. Number - The number of vCores.
- vm
Type Name This property is required. String - The name of the VM type.
- volume
Count This property is required. Number - The maximum number of ephemeral storage disks.
- volume
Size This property is required. Number - The size of one ephemeral storage disk, in gibibytes (GiB).
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.