Class VolumeBackup
A point-in-time copy of a volume that can then be used to create a new block volume
or recover a block volume. For more information, see
Overview of Cloud Volume Storage.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
talk to an administrator. If you're an administrator who needs to write policies to give users access, see
Getting Started with Policies.
Warning: Oracle recommends that you avoid using any confidential information when you
supply string values using the API.
Inherited Members
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class VolumeBackup
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment that contains the volume backup. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a
namespace. For more information, see Resource Tags.
|
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
Remarks
Required
ExpirationTime
Declaration
[JsonProperty(PropertyName = "expirationTime")]
public DateTime? ExpirationTime { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the volume backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for backups that were created automatically by a scheduled-backup policy. For manually created backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Free-form tags for this resource. Each tag is a simple key-value pair with no
predefined name, type, or namespace. For more information, see Resource Tags.
|
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the volume backup. |
Remarks
Required
KmsKeyId
Declaration
[JsonProperty(PropertyName = "kmsKeyId")]
public string KmsKeyId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the Vault service key which is the master encryption key for the volume backup. For more information about the Vault service and encryption keys, see Overview of Vault service and Using Keys. |
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VolumeBackup.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
VolumeBackup.LifecycleStateEnum? | The current state of a volume backup. |
Remarks
Required
SizeInGBs
Declaration
[JsonProperty(PropertyName = "sizeInGBs")]
public long? SizeInGBs { get; set; }
Property Value
Type | Description |
---|---|
long? | The size of the volume, in GBs. |
SizeInMBs
Declaration
[JsonProperty(PropertyName = "sizeInMBs")]
public long? SizeInMBs { get; set; }
Property Value
Type | Description |
---|---|
long? | The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use sizeInGBs. |
SourceType
Declaration
[JsonProperty(PropertyName = "sourceType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VolumeBackup.SourceTypeEnum? SourceType { get; set; }
Property Value
Type | Description |
---|---|
VolumeBackup.SourceTypeEnum? | Specifies whether the backup was created manually, or via scheduled backup policy. |
SourceVolumeBackupId
Declaration
[JsonProperty(PropertyName = "sourceVolumeBackupId")]
public string SourceVolumeBackupId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the source volume backup. |
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the volume backup was created. This is the time the actual point-in-time image of the volume data was taken. Format defined by RFC3339. |
Remarks
Required
TimeRequestReceived
Declaration
[JsonProperty(PropertyName = "timeRequestReceived")]
public DateTime? TimeRequestReceived { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the request to create the volume backup was received. Format defined by [RFC3339]https://tools.ietf.org/html/rfc3339. |
Type
Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VolumeBackup.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
VolumeBackup.TypeEnum? | The type of a volume backup. |
Remarks
Required
UniqueSizeInGBs
Declaration
[JsonProperty(PropertyName = "uniqueSizeInGBs")]
public long? UniqueSizeInGBs { get; set; }
Property Value
Type | Description |
---|---|
long? | The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space consumed on the volume and whether the backup is full or incremental. |
UniqueSizeInMbs
Declaration
[JsonProperty(PropertyName = "uniqueSizeInMbs")]
public long? UniqueSizeInMbs { get; set; }
Property Value
Type | Description |
---|---|
long? | The size used by the backup, in MBs. It is typically smaller than sizeInMBs, depending on the space consumed on the volume and whether the backup is full or incremental. This field is deprecated. Please use uniqueSizeInGBs. |
VolumeId
Declaration
[JsonProperty(PropertyName = "volumeId")]
public string VolumeId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the volume. |