ovh.Me.InstallationTemplatePartitionScheme

Use this resource to create partition scheme for a custom installation template available for dedicated servers.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var mytemplate = new Ovh.Me.InstallationTemplate("mytemplate", new()
    {
        BaseTemplateName = "centos7_64",
        TemplateName = "mytemplate",
        DefaultLanguage = "fr",
    });

    var scheme = new Ovh.Me.InstallationTemplatePartitionScheme("scheme", new()
    {
        TemplateName = mytemplate.TemplateName,
        Priority = 1,
    });

});
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 {
		mytemplate, err := Me.NewInstallationTemplate(ctx, "mytemplate", &Me.InstallationTemplateArgs{
			BaseTemplateName: pulumi.String("centos7_64"),
			TemplateName:     pulumi.String("mytemplate"),
			DefaultLanguage:  pulumi.String("fr"),
		})
		if err != nil {
			return err
		}
		_, err = Me.NewInstallationTemplatePartitionScheme(ctx, "scheme", &Me.InstallationTemplatePartitionSchemeArgs{
			TemplateName: mytemplate.TemplateName,
			Priority:     pulumi.Int(1),
		})
		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.InstallationTemplate;
import com.pulumi.ovh.Me.InstallationTemplateArgs;
import com.pulumi.ovh.Me.InstallationTemplatePartitionScheme;
import com.pulumi.ovh.Me.InstallationTemplatePartitionSchemeArgs;
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) {
        var mytemplate = new InstallationTemplate("mytemplate", InstallationTemplateArgs.builder()        
            .baseTemplateName("centos7_64")
            .templateName("mytemplate")
            .defaultLanguage("fr")
            .build());

        var scheme = new InstallationTemplatePartitionScheme("scheme", InstallationTemplatePartitionSchemeArgs.builder()        
            .templateName(mytemplate.templateName())
            .priority(1)
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

mytemplate = ovh.me.InstallationTemplate("mytemplate",
    base_template_name="centos7_64",
    template_name="mytemplate",
    default_language="fr")
scheme = ovh.me.InstallationTemplatePartitionScheme("scheme",
    template_name=mytemplate.template_name,
    priority=1)
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@lbrlabs/pulumi-ovh";

const mytemplate = new ovh.me.InstallationTemplate("mytemplate", {
    baseTemplateName: "centos7_64",
    templateName: "mytemplate",
    defaultLanguage: "fr",
});
const scheme = new ovh.me.InstallationTemplatePartitionScheme("scheme", {
    templateName: mytemplate.templateName,
    priority: 1,
});
resources:
  mytemplate:
    type: ovh:Me:InstallationTemplate
    properties:
      baseTemplateName: centos7_64
      templateName: mytemplate
      defaultLanguage: fr
  scheme:
    type: ovh:Me:InstallationTemplatePartitionScheme
    properties:
      templateName: ${mytemplate.templateName}
      priority: 1

Create InstallationTemplatePartitionScheme Resource

new InstallationTemplatePartitionScheme(name: string, args: InstallationTemplatePartitionSchemeArgs, opts?: CustomResourceOptions);
@overload
def InstallationTemplatePartitionScheme(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        name: Optional[str] = None,
                                        priority: Optional[int] = None,
                                        template_name: Optional[str] = None)
@overload
def InstallationTemplatePartitionScheme(resource_name: str,
                                        args: InstallationTemplatePartitionSchemeArgs,
                                        opts: Optional[ResourceOptions] = None)
func NewInstallationTemplatePartitionScheme(ctx *Context, name string, args InstallationTemplatePartitionSchemeArgs, opts ...ResourceOption) (*InstallationTemplatePartitionScheme, error)
public InstallationTemplatePartitionScheme(string name, InstallationTemplatePartitionSchemeArgs args, CustomResourceOptions? opts = null)
public InstallationTemplatePartitionScheme(String name, InstallationTemplatePartitionSchemeArgs args)
public InstallationTemplatePartitionScheme(String name, InstallationTemplatePartitionSchemeArgs args, CustomResourceOptions options)
type: ovh:Me:InstallationTemplatePartitionScheme
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args InstallationTemplatePartitionSchemeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args InstallationTemplatePartitionSchemeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args InstallationTemplatePartitionSchemeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InstallationTemplatePartitionSchemeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args InstallationTemplatePartitionSchemeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

InstallationTemplatePartitionScheme Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The InstallationTemplatePartitionScheme resource accepts the following input properties:

Priority int

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

TemplateName string

The template name of the partition scheme.

Name string

(Required) This partition scheme name.

Priority int

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

TemplateName string

The template name of the partition scheme.

Name string

(Required) This partition scheme name.

priority Integer

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

templateName String

The template name of the partition scheme.

name String

(Required) This partition scheme name.

priority number

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

templateName string

The template name of the partition scheme.

name string

(Required) This partition scheme name.

priority int

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

template_name str

The template name of the partition scheme.

name str

(Required) This partition scheme name.

priority Number

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

templateName String

The template name of the partition scheme.

name String

(Required) This partition scheme name.

Outputs

All input properties are implicitly available as output properties. Additionally, the InstallationTemplatePartitionScheme resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing InstallationTemplatePartitionScheme Resource

Get an existing InstallationTemplatePartitionScheme resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: InstallationTemplatePartitionSchemeState, opts?: CustomResourceOptions): InstallationTemplatePartitionScheme
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        priority: Optional[int] = None,
        template_name: Optional[str] = None) -> InstallationTemplatePartitionScheme
func GetInstallationTemplatePartitionScheme(ctx *Context, name string, id IDInput, state *InstallationTemplatePartitionSchemeState, opts ...ResourceOption) (*InstallationTemplatePartitionScheme, error)
public static InstallationTemplatePartitionScheme Get(string name, Input<string> id, InstallationTemplatePartitionSchemeState? state, CustomResourceOptions? opts = null)
public static InstallationTemplatePartitionScheme get(String name, Output<String> id, InstallationTemplatePartitionSchemeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name string

(Required) This partition scheme name.

Priority int

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

TemplateName string

The template name of the partition scheme.

Name string

(Required) This partition scheme name.

Priority int

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

TemplateName string

The template name of the partition scheme.

name String

(Required) This partition scheme name.

priority Integer

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

templateName String

The template name of the partition scheme.

name string

(Required) This partition scheme name.

priority number

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

templateName string

The template name of the partition scheme.

name str

(Required) This partition scheme name.

priority int

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

template_name str

The template name of the partition scheme.

name String

(Required) This partition scheme name.

priority Number

on a reinstall, if a partitioning scheme is not specified, the one with the higher priority will be used by default, among all the compatible partitioning schemes (given the underlying hardware specifications).

templateName String

The template name of the partition scheme.

Import

The resource can be imported using the template_name, name of the cluster, separated by “/” E.g., bash

 $ pulumi import ovh:Me/installationTemplatePartitionScheme:InstallationTemplatePartitionScheme scheme template_name/name

Package Details

Repository
ovh lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.