1. Packages
  2. OVH
  3. API Docs
  4. getInstallationTemplate
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.getInstallationTemplate

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    Use this data source to retrieve information about a specific OVH dedicated server installation template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const ovhtemplate = ovh.getInstallationTemplate({
        templateName: "debian12_64",
    });
    export const template = ovhtemplate;
    
    import pulumi
    import pulumi_ovh as ovh
    
    ovhtemplate = ovh.get_installation_template(template_name="debian12_64")
    pulumi.export("template", ovhtemplate)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ovhtemplate, err := ovh.GetInstallationTemplate(ctx, &ovh.GetInstallationTemplateArgs{
    			TemplateName: "debian12_64",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("template", ovhtemplate)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var ovhtemplate = Ovh.GetInstallationTemplate.Invoke(new()
        {
            TemplateName = "debian12_64",
        });
    
        return new Dictionary<string, object?>
        {
            ["template"] = ovhtemplate,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.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 ovhtemplate = OvhFunctions.getInstallationTemplate(GetInstallationTemplateArgs.builder()
                .templateName("debian12_64")
                .build());
    
            ctx.export("template", ovhtemplate.applyValue(getInstallationTemplateResult -> getInstallationTemplateResult));
        }
    }
    
    variables:
      ovhtemplate:
        fn::invoke:
          Function: ovh:getInstallationTemplate
          Arguments:
            templateName: debian12_64
    outputs:
      template: ${ovhtemplate}
    

    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:index/getInstallationTemplate:getInstallationTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TemplateName string
    The name of the template.
    TemplateName string
    The name of the template.
    templateName String
    The name of the template.
    templateName string
    The name of the template.
    template_name str
    The name of the template.
    templateName String
    The name of the template.

    getInstallationTemplate Result

    The following output properties are available:

    BitFormat int
    Template bit format (32 or 64).
    Category string
    Category of this template (informative only).
    Description string
    Information about this template.
    Distribution string
    Distribution this template is based on.
    EndOfInstall string
    End of install date of the template.
    Family string
    Template family type.
    Filesystems List<string>
    Filesystems available.
    HardRaidConfiguration bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Inputs List<GetInstallationTemplateInput>
    Represents the questions of the expected answers in the userMetadata field.
    Licenses List<GetInstallationTemplateLicense>
    License available for this template.
    LvmReady bool
    Whether this template supports LVM.
    NoPartitioning bool
    Partitioning customization is not available for this OS template.
    Projects List<GetInstallationTemplateProject>
    Distribution project details.
    SoftRaidOnlyMirroring bool
    Template supports RAID0 and RAID1 on 2 disks.
    Subfamily string
    Subfamily of the template.
    TemplateName string
    BitFormat int
    Template bit format (32 or 64).
    Category string
    Category of this template (informative only).
    Description string
    Information about this template.
    Distribution string
    Distribution this template is based on.
    EndOfInstall string
    End of install date of the template.
    Family string
    Template family type.
    Filesystems []string
    Filesystems available.
    HardRaidConfiguration bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Inputs []GetInstallationTemplateInput
    Represents the questions of the expected answers in the userMetadata field.
    Licenses []GetInstallationTemplateLicense
    License available for this template.
    LvmReady bool
    Whether this template supports LVM.
    NoPartitioning bool
    Partitioning customization is not available for this OS template.
    Projects []GetInstallationTemplateProject
    Distribution project details.
    SoftRaidOnlyMirroring bool
    Template supports RAID0 and RAID1 on 2 disks.
    Subfamily string
    Subfamily of the template.
    TemplateName string
    bitFormat Integer
    Template bit format (32 or 64).
    category String
    Category of this template (informative only).
    description String
    Information about this template.
    distribution String
    Distribution this template is based on.
    endOfInstall String
    End of install date of the template.
    family String
    Template family type.
    filesystems List<String>
    Filesystems available.
    hardRaidConfiguration Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    inputs List<GetInstallationTemplateInput>
    Represents the questions of the expected answers in the userMetadata field.
    licenses List<GetInstallationTemplateLicense>
    License available for this template.
    lvmReady Boolean
    Whether this template supports LVM.
    noPartitioning Boolean
    Partitioning customization is not available for this OS template.
    projects List<GetInstallationTemplateProject>
    Distribution project details.
    softRaidOnlyMirroring Boolean
    Template supports RAID0 and RAID1 on 2 disks.
    subfamily String
    Subfamily of the template.
    templateName String
    bitFormat number
    Template bit format (32 or 64).
    category string
    Category of this template (informative only).
    description string
    Information about this template.
    distribution string
    Distribution this template is based on.
    endOfInstall string
    End of install date of the template.
    family string
    Template family type.
    filesystems string[]
    Filesystems available.
    hardRaidConfiguration boolean
    id string
    The provider-assigned unique ID for this managed resource.
    inputs GetInstallationTemplateInput[]
    Represents the questions of the expected answers in the userMetadata field.
    licenses GetInstallationTemplateLicense[]
    License available for this template.
    lvmReady boolean
    Whether this template supports LVM.
    noPartitioning boolean
    Partitioning customization is not available for this OS template.
    projects GetInstallationTemplateProject[]
    Distribution project details.
    softRaidOnlyMirroring boolean
    Template supports RAID0 and RAID1 on 2 disks.
    subfamily string
    Subfamily of the template.
    templateName string
    bit_format int
    Template bit format (32 or 64).
    category str
    Category of this template (informative only).
    description str
    Information about this template.
    distribution str
    Distribution this template is based on.
    end_of_install str
    End of install date of the template.
    family str
    Template family type.
    filesystems Sequence[str]
    Filesystems available.
    hard_raid_configuration bool
    id str
    The provider-assigned unique ID for this managed resource.
    inputs Sequence[GetInstallationTemplateInput]
    Represents the questions of the expected answers in the userMetadata field.
    licenses Sequence[GetInstallationTemplateLicense]
    License available for this template.
    lvm_ready bool
    Whether this template supports LVM.
    no_partitioning bool
    Partitioning customization is not available for this OS template.
    projects Sequence[GetInstallationTemplateProject]
    Distribution project details.
    soft_raid_only_mirroring bool
    Template supports RAID0 and RAID1 on 2 disks.
    subfamily str
    Subfamily of the template.
    template_name str
    bitFormat Number
    Template bit format (32 or 64).
    category String
    Category of this template (informative only).
    description String
    Information about this template.
    distribution String
    Distribution this template is based on.
    endOfInstall String
    End of install date of the template.
    family String
    Template family type.
    filesystems List<String>
    Filesystems available.
    hardRaidConfiguration Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    inputs List<Property Map>
    Represents the questions of the expected answers in the userMetadata field.
    licenses List<Property Map>
    License available for this template.
    lvmReady Boolean
    Whether this template supports LVM.
    noPartitioning Boolean
    Partitioning customization is not available for this OS template.
    projects List<Property Map>
    Distribution project details.
    softRaidOnlyMirroring Boolean
    Template supports RAID0 and RAID1 on 2 disks.
    subfamily String
    Subfamily of the template.
    templateName String

    Supporting Types

    GetInstallationTemplateInput

    Default string
    Description string
    Information about this template.
    Enums List<string>
    Mandatory bool
    Name string
    Type string
    Default string
    Description string
    Information about this template.
    Enums []string
    Mandatory bool
    Name string
    Type string
    default_ String
    description String
    Information about this template.
    enums List<String>
    mandatory Boolean
    name String
    type String
    default string
    description string
    Information about this template.
    enums string[]
    mandatory boolean
    name string
    type string
    default str
    description str
    Information about this template.
    enums Sequence[str]
    mandatory bool
    name str
    type str
    default String
    description String
    Information about this template.
    enums List<String>
    mandatory Boolean
    name String
    type String

    GetInstallationTemplateLicense

    GetInstallationTemplateLicenseO

    Names List<string>
    Url string
    Names []string
    Url string
    names List<String>
    url String
    names string[]
    url string
    names Sequence[str]
    url str
    names List<String>
    url String

    GetInstallationTemplateLicenseUsage

    Names List<string>
    Url string
    Names []string
    Url string
    names List<String>
    url String
    names string[]
    url string
    names Sequence[str]
    url str
    names List<String>
    url String

    GetInstallationTemplateProject

    os List<Property Map>
    OS template project OS details
    usages List<Property Map>

    GetInstallationTemplateProjectO

    Governances List<string>
    OS template project item governance
    Name string
    OS template project item name
    ReleaseNotes string
    OS template project item release notes
    Url string
    OS template project item url
    Version string
    OS template project item version
    Governances []string
    OS template project item governance
    Name string
    OS template project item name
    ReleaseNotes string
    OS template project item release notes
    Url string
    OS template project item url
    Version string
    OS template project item version
    governances List<String>
    OS template project item governance
    name String
    OS template project item name
    releaseNotes String
    OS template project item release notes
    url String
    OS template project item url
    version String
    OS template project item version
    governances string[]
    OS template project item governance
    name string
    OS template project item name
    releaseNotes string
    OS template project item release notes
    url string
    OS template project item url
    version string
    OS template project item version
    governances Sequence[str]
    OS template project item governance
    name str
    OS template project item name
    release_notes str
    OS template project item release notes
    url str
    OS template project item url
    version str
    OS template project item version
    governances List<String>
    OS template project item governance
    name String
    OS template project item name
    releaseNotes String
    OS template project item release notes
    url String
    OS template project item url
    version String
    OS template project item version

    GetInstallationTemplateProjectUsage

    Governances List<string>
    OS template project item governance
    Name string
    OS template project item name
    ReleaseNotes string
    OS template project item release notes
    Url string
    OS template project item url
    Version string
    OS template project item version
    Governances []string
    OS template project item governance
    Name string
    OS template project item name
    ReleaseNotes string
    OS template project item release notes
    Url string
    OS template project item url
    Version string
    OS template project item version
    governances List<String>
    OS template project item governance
    name String
    OS template project item name
    releaseNotes String
    OS template project item release notes
    url String
    OS template project item url
    version String
    OS template project item version
    governances string[]
    OS template project item governance
    name string
    OS template project item name
    releaseNotes string
    OS template project item release notes
    url string
    OS template project item url
    version string
    OS template project item version
    governances Sequence[str]
    OS template project item governance
    name str
    OS template project item name
    release_notes str
    OS template project item release notes
    url str
    OS template project item url
    version str
    OS template project item version
    governances List<String>
    OS template project item governance
    name String
    OS template project item name
    releaseNotes String
    OS template project item release notes
    url String
    OS template project item url
    version String
    OS template project item version

    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.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud