Show / Hide Table of Contents

Class RecordOperation

An extension of the existing record resource, describing either a precondition, an add, or a remove. Preconditions check all fields, including read-only data like recordHash and rrsetVersion.

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

Properties

Domain

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

The fully qualified domain name where the record can be located.

IsProtected

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

A Boolean flag indicating whether or not parts of the record are unable to be explicitly managed.

Operation

Declaration
[JsonProperty(PropertyName = "operation")]
[JsonConverter(typeof(StringEnumConverter))]
public RecordOperation.OperationEnum? Operation { get; set; }
Property Value
Type Description
RecordOperation.OperationEnum?

A description of how a record relates to a PATCH operation.

  • REQUIRE indicates a precondition that record data must already exist.

  • PROHIBIT indicates a precondition that record data must not already exist.

  • ADD indicates that record data must exist after successful application.

  • REMOVE indicates that record data must not exist after successful application.

    Note: ADD and REMOVE operations can succeed even if they require no changes when applied, such as when the described records are already present or absent.

    Note: ADD and REMOVE operations can describe changes for more than one record.

    **Example: ** { "domain": "www.example.com", "rtype": "AAAA", "ttl": 60 } specifies a new TTL for every record in the www.example.com AAAA RRSet.

Rdata

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

The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types

RecordHash

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

A unique identifier for the record within its zone.

RrsetVersion

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

The latest version of the record's zone in which its RRSet differs from the preceding version.

Rtype

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

The type of DNS record, such as A or CNAME. For more information, see Resource Record (RR) TYPEs.

Ttl

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

The Time To Live for the record, in seconds. Using a TTL lower than 30 seconds is not recommended.

In this article
Back to top