ovh.Me.InstallationTemplatePartitionScheme
Explore with Pulumi AI
Use this resource to create partition scheme for a custom installation template available for dedicated servers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const mytemplate = new ovh.me.InstallationTemplate("mytemplate", {
baseTemplateName: "debian12_64",
templateName: "mytemplate",
});
const scheme = new ovh.me.InstallationTemplatePartitionScheme("scheme", {
templateName: mytemplate.templateName,
priority: 1,
});
import pulumi
import pulumi_ovh as ovh
mytemplate = ovh.me.InstallationTemplate("mytemplate",
base_template_name="debian12_64",
template_name="mytemplate")
scheme = ovh.me.InstallationTemplatePartitionScheme("scheme",
template_name=mytemplate.template_name,
priority=1)
package main
import (
"github.com/ovh/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("debian12_64"),
TemplateName: pulumi.String("mytemplate"),
})
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var mytemplate = new Ovh.Me.InstallationTemplate("mytemplate", new()
{
BaseTemplateName = "debian12_64",
TemplateName = "mytemplate",
});
var scheme = new Ovh.Me.InstallationTemplatePartitionScheme("scheme", new()
{
TemplateName = mytemplate.TemplateName,
Priority = 1,
});
});
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("debian12_64")
.templateName("mytemplate")
.build());
var scheme = new InstallationTemplatePartitionScheme("scheme", InstallationTemplatePartitionSchemeArgs.builder()
.templateName(mytemplate.templateName())
.priority(1)
.build());
}
}
resources:
mytemplate:
type: ovh:Me:InstallationTemplate
properties:
baseTemplateName: debian12_64
templateName: mytemplate
scheme:
type: ovh:Me:InstallationTemplatePartitionScheme
properties:
templateName: ${mytemplate.templateName}
priority: 1
Create InstallationTemplatePartitionScheme Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstallationTemplatePartitionScheme(name: string, args: InstallationTemplatePartitionSchemeArgs, opts?: CustomResourceOptions);
@overload
def InstallationTemplatePartitionScheme(resource_name: str,
args: InstallationTemplatePartitionSchemeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstallationTemplatePartitionScheme(resource_name: str,
opts: Optional[ResourceOptions] = None,
priority: Optional[int] = None,
template_name: Optional[str] = None,
name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var installationTemplatePartitionSchemeResource = new Ovh.Me.InstallationTemplatePartitionScheme("installationTemplatePartitionSchemeResource", new()
{
Priority = 0,
TemplateName = "string",
Name = "string",
});
example, err := Me.NewInstallationTemplatePartitionScheme(ctx, "installationTemplatePartitionSchemeResource", &Me.InstallationTemplatePartitionSchemeArgs{
Priority: pulumi.Int(0),
TemplateName: pulumi.String("string"),
Name: pulumi.String("string"),
})
var installationTemplatePartitionSchemeResource = new InstallationTemplatePartitionScheme("installationTemplatePartitionSchemeResource", InstallationTemplatePartitionSchemeArgs.builder()
.priority(0)
.templateName("string")
.name("string")
.build());
installation_template_partition_scheme_resource = ovh.me.InstallationTemplatePartitionScheme("installationTemplatePartitionSchemeResource",
priority=0,
template_name="string",
name="string")
const installationTemplatePartitionSchemeResource = new ovh.me.InstallationTemplatePartitionScheme("installationTemplatePartitionSchemeResource", {
priority: 0,
templateName: "string",
name: "string",
});
type: ovh:Me:InstallationTemplatePartitionScheme
properties:
name: string
priority: 0
templateName: string
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).
- Template
Name 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 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).
- template
Name 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).
- template
Name 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).
- template
Name 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.
- 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 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 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).
- template
Name 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).
- template
Name 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).
- template
Name 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.