Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

getInstallationTemplate

Use this data source to get a custom installation template available for dedicated servers.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var mytemplate = Ovh.Me.GetInstallationTemplate.Invoke(new()
    {
        TemplateName = "mytemplate",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/Me"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err = Me.GetInstallationTemplate(ctx, &me.GetInstallationTemplateArgs{
			TemplateName: "mytemplate",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Me.MeFunctions;
import com.pulumi.ovh.Me.inputs.GetInstallationTemplateArgs;
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 mytemplate = MeFunctions.getInstallationTemplate(GetInstallationTemplateArgs.builder()
            .templateName("mytemplate")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

mytemplate = ovh.Me.get_installation_template(template_name="mytemplate")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const mytemplate = pulumi.output(ovh.Me.getInstallationTemplate({
    templateName: "mytemplate",
}));
variables:
  mytemplate:
    fn::invoke:
      Function: ovh:Me:getInstallationTemplate
      Arguments:
        templateName: mytemplate

Using getInstallationTemplate

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 getInstallationTemplate(args: GetInstallationTemplateArgs, opts?: InvokeOptions): Promise<GetInstallationTemplateResult>
function getInstallationTemplateOutput(args: GetInstallationTemplateOutputArgs, opts?: InvokeOptions): Output<GetInstallationTemplateResult>
def get_installation_template(template_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetInstallationTemplateResult
def get_installation_template_output(template_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetInstallationTemplateResult]
func GetInstallationTemplate(ctx *Context, args *GetInstallationTemplateArgs, opts ...InvokeOption) (*GetInstallationTemplateResult, error)
func GetInstallationTemplateOutput(ctx *Context, args *GetInstallationTemplateOutputArgs, opts ...InvokeOption) GetInstallationTemplateResultOutput

> Note: This function is named GetInstallationTemplate in the Go SDK.

public static class GetInstallationTemplate 
{
    public static Task<GetInstallationTemplateResult> InvokeAsync(GetInstallationTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetInstallationTemplateResult> Invoke(GetInstallationTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstallationTemplateResult> getInstallationTemplate(GetInstallationTemplateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:Me/getInstallationTemplate:getInstallationTemplate
  arguments:
    # arguments dictionary

The following arguments are supported:

getInstallationTemplate Result

The following output properties are available:

availableLanguages List<String>
beta Boolean
bitFormat Number
category String
customizations List<Property Map>
defaultLanguage String
deprecated Boolean
description String
distribution String
family String
filesystems List<String>
hardRaidConfiguration Boolean
id String

The provider-assigned unique ID for this managed resource.

lastModification String
lvmReady Boolean
partitionSchemes List<Property Map>
supportsDistributionKernel Boolean
supportsGptLabel Boolean
supportsRtm Boolean
supportsSqlServer Boolean
supportsUefi String
templateName String

Supporting Types

GetInstallationTemplateCustomization

ChangeLog string

Deprecated:

field is not used anymore

CustomHostname string
PostInstallationScriptLink string
PostInstallationScriptReturn string
Rating int

Deprecated:

field is not used anymore

SshKeyName string
UseDistributionKernel bool
ChangeLog string

Deprecated:

field is not used anymore

CustomHostname string
PostInstallationScriptLink string
PostInstallationScriptReturn string
Rating int

Deprecated:

field is not used anymore

SshKeyName string
UseDistributionKernel bool
changeLog String

Deprecated:

field is not used anymore

customHostname String
postInstallationScriptLink String
postInstallationScriptReturn String
rating Integer

Deprecated:

field is not used anymore

sshKeyName String
useDistributionKernel Boolean
changeLog string

Deprecated:

field is not used anymore

customHostname string
postInstallationScriptLink string
postInstallationScriptReturn string
rating number

Deprecated:

field is not used anymore

sshKeyName string
useDistributionKernel boolean
change_log str

Deprecated:

field is not used anymore

custom_hostname str
post_installation_script_link str
post_installation_script_return str
rating int

Deprecated:

field is not used anymore

ssh_key_name str
use_distribution_kernel bool
changeLog String

Deprecated:

field is not used anymore

customHostname String
postInstallationScriptLink String
postInstallationScriptReturn String
rating Number

Deprecated:

field is not used anymore

sshKeyName String
useDistributionKernel Boolean

GetInstallationTemplatePartitionScheme

GetInstallationTemplatePartitionSchemeHardwareRaid

Disks List<string>
Mode string
Name string
Step int
Disks []string
Mode string
Name string
Step int
disks List<String>
mode String
name String
step Integer
disks string[]
mode string
name string
step number
disks Sequence[str]
mode str
name str
step int
disks List<String>
mode String
name String
step Number

GetInstallationTemplatePartitionSchemePartition

Filesystem string
Mountpoint string
Order int
Raid string
Size int
Type string
VolumeName string
Filesystem string
Mountpoint string
Order int
Raid string
Size int
Type string
VolumeName string
filesystem String
mountpoint String
order Integer
raid String
size Integer
type String
volumeName String
filesystem string
mountpoint string
order number
raid string
size number
type string
volumeName string
filesystem String
mountpoint String
order Number
raid String
size Number
type String
volumeName String

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.