1. Packages
  2. OVH
  3. API Docs
  4. Me
  5. InstallationTemplatePartitionSchemePartition
OVHCloud v0.43.1 published on Tuesday, Apr 23, 2024 by OVHcloud

ovh.Me.InstallationTemplatePartitionSchemePartition

Explore with Pulumi AI

ovh logo
OVHCloud v0.43.1 published on Tuesday, Apr 23, 2024 by OVHcloud

    Use this resource to create a partition in the partition scheme of 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,
    });
    const root = new ovh.me.InstallationTemplatePartitionSchemePartition("root", {
        templateName: scheme.templateName,
        schemeName: scheme.name,
        mountpoint: "/",
        filesystem: "ext4",
        size: 400,
        order: 1,
        type: "primary",
    });
    
    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)
    root = ovh.me.InstallationTemplatePartitionSchemePartition("root",
        template_name=scheme.template_name,
        scheme_name=scheme.name,
        mountpoint="/",
        filesystem="ext4",
        size=400,
        order=1,
        type="primary")
    
    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
    		}
    		scheme, err := Me.NewInstallationTemplatePartitionScheme(ctx, "scheme", &Me.InstallationTemplatePartitionSchemeArgs{
    			TemplateName: mytemplate.TemplateName,
    			Priority:     pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = Me.NewInstallationTemplatePartitionSchemePartition(ctx, "root", &Me.InstallationTemplatePartitionSchemePartitionArgs{
    			TemplateName: scheme.TemplateName,
    			SchemeName:   scheme.Name,
    			Mountpoint:   pulumi.String("/"),
    			Filesystem:   pulumi.String("ext4"),
    			Size:         pulumi.Int(400),
    			Order:        pulumi.Int(1),
    			Type:         pulumi.String("primary"),
    		})
    		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,
        });
    
        var root = new Ovh.Me.InstallationTemplatePartitionSchemePartition("root", new()
        {
            TemplateName = scheme.TemplateName,
            SchemeName = scheme.Name,
            Mountpoint = "/",
            Filesystem = "ext4",
            Size = 400,
            Order = 1,
            Type = "primary",
        });
    
    });
    
    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 com.pulumi.ovh.Me.InstallationTemplatePartitionSchemePartition;
    import com.pulumi.ovh.Me.InstallationTemplatePartitionSchemePartitionArgs;
    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());
    
            var root = new InstallationTemplatePartitionSchemePartition("root", InstallationTemplatePartitionSchemePartitionArgs.builder()        
                .templateName(scheme.templateName())
                .schemeName(scheme.name())
                .mountpoint("/")
                .filesystem("ext4")
                .size("400")
                .order(1)
                .type("primary")
                .build());
    
        }
    }
    
    resources:
      mytemplate:
        type: ovh:Me:InstallationTemplate
        properties:
          baseTemplateName: debian12_64
          templateName: mytemplate
      scheme:
        type: ovh:Me:InstallationTemplatePartitionScheme
        properties:
          templateName: ${mytemplate.templateName}
          priority: 1
      root:
        type: ovh:Me:InstallationTemplatePartitionSchemePartition
        properties:
          templateName: ${scheme.templateName}
          schemeName: ${scheme.name}
          mountpoint: /
          filesystem: ext4
          size: '400'
          order: 1
          type: primary
    

    Create InstallationTemplatePartitionSchemePartition Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InstallationTemplatePartitionSchemePartition(name: string, args: InstallationTemplatePartitionSchemePartitionArgs, opts?: CustomResourceOptions);
    @overload
    def InstallationTemplatePartitionSchemePartition(resource_name: str,
                                                     args: InstallationTemplatePartitionSchemePartitionArgs,
                                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstallationTemplatePartitionSchemePartition(resource_name: str,
                                                     opts: Optional[ResourceOptions] = None,
                                                     filesystem: Optional[str] = None,
                                                     mountpoint: Optional[str] = None,
                                                     order: Optional[int] = None,
                                                     scheme_name: Optional[str] = None,
                                                     size: Optional[int] = None,
                                                     template_name: Optional[str] = None,
                                                     type: Optional[str] = None,
                                                     raid: Optional[str] = None,
                                                     volume_name: Optional[str] = None)
    func NewInstallationTemplatePartitionSchemePartition(ctx *Context, name string, args InstallationTemplatePartitionSchemePartitionArgs, opts ...ResourceOption) (*InstallationTemplatePartitionSchemePartition, error)
    public InstallationTemplatePartitionSchemePartition(string name, InstallationTemplatePartitionSchemePartitionArgs args, CustomResourceOptions? opts = null)
    public InstallationTemplatePartitionSchemePartition(String name, InstallationTemplatePartitionSchemePartitionArgs args)
    public InstallationTemplatePartitionSchemePartition(String name, InstallationTemplatePartitionSchemePartitionArgs args, CustomResourceOptions options)
    
    type: ovh:Me:InstallationTemplatePartitionSchemePartition
    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 InstallationTemplatePartitionSchemePartitionArgs
    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 InstallationTemplatePartitionSchemePartitionArgs
    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 InstallationTemplatePartitionSchemePartitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstallationTemplatePartitionSchemePartitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstallationTemplatePartitionSchemePartitionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var installationTemplatePartitionSchemePartitionResource = new Ovh.Me.InstallationTemplatePartitionSchemePartition("installationTemplatePartitionSchemePartitionResource", new()
    {
        Filesystem = "string",
        Mountpoint = "string",
        Order = 0,
        SchemeName = "string",
        Size = 0,
        TemplateName = "string",
        Type = "string",
        Raid = "string",
        VolumeName = "string",
    });
    
    example, err := Me.NewInstallationTemplatePartitionSchemePartition(ctx, "installationTemplatePartitionSchemePartitionResource", &Me.InstallationTemplatePartitionSchemePartitionArgs{
    	Filesystem:   pulumi.String("string"),
    	Mountpoint:   pulumi.String("string"),
    	Order:        pulumi.Int(0),
    	SchemeName:   pulumi.String("string"),
    	Size:         pulumi.Int(0),
    	TemplateName: pulumi.String("string"),
    	Type:         pulumi.String("string"),
    	Raid:         pulumi.String("string"),
    	VolumeName:   pulumi.String("string"),
    })
    
    var installationTemplatePartitionSchemePartitionResource = new InstallationTemplatePartitionSchemePartition("installationTemplatePartitionSchemePartitionResource", InstallationTemplatePartitionSchemePartitionArgs.builder()        
        .filesystem("string")
        .mountpoint("string")
        .order(0)
        .schemeName("string")
        .size(0)
        .templateName("string")
        .type("string")
        .raid("string")
        .volumeName("string")
        .build());
    
    installation_template_partition_scheme_partition_resource = ovh.me.InstallationTemplatePartitionSchemePartition("installationTemplatePartitionSchemePartitionResource",
        filesystem="string",
        mountpoint="string",
        order=0,
        scheme_name="string",
        size=0,
        template_name="string",
        type="string",
        raid="string",
        volume_name="string")
    
    const installationTemplatePartitionSchemePartitionResource = new ovh.me.InstallationTemplatePartitionSchemePartition("installationTemplatePartitionSchemePartitionResource", {
        filesystem: "string",
        mountpoint: "string",
        order: 0,
        schemeName: "string",
        size: 0,
        templateName: "string",
        type: "string",
        raid: "string",
        volumeName: "string",
    });
    
    type: ovh:Me:InstallationTemplatePartitionSchemePartition
    properties:
        filesystem: string
        mountpoint: string
        order: 0
        raid: string
        schemeName: string
        size: 0
        templateName: string
        type: string
        volumeName: string
    

    InstallationTemplatePartitionSchemePartition 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 InstallationTemplatePartitionSchemePartition resource accepts the following input properties:

    Filesystem string
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    Mountpoint string
    partition mount point.
    Order int
    step or order. specifies the creation order of the partition on the disk
    SchemeName string
    The partition scheme name.
    Size int
    size of partition in MB, 0 => rest of the space.
    TemplateName string
    The template name of the partition scheme.
    Type string
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    Raid string
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    VolumeName string
    The volume name needed for proxmox distribution
    Filesystem string
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    Mountpoint string
    partition mount point.
    Order int
    step or order. specifies the creation order of the partition on the disk
    SchemeName string
    The partition scheme name.
    Size int
    size of partition in MB, 0 => rest of the space.
    TemplateName string
    The template name of the partition scheme.
    Type string
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    Raid string
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    VolumeName string
    The volume name needed for proxmox distribution
    filesystem String
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint String
    partition mount point.
    order Integer
    step or order. specifies the creation order of the partition on the disk
    schemeName String
    The partition scheme name.
    size Integer
    size of partition in MB, 0 => rest of the space.
    templateName String
    The template name of the partition scheme.
    type String
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    raid String
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    volumeName String
    The volume name needed for proxmox distribution
    filesystem string
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint string
    partition mount point.
    order number
    step or order. specifies the creation order of the partition on the disk
    schemeName string
    The partition scheme name.
    size number
    size of partition in MB, 0 => rest of the space.
    templateName string
    The template name of the partition scheme.
    type string
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    raid string
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    volumeName string
    The volume name needed for proxmox distribution
    filesystem str
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint str
    partition mount point.
    order int
    step or order. specifies the creation order of the partition on the disk
    scheme_name str
    The partition scheme name.
    size int
    size of partition in MB, 0 => rest of the space.
    template_name str
    The template name of the partition scheme.
    type str
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    raid str
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    volume_name str
    The volume name needed for proxmox distribution
    filesystem String
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint String
    partition mount point.
    order Number
    step or order. specifies the creation order of the partition on the disk
    schemeName String
    The partition scheme name.
    size Number
    size of partition in MB, 0 => rest of the space.
    templateName String
    The template name of the partition scheme.
    type String
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    raid String
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    volumeName String
    The volume name needed for proxmox distribution

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InstallationTemplatePartitionSchemePartition 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 InstallationTemplatePartitionSchemePartition Resource

    Get an existing InstallationTemplatePartitionSchemePartition 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?: InstallationTemplatePartitionSchemePartitionState, opts?: CustomResourceOptions): InstallationTemplatePartitionSchemePartition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            filesystem: Optional[str] = None,
            mountpoint: Optional[str] = None,
            order: Optional[int] = None,
            raid: Optional[str] = None,
            scheme_name: Optional[str] = None,
            size: Optional[int] = None,
            template_name: Optional[str] = None,
            type: Optional[str] = None,
            volume_name: Optional[str] = None) -> InstallationTemplatePartitionSchemePartition
    func GetInstallationTemplatePartitionSchemePartition(ctx *Context, name string, id IDInput, state *InstallationTemplatePartitionSchemePartitionState, opts ...ResourceOption) (*InstallationTemplatePartitionSchemePartition, error)
    public static InstallationTemplatePartitionSchemePartition Get(string name, Input<string> id, InstallationTemplatePartitionSchemePartitionState? state, CustomResourceOptions? opts = null)
    public static InstallationTemplatePartitionSchemePartition get(String name, Output<String> id, InstallationTemplatePartitionSchemePartitionState 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:
    Filesystem string
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    Mountpoint string
    partition mount point.
    Order int
    step or order. specifies the creation order of the partition on the disk
    Raid string
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    SchemeName string
    The partition scheme name.
    Size int
    size of partition in MB, 0 => rest of the space.
    TemplateName string
    The template name of the partition scheme.
    Type string
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    VolumeName string
    The volume name needed for proxmox distribution
    Filesystem string
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    Mountpoint string
    partition mount point.
    Order int
    step or order. specifies the creation order of the partition on the disk
    Raid string
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    SchemeName string
    The partition scheme name.
    Size int
    size of partition in MB, 0 => rest of the space.
    TemplateName string
    The template name of the partition scheme.
    Type string
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    VolumeName string
    The volume name needed for proxmox distribution
    filesystem String
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint String
    partition mount point.
    order Integer
    step or order. specifies the creation order of the partition on the disk
    raid String
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    schemeName String
    The partition scheme name.
    size Integer
    size of partition in MB, 0 => rest of the space.
    templateName String
    The template name of the partition scheme.
    type String
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    volumeName String
    The volume name needed for proxmox distribution
    filesystem string
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint string
    partition mount point.
    order number
    step or order. specifies the creation order of the partition on the disk
    raid string
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    schemeName string
    The partition scheme name.
    size number
    size of partition in MB, 0 => rest of the space.
    templateName string
    The template name of the partition scheme.
    type string
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    volumeName string
    The volume name needed for proxmox distribution
    filesystem str
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint str
    partition mount point.
    order int
    step or order. specifies the creation order of the partition on the disk
    raid str
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    scheme_name str
    The partition scheme name.
    size int
    size of partition in MB, 0 => rest of the space.
    template_name str
    The template name of the partition scheme.
    type str
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    volume_name str
    The volume name needed for proxmox distribution
    filesystem String
    Partition filesystem. Enum with possibles values:

    • btrfs
    • ext3
    • ext4
    • ntfs
    • reiserfs
    • swap
    • ufs
    • xfs
    • zfs
    mountpoint String
    partition mount point.
    order Number
    step or order. specifies the creation order of the partition on the disk
    raid String
    raid partition type. Enum with possible values:

    • raid0
    • raid1
    • raid10
    • raid5
    • raid6
    schemeName String
    The partition scheme name.
    size Number
    size of partition in MB, 0 => rest of the space.
    templateName String
    The template name of the partition scheme.
    type String
    partition type. Enum with possible values:

    • lv
    • primary
    • logical
    volumeName String
    The volume name needed for proxmox distribution

    Import

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

    bash

    $ pulumi import ovh:Me/installationTemplatePartitionSchemePartition:InstallationTemplatePartitionSchemePartition root template_name/scheme_name/mountpoint
    

    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.
    ovh logo
    OVHCloud v0.43.1 published on Tuesday, Apr 23, 2024 by OVHcloud