Skip to main content

DockerVolume

Resource DockerVolume in pulumi-portainer.
7 min read

Resource DockerVolume in pulumi-portainer.

Pulumi type: portainer:index/dockerVolume:DockerVolume.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
clusterVolumeSpecsDockerVolumeClusterVolumeSpec (input)[]noSpecification for a Swarm cluster volume (CSI-backed volume managed by Docker Swarm).
dockerVolumeIdstringno
driverstringnoDriver used by the Docker volume (e.g., local, nfs, btrfs).
driverOpts{ [key: string]: string }noDriver-specific options passed to the Docker volume driver.
endpointIdnumberyesID of the Portainer environment (Docker host or Swarm) where the volume is created.
labels{ [key: string]: string }noKey/value labels attached to the Docker volume.
namestringnoName of the Docker volume.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
clusterVolumeSpecsDockerVolumeClusterVolumeSpec (output)[]noSpecification for a Swarm cluster volume (CSI-backed volume managed by Docker Swarm).
dockerVolumeIdstringno
driverstringnoDriver used by the Docker volume (e.g., local, nfs, btrfs).
driverOpts{ [key: string]: string }noDriver-specific options passed to the Docker volume driver.
endpointIdnumbernoID of the Portainer environment (Docker host or Swarm) where the volume is created.
labels{ [key: string]: string }noKey/value labels attached to the Docker volume.
namestringnoName of the Docker volume.
resourceControlIdnumberyesID of the Portainer resource control associated with this Docker volume.

DockerVolumeClusterVolumeSpec (input)#

Input object DockerVolumeClusterVolumeSpec. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
accessModeDockerVolumeClusterVolumeSpecAccessMode (input)noAccess mode describing how the cluster volume may be mounted by tasks.
accessibilityRequirementsDockerVolumeClusterVolumeSpecAccessibilityRequirements (input)noTopology constraints describing where the cluster volume can be accessed.
availabilitystringnoAvailability of the cluster volume (active, pause, or drain).
capacityRangeDockerVolumeClusterVolumeSpecCapacityRange (input)noCapacity bounds requested for the cluster volume.
groupstringnoGroup name used to associate related cluster volumes.
secretsDockerVolumeClusterVolumeSpecSecret (input)[]noSecrets passed to the CSI plugin when provisioning the cluster volume.

DockerVolumeClusterVolumeSpecAccessMode (input)#

Input object DockerVolumeClusterVolumeSpecAccessMode. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
mountVolume{ [key: string]: string }noFilesystem mount options applied when the cluster volume is attached.
scopestringnoScope of the cluster volume access (e.g., single or multi node).
sharingstringnoSharing mode for the cluster volume (e.g., none, readonly, onewriter, all).

DockerVolumeClusterVolumeSpecAccessibilityRequirements (input)#

Input object DockerVolumeClusterVolumeSpecAccessibilityRequirements. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
preferredsDockerVolumeClusterVolumeSpecAccessibilityRequirementsPreferred (input)[]noTopologies in which the cluster volume should preferably be accessible.
requisitesDockerVolumeClusterVolumeSpecAccessibilityRequirementsRequisite (input)[]noTopologies in which the cluster volume must be accessible.

DockerVolumeClusterVolumeSpecAccessibilityRequirementsPreferred (input)#

Input object DockerVolumeClusterVolumeSpecAccessibilityRequirementsPreferred. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
property1stringnoFirst topology key/value pair describing a preferred location.
property2stringnoSecond topology key/value pair describing a preferred location.

DockerVolumeClusterVolumeSpecAccessibilityRequirementsRequisite (input)#

Input object DockerVolumeClusterVolumeSpecAccessibilityRequirementsRequisite. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
property1stringnoFirst topology key/value pair describing a required location.
property2stringnoSecond topology key/value pair describing a required location.

DockerVolumeClusterVolumeSpecCapacityRange (input)#

Input object DockerVolumeClusterVolumeSpecCapacityRange. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
limitBytesnumbernoMaximum allowed size of the cluster volume in bytes.
requiredBytesnumbernoMinimum required size of the cluster volume in bytes.

DockerVolumeClusterVolumeSpecSecret (input)#

Input object DockerVolumeClusterVolumeSpecSecret. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
keystringyesKey used by the CSI plugin to identify the secret value.
secretstringyesName of the Docker Swarm secret providing the value.

DockerVolumeClusterVolumeSpec (output)#

Output object DockerVolumeClusterVolumeSpec. Fields below belong to this object.

PropertyTypeAlways presentDescription
accessModeDockerVolumeClusterVolumeSpecAccessMode (output)noAccess mode describing how the cluster volume may be mounted by tasks.
accessibilityRequirementsDockerVolumeClusterVolumeSpecAccessibilityRequirements (output)noTopology constraints describing where the cluster volume can be accessed.
availabilitystringnoAvailability of the cluster volume (active, pause, or drain).
capacityRangeDockerVolumeClusterVolumeSpecCapacityRange (output)noCapacity bounds requested for the cluster volume.
groupstringnoGroup name used to associate related cluster volumes.
secretsDockerVolumeClusterVolumeSpecSecret (output)[]noSecrets passed to the CSI plugin when provisioning the cluster volume.

DockerVolumeClusterVolumeSpecAccessMode (output)#

Output object DockerVolumeClusterVolumeSpecAccessMode. Fields below belong to this object.

PropertyTypeAlways presentDescription
mountVolume{ [key: string]: string }noFilesystem mount options applied when the cluster volume is attached.
scopestringnoScope of the cluster volume access (e.g., single or multi node).
sharingstringnoSharing mode for the cluster volume (e.g., none, readonly, onewriter, all).

DockerVolumeClusterVolumeSpecAccessibilityRequirements (output)#

Output object DockerVolumeClusterVolumeSpecAccessibilityRequirements. Fields below belong to this object.

PropertyTypeAlways presentDescription
preferredsDockerVolumeClusterVolumeSpecAccessibilityRequirementsPreferred (output)[]noTopologies in which the cluster volume should preferably be accessible.
requisitesDockerVolumeClusterVolumeSpecAccessibilityRequirementsRequisite (output)[]noTopologies in which the cluster volume must be accessible.

DockerVolumeClusterVolumeSpecAccessibilityRequirementsPreferred (output)#

Output object DockerVolumeClusterVolumeSpecAccessibilityRequirementsPreferred. Fields below belong to this object.

PropertyTypeAlways presentDescription
property1stringnoFirst topology key/value pair describing a preferred location.
property2stringnoSecond topology key/value pair describing a preferred location.

DockerVolumeClusterVolumeSpecAccessibilityRequirementsRequisite (output)#

Output object DockerVolumeClusterVolumeSpecAccessibilityRequirementsRequisite. Fields below belong to this object.

PropertyTypeAlways presentDescription
property1stringnoFirst topology key/value pair describing a required location.
property2stringnoSecond topology key/value pair describing a required location.

DockerVolumeClusterVolumeSpecCapacityRange (output)#

Output object DockerVolumeClusterVolumeSpecCapacityRange. Fields below belong to this object.

PropertyTypeAlways presentDescription
limitBytesnumbernoMaximum allowed size of the cluster volume in bytes.
requiredBytesnumbernoMinimum required size of the cluster volume in bytes.

DockerVolumeClusterVolumeSpecSecret (output)#

Output object DockerVolumeClusterVolumeSpecSecret. Fields below belong to this object.

PropertyTypeAlways presentDescription
keystringyesKey used by the CSI plugin to identify the secret value.
secretstringyesName of the Docker Swarm secret providing the value.