Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to get the list of compatible netboots for a dedicated server associated with your OVHcloud Account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const netboots = ovh.Dedicated.getServerBoots({
serviceName: "myserver",
bootType: "harddisk",
});
import pulumi
import pulumi_ovh as ovh
netboots = ovh.Dedicated.get_server_boots(service_name="myserver",
boot_type="harddisk")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/dedicated"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dedicated.GetServerBoots(ctx, &dedicated.GetServerBootsArgs{
ServiceName: "myserver",
BootType: pulumi.StringRef("harddisk"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var netboots = Ovh.Dedicated.GetServerBoots.Invoke(new()
{
ServiceName = "myserver",
BootType = "harddisk",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dedicated.DedicatedFunctions;
import com.pulumi.ovh.Dedicated.inputs.GetServerBootsArgs;
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 netboots = DedicatedFunctions.getServerBoots(GetServerBootsArgs.builder()
.serviceName("myserver")
.bootType("harddisk")
.build());
}
}
variables:
netboots:
fn::invoke:
function: ovh:Dedicated:getServerBoots
arguments:
serviceName: myserver
bootType: harddisk
Using getServerBoots
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 getServerBoots(args: GetServerBootsArgs, opts?: InvokeOptions): Promise<GetServerBootsResult>
function getServerBootsOutput(args: GetServerBootsOutputArgs, opts?: InvokeOptions): Output<GetServerBootsResult>def get_server_boots(boot_type: Optional[str] = None,
kernel: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerBootsResult
def get_server_boots_output(boot_type: Optional[pulumi.Input[str]] = None,
kernel: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerBootsResult]func GetServerBoots(ctx *Context, args *GetServerBootsArgs, opts ...InvokeOption) (*GetServerBootsResult, error)
func GetServerBootsOutput(ctx *Context, args *GetServerBootsOutputArgs, opts ...InvokeOption) GetServerBootsResultOutput> Note: This function is named GetServerBoots in the Go SDK.
public static class GetServerBoots
{
public static Task<GetServerBootsResult> InvokeAsync(GetServerBootsArgs args, InvokeOptions? opts = null)
public static Output<GetServerBootsResult> Invoke(GetServerBootsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerBootsResult> getServerBoots(GetServerBootsArgs args, InvokeOptions options)
public static Output<GetServerBootsResult> getServerBoots(GetServerBootsArgs args, InvokeOptions options)
fn::invoke:
function: ovh:Dedicated/getServerBoots:getServerBoots
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Name string - The internal name of your dedicated server.
- Boot
Type string - Filter the value of bootType property (harddisk, rescue, internal, network)
- Kernel string
- Filter the value of kernel property (iPXE script name)
- Service
Name string - The internal name of your dedicated server.
- Boot
Type string - Filter the value of bootType property (harddisk, rescue, internal, network)
- Kernel string
- Filter the value of kernel property (iPXE script name)
- service
Name String - The internal name of your dedicated server.
- boot
Type String - Filter the value of bootType property (harddisk, rescue, internal, network)
- kernel String
- Filter the value of kernel property (iPXE script name)
- service
Name string - The internal name of your dedicated server.
- boot
Type string - Filter the value of bootType property (harddisk, rescue, internal, network)
- kernel string
- Filter the value of kernel property (iPXE script name)
- service_
name str - The internal name of your dedicated server.
- boot_
type str - Filter the value of bootType property (harddisk, rescue, internal, network)
- kernel str
- Filter the value of kernel property (iPXE script name)
- service
Name String - The internal name of your dedicated server.
- boot
Type String - Filter the value of bootType property (harddisk, rescue, internal, network)
- kernel String
- Filter the value of kernel property (iPXE script name)
getServerBoots Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Results List<int>
- The list of dedicated server netboots.
- Service
Name string - Boot
Type string - Kernel string
- Id string
- The provider-assigned unique ID for this managed resource.
- Results []int
- The list of dedicated server netboots.
- Service
Name string - Boot
Type string - Kernel string
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Integer>
- The list of dedicated server netboots.
- service
Name String - boot
Type String - kernel String
- id string
- The provider-assigned unique ID for this managed resource.
- results number[]
- The list of dedicated server netboots.
- service
Name string - boot
Type string - kernel string
- id str
- The provider-assigned unique ID for this managed resource.
- results Sequence[int]
- The list of dedicated server netboots.
- service_
name str - boot_
type str - kernel str
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Number>
- The list of dedicated server netboots.
- service
Name String - boot
Type String - kernel String
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
