Manages an SMB/CIFS based storage server in Proxmox VE.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const example = new proxmoxve.storage.CIFS("example", {
cifsId: "example-cifs",
nodes: ["pve"],
server: "10.0.0.20",
share: "proxmox",
username: "cifs-user",
password: "cifs-password",
contents: ["images"],
domain: "WORKGROUP",
subdirectory: "terraform",
preallocation: "metadata",
snapshotAsVolumeChain: true,
backups: {
maxProtectedBackups: 5,
keepDaily: 7,
},
});
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.storage.CIFS("example",
cifs_id="example-cifs",
nodes=["pve"],
server="10.0.0.20",
share="proxmox",
username="cifs-user",
password="cifs-password",
contents=["images"],
domain="WORKGROUP",
subdirectory="terraform",
preallocation="metadata",
snapshot_as_volume_chain=True,
backups={
"max_protected_backups": 5,
"keep_daily": 7,
})
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewCIFS(ctx, "example", &storage.CIFSArgs{
CifsId: pulumi.String("example-cifs"),
Nodes: pulumi.StringArray{
pulumi.String("pve"),
},
Server: pulumi.String("10.0.0.20"),
Share: pulumi.String("proxmox"),
Username: pulumi.String("cifs-user"),
Password: pulumi.String("cifs-password"),
Contents: pulumi.StringArray{
pulumi.String("images"),
},
Domain: pulumi.String("WORKGROUP"),
Subdirectory: pulumi.String("terraform"),
Preallocation: pulumi.String("metadata"),
SnapshotAsVolumeChain: pulumi.Bool(true),
Backups: &storage.CIFSBackupsArgs{
MaxProtectedBackups: pulumi.Int(5),
KeepDaily: pulumi.Int(7),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var example = new ProxmoxVE.Storage.CIFS("example", new()
{
CifsId = "example-cifs",
Nodes = new[]
{
"pve",
},
Server = "10.0.0.20",
Share = "proxmox",
Username = "cifs-user",
Password = "cifs-password",
Contents = new[]
{
"images",
},
Domain = "WORKGROUP",
Subdirectory = "terraform",
Preallocation = "metadata",
SnapshotAsVolumeChain = true,
Backups = new ProxmoxVE.Storage.Inputs.CIFSBackupsArgs
{
MaxProtectedBackups = 5,
KeepDaily = 7,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.Storage.CIFS;
import io.muehlbachler.pulumi.proxmoxve.Storage.CIFSArgs;
import com.pulumi.proxmoxve.Storage.inputs.CIFSBackupsArgs;
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 example = new CIFS("example", CIFSArgs.builder()
.cifsId("example-cifs")
.nodes("pve")
.server("10.0.0.20")
.share("proxmox")
.username("cifs-user")
.password("cifs-password")
.contents("images")
.domain("WORKGROUP")
.subdirectory("terraform")
.preallocation("metadata")
.snapshotAsVolumeChain(true)
.backups(CIFSBackupsArgs.builder()
.maxProtectedBackups(5)
.keepDaily(7)
.build())
.build());
}
}
resources:
example:
type: proxmoxve:Storage:CIFS
properties:
cifsId: example-cifs
nodes:
- pve
server: 10.0.0.20
share: proxmox
username: cifs-user
password: cifs-password
contents:
- images
domain: WORKGROUP
subdirectory: terraform
preallocation: metadata
snapshotAsVolumeChain: true
backups:
maxProtectedBackups: 5
keepDaily: 7
Create CIFS Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CIFS(name: string, args: CIFSArgs, opts?: CustomResourceOptions);@overload
def CIFS(resource_name: str,
args: CIFSArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CIFS(resource_name: str,
opts: Optional[ResourceOptions] = None,
share: Optional[str] = None,
cifs_id: Optional[str] = None,
password: Optional[str] = None,
server: Optional[str] = None,
username: Optional[str] = None,
contents: Optional[Sequence[str]] = None,
disable: Optional[bool] = None,
domain: Optional[str] = None,
nodes: Optional[Sequence[str]] = None,
preallocation: Optional[str] = None,
backups: Optional[CIFSBackupsArgs] = None,
snapshot_as_volume_chain: Optional[bool] = None,
subdirectory: Optional[str] = None)func NewCIFS(ctx *Context, name string, args CIFSArgs, opts ...ResourceOption) (*CIFS, error)public CIFS(string name, CIFSArgs args, CustomResourceOptions? opts = null)type: proxmoxve:Storage:CIFS
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 CIFSArgs
- 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 CIFSArgs
- 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 CIFSArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CIFSArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CIFSArgs
- 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 cifsResource = new ProxmoxVE.Storage.CIFS("cifsResource", new()
{
Share = "string",
CifsId = "string",
Password = "string",
Server = "string",
Username = "string",
Contents = new[]
{
"string",
},
Disable = false,
Domain = "string",
Nodes = new[]
{
"string",
},
Preallocation = "string",
Backups = new ProxmoxVE.Storage.Inputs.CIFSBackupsArgs
{
KeepAll = false,
KeepDaily = 0,
KeepHourly = 0,
KeepLast = 0,
KeepMonthly = 0,
KeepWeekly = 0,
KeepYearly = 0,
MaxProtectedBackups = 0,
},
SnapshotAsVolumeChain = false,
Subdirectory = "string",
});
example, err := storage.NewCIFS(ctx, "cifsResource", &storage.CIFSArgs{
Share: pulumi.String("string"),
CifsId: pulumi.String("string"),
Password: pulumi.String("string"),
Server: pulumi.String("string"),
Username: pulumi.String("string"),
Contents: pulumi.StringArray{
pulumi.String("string"),
},
Disable: pulumi.Bool(false),
Domain: pulumi.String("string"),
Nodes: pulumi.StringArray{
pulumi.String("string"),
},
Preallocation: pulumi.String("string"),
Backups: &storage.CIFSBackupsArgs{
KeepAll: pulumi.Bool(false),
KeepDaily: pulumi.Int(0),
KeepHourly: pulumi.Int(0),
KeepLast: pulumi.Int(0),
KeepMonthly: pulumi.Int(0),
KeepWeekly: pulumi.Int(0),
KeepYearly: pulumi.Int(0),
MaxProtectedBackups: pulumi.Int(0),
},
SnapshotAsVolumeChain: pulumi.Bool(false),
Subdirectory: pulumi.String("string"),
})
var cifsResource = new CIFS("cifsResource", CIFSArgs.builder()
.share("string")
.cifsId("string")
.password("string")
.server("string")
.username("string")
.contents("string")
.disable(false)
.domain("string")
.nodes("string")
.preallocation("string")
.backups(CIFSBackupsArgs.builder()
.keepAll(false)
.keepDaily(0)
.keepHourly(0)
.keepLast(0)
.keepMonthly(0)
.keepWeekly(0)
.keepYearly(0)
.maxProtectedBackups(0)
.build())
.snapshotAsVolumeChain(false)
.subdirectory("string")
.build());
cifs_resource = proxmoxve.storage.CIFS("cifsResource",
share="string",
cifs_id="string",
password="string",
server="string",
username="string",
contents=["string"],
disable=False,
domain="string",
nodes=["string"],
preallocation="string",
backups={
"keep_all": False,
"keep_daily": 0,
"keep_hourly": 0,
"keep_last": 0,
"keep_monthly": 0,
"keep_weekly": 0,
"keep_yearly": 0,
"max_protected_backups": 0,
},
snapshot_as_volume_chain=False,
subdirectory="string")
const cifsResource = new proxmoxve.storage.CIFS("cifsResource", {
share: "string",
cifsId: "string",
password: "string",
server: "string",
username: "string",
contents: ["string"],
disable: false,
domain: "string",
nodes: ["string"],
preallocation: "string",
backups: {
keepAll: false,
keepDaily: 0,
keepHourly: 0,
keepLast: 0,
keepMonthly: 0,
keepWeekly: 0,
keepYearly: 0,
maxProtectedBackups: 0,
},
snapshotAsVolumeChain: false,
subdirectory: "string",
});
type: proxmoxve:Storage:CIFS
properties:
backups:
keepAll: false
keepDaily: 0
keepHourly: 0
keepLast: 0
keepMonthly: 0
keepWeekly: 0
keepYearly: 0
maxProtectedBackups: 0
cifsId: string
contents:
- string
disable: false
domain: string
nodes:
- string
password: string
preallocation: string
server: string
share: string
snapshotAsVolumeChain: false
subdirectory: string
username: string
CIFS Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CIFS resource accepts the following input properties:
- Cifs
Id string - The unique identifier of the storage.
- Password string
- The password for authenticating with the SMB/CIFS server.
- Server string
- The IP address or DNS name of the SMB/CIFS server.
- string
- The name of the SMB/CIFS share.
- Username string
- The username for authenticating with the SMB/CIFS server.
- Backups
Pulumi.
Proxmox VE. Storage. Inputs. CIFSBackups - Configure backup retention settings for the storage type.
- Contents List<string>
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - Disable bool
- Whether the storage is disabled.
- Domain string
- The SMB/CIFS domain.
- Nodes List<string>
- A list of nodes where this storage is available.
- Preallocation string
- The preallocation mode for raw and qcow2 images.
- Snapshot
As boolVolume Chain - Enable support for creating snapshots through volume backing-chains.
- Subdirectory string
- A subdirectory to mount within the share.
- Cifs
Id string - The unique identifier of the storage.
- Password string
- The password for authenticating with the SMB/CIFS server.
- Server string
- The IP address or DNS name of the SMB/CIFS server.
- string
- The name of the SMB/CIFS share.
- Username string
- The username for authenticating with the SMB/CIFS server.
- Backups
CIFSBackups
Args - Configure backup retention settings for the storage type.
- Contents []string
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - Disable bool
- Whether the storage is disabled.
- Domain string
- The SMB/CIFS domain.
- Nodes []string
- A list of nodes where this storage is available.
- Preallocation string
- The preallocation mode for raw and qcow2 images.
- Snapshot
As boolVolume Chain - Enable support for creating snapshots through volume backing-chains.
- Subdirectory string
- A subdirectory to mount within the share.
- cifs
Id String - The unique identifier of the storage.
- password String
- The password for authenticating with the SMB/CIFS server.
- server String
- The IP address or DNS name of the SMB/CIFS server.
- String
- The name of the SMB/CIFS share.
- username String
- The username for authenticating with the SMB/CIFS server.
- backups CIFSBackups
- Configure backup retention settings for the storage type.
- contents List<String>
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable Boolean
- Whether the storage is disabled.
- domain String
- The SMB/CIFS domain.
- nodes List<String>
- A list of nodes where this storage is available.
- preallocation String
- The preallocation mode for raw and qcow2 images.
- snapshot
As BooleanVolume Chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory String
- A subdirectory to mount within the share.
- cifs
Id string - The unique identifier of the storage.
- password string
- The password for authenticating with the SMB/CIFS server.
- server string
- The IP address or DNS name of the SMB/CIFS server.
- string
- The name of the SMB/CIFS share.
- username string
- The username for authenticating with the SMB/CIFS server.
- backups CIFSBackups
- Configure backup retention settings for the storage type.
- contents string[]
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable boolean
- Whether the storage is disabled.
- domain string
- The SMB/CIFS domain.
- nodes string[]
- A list of nodes where this storage is available.
- preallocation string
- The preallocation mode for raw and qcow2 images.
- snapshot
As booleanVolume Chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory string
- A subdirectory to mount within the share.
- cifs_
id str - The unique identifier of the storage.
- password str
- The password for authenticating with the SMB/CIFS server.
- server str
- The IP address or DNS name of the SMB/CIFS server.
- str
- The name of the SMB/CIFS share.
- username str
- The username for authenticating with the SMB/CIFS server.
- backups
CIFSBackups
Args - Configure backup retention settings for the storage type.
- contents Sequence[str]
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable bool
- Whether the storage is disabled.
- domain str
- The SMB/CIFS domain.
- nodes Sequence[str]
- A list of nodes where this storage is available.
- preallocation str
- The preallocation mode for raw and qcow2 images.
- snapshot_
as_ boolvolume_ chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory str
- A subdirectory to mount within the share.
- cifs
Id String - The unique identifier of the storage.
- password String
- The password for authenticating with the SMB/CIFS server.
- server String
- The IP address or DNS name of the SMB/CIFS server.
- String
- The name of the SMB/CIFS share.
- username String
- The username for authenticating with the SMB/CIFS server.
- backups Property Map
- Configure backup retention settings for the storage type.
- contents List<String>
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable Boolean
- Whether the storage is disabled.
- domain String
- The SMB/CIFS domain.
- nodes List<String>
- A list of nodes where this storage is available.
- preallocation String
- The preallocation mode for raw and qcow2 images.
- snapshot
As BooleanVolume Chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory String
- A subdirectory to mount within the share.
Outputs
All input properties are implicitly available as output properties. Additionally, the CIFS resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- Whether the storage is shared across all nodes.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- Whether the storage is shared across all nodes.
- id String
- The provider-assigned unique ID for this managed resource.
- Boolean
- Whether the storage is shared across all nodes.
- id string
- The provider-assigned unique ID for this managed resource.
- boolean
- Whether the storage is shared across all nodes.
- id str
- The provider-assigned unique ID for this managed resource.
- bool
- Whether the storage is shared across all nodes.
- id String
- The provider-assigned unique ID for this managed resource.
- Boolean
- Whether the storage is shared across all nodes.
Look up Existing CIFS Resource
Get an existing CIFS 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?: CIFSState, opts?: CustomResourceOptions): CIFS@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backups: Optional[CIFSBackupsArgs] = None,
cifs_id: Optional[str] = None,
contents: Optional[Sequence[str]] = None,
disable: Optional[bool] = None,
domain: Optional[str] = None,
nodes: Optional[Sequence[str]] = None,
password: Optional[str] = None,
preallocation: Optional[str] = None,
server: Optional[str] = None,
share: Optional[str] = None,
shared: Optional[bool] = None,
snapshot_as_volume_chain: Optional[bool] = None,
subdirectory: Optional[str] = None,
username: Optional[str] = None) -> CIFSfunc GetCIFS(ctx *Context, name string, id IDInput, state *CIFSState, opts ...ResourceOption) (*CIFS, error)public static CIFS Get(string name, Input<string> id, CIFSState? state, CustomResourceOptions? opts = null)public static CIFS get(String name, Output<String> id, CIFSState state, CustomResourceOptions options)resources: _: type: proxmoxve:Storage:CIFS get: id: ${id}- 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.
- Backups
Pulumi.
Proxmox VE. Storage. Inputs. CIFSBackups - Configure backup retention settings for the storage type.
- Cifs
Id string - The unique identifier of the storage.
- Contents List<string>
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - Disable bool
- Whether the storage is disabled.
- Domain string
- The SMB/CIFS domain.
- Nodes List<string>
- A list of nodes where this storage is available.
- Password string
- The password for authenticating with the SMB/CIFS server.
- Preallocation string
- The preallocation mode for raw and qcow2 images.
- Server string
- The IP address or DNS name of the SMB/CIFS server.
- string
- The name of the SMB/CIFS share.
- bool
- Whether the storage is shared across all nodes.
- Snapshot
As boolVolume Chain - Enable support for creating snapshots through volume backing-chains.
- Subdirectory string
- A subdirectory to mount within the share.
- Username string
- The username for authenticating with the SMB/CIFS server.
- Backups
CIFSBackups
Args - Configure backup retention settings for the storage type.
- Cifs
Id string - The unique identifier of the storage.
- Contents []string
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - Disable bool
- Whether the storage is disabled.
- Domain string
- The SMB/CIFS domain.
- Nodes []string
- A list of nodes where this storage is available.
- Password string
- The password for authenticating with the SMB/CIFS server.
- Preallocation string
- The preallocation mode for raw and qcow2 images.
- Server string
- The IP address or DNS name of the SMB/CIFS server.
- string
- The name of the SMB/CIFS share.
- bool
- Whether the storage is shared across all nodes.
- Snapshot
As boolVolume Chain - Enable support for creating snapshots through volume backing-chains.
- Subdirectory string
- A subdirectory to mount within the share.
- Username string
- The username for authenticating with the SMB/CIFS server.
- backups CIFSBackups
- Configure backup retention settings for the storage type.
- cifs
Id String - The unique identifier of the storage.
- contents List<String>
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable Boolean
- Whether the storage is disabled.
- domain String
- The SMB/CIFS domain.
- nodes List<String>
- A list of nodes where this storage is available.
- password String
- The password for authenticating with the SMB/CIFS server.
- preallocation String
- The preallocation mode for raw and qcow2 images.
- server String
- The IP address or DNS name of the SMB/CIFS server.
- String
- The name of the SMB/CIFS share.
- Boolean
- Whether the storage is shared across all nodes.
- snapshot
As BooleanVolume Chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory String
- A subdirectory to mount within the share.
- username String
- The username for authenticating with the SMB/CIFS server.
- backups CIFSBackups
- Configure backup retention settings for the storage type.
- cifs
Id string - The unique identifier of the storage.
- contents string[]
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable boolean
- Whether the storage is disabled.
- domain string
- The SMB/CIFS domain.
- nodes string[]
- A list of nodes where this storage is available.
- password string
- The password for authenticating with the SMB/CIFS server.
- preallocation string
- The preallocation mode for raw and qcow2 images.
- server string
- The IP address or DNS name of the SMB/CIFS server.
- string
- The name of the SMB/CIFS share.
- boolean
- Whether the storage is shared across all nodes.
- snapshot
As booleanVolume Chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory string
- A subdirectory to mount within the share.
- username string
- The username for authenticating with the SMB/CIFS server.
- backups
CIFSBackups
Args - Configure backup retention settings for the storage type.
- cifs_
id str - The unique identifier of the storage.
- contents Sequence[str]
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable bool
- Whether the storage is disabled.
- domain str
- The SMB/CIFS domain.
- nodes Sequence[str]
- A list of nodes where this storage is available.
- password str
- The password for authenticating with the SMB/CIFS server.
- preallocation str
- The preallocation mode for raw and qcow2 images.
- server str
- The IP address or DNS name of the SMB/CIFS server.
- str
- The name of the SMB/CIFS share.
- bool
- Whether the storage is shared across all nodes.
- snapshot_
as_ boolvolume_ chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory str
- A subdirectory to mount within the share.
- username str
- The username for authenticating with the SMB/CIFS server.
- backups Property Map
- Configure backup retention settings for the storage type.
- cifs
Id String - The unique identifier of the storage.
- contents List<String>
- The content types that can be stored on this storage. Valid values:
backup(VM backups),images(VM disk images),import(VM disk images for import),iso(ISO images),rootdir(container root directories),snippets(cloud-init, hook scripts, etc.),vztmpl(container templates). - disable Boolean
- Whether the storage is disabled.
- domain String
- The SMB/CIFS domain.
- nodes List<String>
- A list of nodes where this storage is available.
- password String
- The password for authenticating with the SMB/CIFS server.
- preallocation String
- The preallocation mode for raw and qcow2 images.
- server String
- The IP address or DNS name of the SMB/CIFS server.
- String
- The name of the SMB/CIFS share.
- Boolean
- Whether the storage is shared across all nodes.
- snapshot
As BooleanVolume Chain - Enable support for creating snapshots through volume backing-chains.
- subdirectory String
- A subdirectory to mount within the share.
- username String
- The username for authenticating with the SMB/CIFS server.
Supporting Types
CIFSBackups, CIFSBackupsArgs
- Keep
All bool - Specifies if all backups should be kept, regardless of their age. When set to true, other keep_* attributes must not be set.
- Keep
Daily int - The number of daily backups to keep. Older backups will be removed.
- Keep
Hourly int - The number of hourly backups to keep. Older backups will be removed.
- Keep
Last int - Specifies the number of the most recent backups to keep, regardless of their age.
- Keep
Monthly int - The number of monthly backups to keep. Older backups will be removed.
- Keep
Weekly int - The number of weekly backups to keep. Older backups will be removed.
- Keep
Yearly int - The number of yearly backups to keep. Older backups will be removed.
- Max
Protected intBackups - The maximum number of protected backups per guest. Use '-1' for unlimited.
- Keep
All bool - Specifies if all backups should be kept, regardless of their age. When set to true, other keep_* attributes must not be set.
- Keep
Daily int - The number of daily backups to keep. Older backups will be removed.
- Keep
Hourly int - The number of hourly backups to keep. Older backups will be removed.
- Keep
Last int - Specifies the number of the most recent backups to keep, regardless of their age.
- Keep
Monthly int - The number of monthly backups to keep. Older backups will be removed.
- Keep
Weekly int - The number of weekly backups to keep. Older backups will be removed.
- Keep
Yearly int - The number of yearly backups to keep. Older backups will be removed.
- Max
Protected intBackups - The maximum number of protected backups per guest. Use '-1' for unlimited.
- keep
All Boolean - Specifies if all backups should be kept, regardless of their age. When set to true, other keep_* attributes must not be set.
- keep
Daily Integer - The number of daily backups to keep. Older backups will be removed.
- keep
Hourly Integer - The number of hourly backups to keep. Older backups will be removed.
- keep
Last Integer - Specifies the number of the most recent backups to keep, regardless of their age.
- keep
Monthly Integer - The number of monthly backups to keep. Older backups will be removed.
- keep
Weekly Integer - The number of weekly backups to keep. Older backups will be removed.
- keep
Yearly Integer - The number of yearly backups to keep. Older backups will be removed.
- max
Protected IntegerBackups - The maximum number of protected backups per guest. Use '-1' for unlimited.
- keep
All boolean - Specifies if all backups should be kept, regardless of their age. When set to true, other keep_* attributes must not be set.
- keep
Daily number - The number of daily backups to keep. Older backups will be removed.
- keep
Hourly number - The number of hourly backups to keep. Older backups will be removed.
- keep
Last number - Specifies the number of the most recent backups to keep, regardless of their age.
- keep
Monthly number - The number of monthly backups to keep. Older backups will be removed.
- keep
Weekly number - The number of weekly backups to keep. Older backups will be removed.
- keep
Yearly number - The number of yearly backups to keep. Older backups will be removed.
- max
Protected numberBackups - The maximum number of protected backups per guest. Use '-1' for unlimited.
- keep_
all bool - Specifies if all backups should be kept, regardless of their age. When set to true, other keep_* attributes must not be set.
- keep_
daily int - The number of daily backups to keep. Older backups will be removed.
- keep_
hourly int - The number of hourly backups to keep. Older backups will be removed.
- keep_
last int - Specifies the number of the most recent backups to keep, regardless of their age.
- keep_
monthly int - The number of monthly backups to keep. Older backups will be removed.
- keep_
weekly int - The number of weekly backups to keep. Older backups will be removed.
- keep_
yearly int - The number of yearly backups to keep. Older backups will be removed.
- max_
protected_ intbackups - The maximum number of protected backups per guest. Use '-1' for unlimited.
- keep
All Boolean - Specifies if all backups should be kept, regardless of their age. When set to true, other keep_* attributes must not be set.
- keep
Daily Number - The number of daily backups to keep. Older backups will be removed.
- keep
Hourly Number - The number of hourly backups to keep. Older backups will be removed.
- keep
Last Number - Specifies the number of the most recent backups to keep, regardless of their age.
- keep
Monthly Number - The number of monthly backups to keep. Older backups will be removed.
- keep
Weekly Number - The number of weekly backups to keep. Older backups will be removed.
- keep
Yearly Number - The number of yearly backups to keep. Older backups will be removed.
- max
Protected NumberBackups - The maximum number of protected backups per guest. Use '-1' for unlimited.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
