Show / Hide Table of Contents

Class VolumeMount

Define the mapping from volume to a mount path in container.

Inheritance
object
VolumeMount
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ContainerinstancesService.Models
Assembly: OCI.DotNetSDK.Containerinstances.dll
Syntax
public class VolumeMount

Properties

IsReadOnly

Declaration
[JsonProperty(PropertyName = "isReadOnly")]
public bool? IsReadOnly { get; set; }
Property Value
Type Description
bool?

Whether the volume was mounted in read-only mode. By default, the volume is mounted with write access.

MountPath

Declaration
[Required(ErrorMessage = "MountPath is required.")]
[JsonProperty(PropertyName = "mountPath")]
public string MountPath { get; set; }
Property Value
Type Description
string

Describes the volume access path.

Remarks

Required

Partition

Declaration
[JsonProperty(PropertyName = "partition")]
public int? Partition { get; set; }
Property Value
Type Description
int?

If there is more than one partition in the volume, reference this number of partitions. Here is an Example: Number Start End Size File system Name Flags1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp2 106MB 1180MB 1074MB xfs3 1180MB 50.0GB 48.8GB lvm

SubPath

Declaration
[JsonProperty(PropertyName = "subPath")]
public string SubPath { get; set; }
Property Value
Type Description
string

A sub-path inside the referenced volume.

VolumeName

Declaration
[Required(ErrorMessage = "VolumeName is required.")]
[JsonProperty(PropertyName = "volumeName")]
public string VolumeName { get; set; }
Property Value
Type Description
string

The name of the volume.

Remarks

Required

In this article
Back to top