Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
Provides information about a VM state.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const vmState01 = outscale.getVmState({
allVms: true,
filters: [{
name: "vm_ids",
values: ["i-12345678"],
}],
});
import pulumi
import pulumi_outscale as outscale
vm_state01 = outscale.get_vm_state(all_vms=True,
filters=[{
"name": "vm_ids",
"values": ["i-12345678"],
}])
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.GetVmState(ctx, &outscale.GetVmStateArgs{
AllVms: pulumi.BoolRef(true),
Filters: []outscale.GetVmStateFilter{
{
Name: "vm_ids",
Values: []string{
"i-12345678",
},
},
},
}, 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 vmState01 = Outscale.GetVmState.Invoke(new()
{
AllVms = true,
Filters = new[]
{
new Outscale.Inputs.GetVmStateFilterInputArgs
{
Name = "vm_ids",
Values = new[]
{
"i-12345678",
},
},
},
});
});
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.GetVmStateArgs;
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 vmState01 = OutscaleFunctions.getVmState(GetVmStateArgs.builder()
.allVms(true)
.filters(GetVmStateFilterArgs.builder()
.name("vm_ids")
.values("i-12345678")
.build())
.build());
}
}
variables:
vmState01:
fn::invoke:
function: outscale:getVmState
arguments:
allVms: true
filters:
- name: vm_ids
values:
- i-12345678
Using getVmState
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 getVmState(args: GetVmStateArgs, opts?: InvokeOptions): Promise<GetVmStateResult>
function getVmStateOutput(args: GetVmStateOutputArgs, opts?: InvokeOptions): Output<GetVmStateResult>def get_vm_state(all_vms: Optional[bool] = None,
filters: Optional[Sequence[GetVmStateFilter]] = None,
id: Optional[str] = None,
vm_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVmStateResult
def get_vm_state_output(all_vms: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVmStateFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
vm_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVmStateResult]func GetVmState(ctx *Context, args *GetVmStateArgs, opts ...InvokeOption) (*GetVmStateResult, error)
func GetVmStateOutput(ctx *Context, args *GetVmStateOutputArgs, opts ...InvokeOption) GetVmStateResultOutput> Note: This function is named GetVmState in the Go SDK.
public static class GetVmState
{
public static Task<GetVmStateResult> InvokeAsync(GetVmStateArgs args, InvokeOptions? opts = null)
public static Output<GetVmStateResult> Invoke(GetVmStateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVmStateResult> getVmState(GetVmStateArgs args, InvokeOptions options)
public static Output<GetVmStateResult> getVmState(GetVmStateArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getVmState:getVmState
arguments:
# arguments dictionaryThe following arguments are supported:
- All
Vms bool - If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs.
- Filters
List<Get
Vm State 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
- Vm
Id string - The ID of the VM.
- All
Vms bool - If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs.
- Filters
[]Get
Vm State 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
- Vm
Id string - The ID of the VM.
- all
Vms Boolean - If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs.
- filters
List<Get
Vm State 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
- vm
Id String - The ID of the VM.
- all
Vms boolean - If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs.
- filters
Get
Vm State 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
- vm
Id string - The ID of the VM.
- all_
vms bool - If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs.
- filters
Sequence[Get
Vm State 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
- vm_
id str - The ID of the VM.
- all
Vms Boolean - If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs.
- 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
- vm
Id String - The ID of the VM.
getVmState Result
The following output properties are available:
- Id string
- Maintenance
Events List<GetVm State Maintenance Event> - One or more scheduled events associated with the VM.
- Request
Id string - Subregion
Name string - The name of the Subregion of the VM.
- Vm
State string - The state of the VM (
pending|running|stopping|stopped|shutting-down|terminated|quarantine). - All
Vms bool - Filters
List<Get
Vm State Filter> - Vm
Id string - The ID of the VM.
- Id string
- Maintenance
Events []GetVm State Maintenance Event - One or more scheduled events associated with the VM.
- Request
Id string - Subregion
Name string - The name of the Subregion of the VM.
- Vm
State string - The state of the VM (
pending|running|stopping|stopped|shutting-down|terminated|quarantine). - All
Vms bool - Filters
[]Get
Vm State Filter - Vm
Id string - The ID of the VM.
- id String
- maintenance
Events List<GetVm State Maintenance Event> - One or more scheduled events associated with the VM.
- request
Id String - subregion
Name String - The name of the Subregion of the VM.
- vm
State String - The state of the VM (
pending|running|stopping|stopped|shutting-down|terminated|quarantine). - all
Vms Boolean - filters
List<Get
Vm State Filter> - vm
Id String - The ID of the VM.
- id string
- maintenance
Events GetVm State Maintenance Event[] - One or more scheduled events associated with the VM.
- request
Id string - subregion
Name string - The name of the Subregion of the VM.
- vm
State string - The state of the VM (
pending|running|stopping|stopped|shutting-down|terminated|quarantine). - all
Vms boolean - filters
Get
Vm State Filter[] - vm
Id string - The ID of the VM.
- id str
- maintenance_
events Sequence[GetVm State Maintenance Event] - One or more scheduled events associated with the VM.
- request_
id str - subregion_
name str - The name of the Subregion of the VM.
- vm_
state str - The state of the VM (
pending|running|stopping|stopped|shutting-down|terminated|quarantine). - all_
vms bool - filters
Sequence[Get
Vm State Filter] - vm_
id str - The ID of the VM.
- id String
- maintenance
Events List<Property Map> - One or more scheduled events associated with the VM.
- request
Id String - subregion
Name String - The name of the Subregion of the VM.
- vm
State String - The state of the VM (
pending|running|stopping|stopped|shutting-down|terminated|quarantine). - all
Vms Boolean - filters List<Property Map>
- vm
Id String - The ID of the VM.
Supporting Types
GetVmStateFilter
GetVmStateMaintenanceEvent
- Code string
- The code of the event (
system-reboot|system-maintenance). - Description string
- The description of the event.
- Not
After string - The latest scheduled end date and time (UTC) for the event.
- Not
Before string - The earliest scheduled start date and time (UTC) for the event.
- Code string
- The code of the event (
system-reboot|system-maintenance). - Description string
- The description of the event.
- Not
After string - The latest scheduled end date and time (UTC) for the event.
- Not
Before string - The earliest scheduled start date and time (UTC) for the event.
- code String
- The code of the event (
system-reboot|system-maintenance). - description String
- The description of the event.
- not
After String - The latest scheduled end date and time (UTC) for the event.
- not
Before String - The earliest scheduled start date and time (UTC) for the event.
- code string
- The code of the event (
system-reboot|system-maintenance). - description string
- The description of the event.
- not
After string - The latest scheduled end date and time (UTC) for the event.
- not
Before string - The earliest scheduled start date and time (UTC) for the event.
- code str
- The code of the event (
system-reboot|system-maintenance). - description str
- The description of the event.
- not_
after str - The latest scheduled end date and time (UTC) for the event.
- not_
before str - The earliest scheduled start date and time (UTC) for the event.
- code String
- The code of the event (
system-reboot|system-maintenance). - description String
- The description of the event.
- not
After String - The latest scheduled end date and time (UTC) for the event.
- not
Before String - The earliest scheduled start date and time (UTC) for the event.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscaleTerraform Provider.
Viewing docs for outscale 1.4.0
published on Tuesday, Feb 24, 2026 by outscale
published on Tuesday, Feb 24, 2026 by outscale
