Skip to content

Resource: proxmox_storage_cifs

Manages an SMB/CIFS based storage server in Proxmox VE.

Schema

Required

  • id (String) The unique identifier of the storage.
  • password (String, Sensitive) The password for authenticating with the SMB/CIFS server.
  • server (String) The IP address or DNS name of the SMB/CIFS server.
  • share (String) The name of the SMB/CIFS share.
  • username (String) The username for authenticating with the SMB/CIFS server.

Optional

  • backups (Block, Optional) Configure backup retention settings for the storage type. (see below for nested schema)
  • content (Set of 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 (Set of String) A list of nodes where this storage is available.
  • preallocation (String) The preallocation mode for raw and qcow2 images.
  • snapshot_as_volume_chain (Boolean) Enable support for creating snapshots through volume backing-chains.
  • subdirectory (String) A subdirectory to mount within the share.

Read-Only

  • shared (Boolean) Whether the storage is shared across all nodes.

Nested Schema for backups

Optional:

  • 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_backups (Number) The maximum number of protected backups per guest. Use '-1' for unlimited.