1. Packages
  2. OVH
  3. API Docs
  4. Dedicated
  5. getServerBoots
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

ovh.Dedicated.getServerBoots

Explore with Pulumi AI

ovh logo
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 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 "@pulumi/ovh";
    
    const netboots = ovh.Dedicated.getServerBoots({
        bootType: "harddisk",
        serviceName: "myserver",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    netboots = ovh.Dedicated.get_server_boots(boot_type="harddisk",
        service_name="myserver")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/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{
    			BootType:    pulumi.StringRef("harddisk"),
    			ServiceName: "myserver",
    		}, 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()
        {
            BootType = "harddisk",
            ServiceName = "myserver",
        });
    
    });
    
    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()
                .bootType("harddisk")
                .serviceName("myserver")
                .build());
    
        }
    }
    
    variables:
      netboots:
        fn::invoke:
          Function: ovh:Dedicated:getServerBoots
          Arguments:
            bootType: harddisk
            serviceName: myserver
    

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Dedicated/getServerBoots:getServerBoots
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    The internal name of your dedicated server.
    BootType string
    Filter the value of bootType property (harddisk, rescue, internal, network)
    Kernel string
    Filter the value of kernel property (iPXE script name)
    ServiceName string
    The internal name of your dedicated server.
    BootType string
    Filter the value of bootType property (harddisk, rescue, internal, network)
    Kernel string
    Filter the value of kernel property (iPXE script name)
    serviceName String
    The internal name of your dedicated server.
    bootType String
    Filter the value of bootType property (harddisk, rescue, internal, network)
    kernel String
    Filter the value of kernel property (iPXE script name)
    serviceName string
    The internal name of your dedicated server.
    bootType 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)
    serviceName String
    The internal name of your dedicated server.
    bootType 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.
    ServiceName string
    BootType string
    Kernel string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []int
    The list of dedicated server netboots.
    ServiceName string
    BootType string
    Kernel string
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Integer>
    The list of dedicated server netboots.
    serviceName String
    bootType String
    kernel String
    id string
    The provider-assigned unique ID for this managed resource.
    results number[]
    The list of dedicated server netboots.
    serviceName string
    bootType 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.
    serviceName String
    bootType String
    kernel String

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud