OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.getInstallationTemplate
Explore with Pulumi AI
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:
- Template
Name string - The name of the template.
- Template
Name string - The name of the template.
- template
Name String - The name of the template.
- template
Name string - The name of the template.
- template_
name str - The name of the template.
- template
Name String - The name of the template.
getInstallationTemplate Result
The following output properties are available:
- Bit
Format 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.
- End
Of stringInstall - End of install date of the template.
- Family string
- Template family type.
- Filesystems List<string>
- Filesystems available.
- Hard
Raid boolConfiguration - Id string
- The provider-assigned unique ID for this managed resource.
- Inputs
List<Get
Installation Template Input> - Represents the questions of the expected answers in the userMetadata field.
- Licenses
List<Get
Installation Template License> - 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
List<Get
Installation Template Project> - Distribution project details.
- Soft
Raid boolOnly Mirroring - Template supports RAID0 and RAID1 on 2 disks.
- Subfamily string
- Subfamily of the template.
- Template
Name string
- Bit
Format 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.
- End
Of stringInstall - End of install date of the template.
- Family string
- Template family type.
- Filesystems []string
- Filesystems available.
- Hard
Raid boolConfiguration - Id string
- The provider-assigned unique ID for this managed resource.
- Inputs
[]Get
Installation Template Input - Represents the questions of the expected answers in the userMetadata field.
- Licenses
[]Get
Installation Template License - 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
[]Get
Installation Template Project - Distribution project details.
- Soft
Raid boolOnly Mirroring - Template supports RAID0 and RAID1 on 2 disks.
- Subfamily string
- Subfamily of the template.
- Template
Name string
- bit
Format 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.
- end
Of StringInstall - End of install date of the template.
- family String
- Template family type.
- filesystems List<String>
- Filesystems available.
- hard
Raid BooleanConfiguration - id String
- The provider-assigned unique ID for this managed resource.
- inputs
List<Get
Installation Template Input> - Represents the questions of the expected answers in the userMetadata field.
- licenses
List<Get
Installation Template License> - License available for this template.
- lvm
Ready Boolean - Whether this template supports LVM.
- no
Partitioning Boolean - Partitioning customization is not available for this OS template.
- projects
List<Get
Installation Template Project> - Distribution project details.
- soft
Raid BooleanOnly Mirroring - Template supports RAID0 and RAID1 on 2 disks.
- subfamily String
- Subfamily of the template.
- template
Name String
- bit
Format 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.
- end
Of stringInstall - End of install date of the template.
- family string
- Template family type.
- filesystems string[]
- Filesystems available.
- hard
Raid booleanConfiguration - id string
- The provider-assigned unique ID for this managed resource.
- inputs
Get
Installation Template Input[] - Represents the questions of the expected answers in the userMetadata field.
- licenses
Get
Installation Template License[] - License available for this template.
- lvm
Ready boolean - Whether this template supports LVM.
- no
Partitioning boolean - Partitioning customization is not available for this OS template.
- projects
Get
Installation Template Project[] - Distribution project details.
- soft
Raid booleanOnly Mirroring - Template supports RAID0 and RAID1 on 2 disks.
- subfamily string
- Subfamily of the template.
- template
Name 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_ strinstall - End of install date of the template.
- family str
- Template family type.
- filesystems Sequence[str]
- Filesystems available.
- hard_
raid_ boolconfiguration - id str
- The provider-assigned unique ID for this managed resource.
- inputs
Sequence[Get
Installation Template Input] - Represents the questions of the expected answers in the userMetadata field.
- licenses
Sequence[Get
Installation Template License] - 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[Get
Installation Template Project] - Distribution project details.
- soft_
raid_ boolonly_ mirroring - Template supports RAID0 and RAID1 on 2 disks.
- subfamily str
- Subfamily of the template.
- template_
name str
- bit
Format 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.
- end
Of StringInstall - End of install date of the template.
- family String
- Template family type.
- filesystems List<String>
- Filesystems available.
- hard
Raid BooleanConfiguration - 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.
- lvm
Ready Boolean - Whether this template supports LVM.
- no
Partitioning Boolean - Partitioning customization is not available for this OS template.
- projects List<Property Map>
- Distribution project details.
- soft
Raid BooleanOnly Mirroring - Template supports RAID0 and RAID1 on 2 disks.
- subfamily String
- Subfamily of the template.
- template
Name String
Supporting Types
GetInstallationTemplateInput
GetInstallationTemplateLicense
GetInstallationTemplateLicenseO
GetInstallationTemplateLicenseUsage
GetInstallationTemplateProject
- Os
List<Get
Installation Template Project O> - OS template project OS details
- Usages
List<Get
Installation Template Project Usage>
- Os
[]Get
Installation Template Project O - OS template project OS details
- Usages
[]Get
Installation Template Project Usage
- os
List<Get
Installation Template Project O> - OS template project OS details
- usages
List<Get
Installation Template Project Usage>
- os
Get
Installation Template Project O[] - OS template project OS details
- usages
Get
Installation Template Project Usage[]
- os
Sequence[Get
Installation Template Project O] - OS template project OS details
- usages
Sequence[Get
Installation Template Project Usage]
- 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
- Release
Notes 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
- Release
Notes 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
- release
Notes 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
- release
Notes 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
- release
Notes 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
- Release
Notes 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
- Release
Notes 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
- release
Notes 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
- release
Notes 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
- release
Notes 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.