Show / Hide Table of Contents

Class Backup

A full or incremental copy of a DB System which can be used to create a new DB System or recover a DB System.
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.

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

Properties

BackupSizeInGBs

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

The size of the backup in base-2 (IEC) gibibytes. (GiB).

BackupType

Declaration
[Required(ErrorMessage = "BackupType is required.")]
[JsonProperty(PropertyName = "backupType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Backup.BackupTypeEnum? BackupType { get; set; }
Property Value
Type Description
Backup.BackupTypeEnum?

The type of backup.

Remarks

Required

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.

Remarks

Required

CreationType

Declaration
[Required(ErrorMessage = "CreationType is required.")]
[JsonProperty(PropertyName = "creationType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Backup.CreationTypeEnum? CreationType { get; set; }
Property Value
Type Description
Backup.CreationTypeEnum?

Indicates how the backup was created: manually, automatic, or by an Operator.

Remarks

Required

DataStorageSizeInGBs

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

Initial size of the data volume in GiBs.

DbSystemId

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

The OCID of the DB System the backup is associated with.

Remarks

Required

DbSystemSnapshot

Declaration
[JsonProperty(PropertyName = "dbSystemSnapshot")]
public DbSystemSnapshot DbSystemSnapshot { get; set; }
Property Value
Type Description
DbSystemSnapshot

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. Example: {"foo-namespace": {"bar-key": "value"}}

Description

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

A user-supplied description for the backup.

DisplayName

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

A user-supplied display name for the backup.

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id

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

OCID of the backup itself

Remarks

Required

ImmediateSourceBackupId

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

The OCID of the immediate source DB system backup from which this DB system backup was copied.

LifecycleDetails

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

Additional information about the current lifecycleState.

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Backup.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
Backup.LifecycleStateEnum?

The state of the backup.

Remarks

Required

MysqlVersion

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

The MySQL server version of the DB System used for backup.

OriginalSourceBackupId

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

The OCID of the original source DB system backup from which this DB system backup was copied.

RetentionInDays

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

Number of days to retain this backup.

ShapeName

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

The shape of the DB System used for backup.

SoftDelete

Declaration
[JsonProperty(PropertyName = "softDelete")]
[JsonConverter(typeof(ResponseEnumConverter))]
public SoftDelete? SoftDelete { get; set; }
Property Value
Type Description
SoftDelete?

Retains the backup to be deleted due to the retention policy in DELETE SCHEDULED state for 7 days before permanently deleting it.

SystemTags

Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}}

TimeCopyCreated

Declaration
[JsonProperty(PropertyName = "timeCopyCreated")]
public DateTime? TimeCopyCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the DB system backup copy was created, as described by RFC 3339.

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The time the backup record was created.

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The time at which the backup was updated.

Remarks

Required

In this article
Back to top