Class Resolver
An OCI DNS resolver. If the resolver has an attached VCN, the VCN will attempt to answer queries based on the
attached views in priority order. If the query does not match any of the attached views, the query will be
evaluated against the default view. If the default view does not match, the rules will be evaluated in
priority order. If no rules match the query, answers come from Internet DNS. A resolver may have a maximum of 10
resolver endpoints.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Inherited Members
Namespace: Oci.DnsService.Models
Assembly: OCI.DotNetSDK.Dns.dll
Syntax
public class Resolver
Properties
AttachedVcnId
Declaration
[JsonProperty(PropertyName = "attachedVcnId")]
public string AttachedVcnId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the attached VCN. |
AttachedViews
Declaration
[Required(ErrorMessage = "AttachedViews is required.")]
[JsonProperty(PropertyName = "attachedViews")]
public List<AttachedView> AttachedViews { get; set; }
Property Value
Type | Description |
---|---|
List<AttachedView> | The attached views. Views are evaluated in order. |
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 owning compartment. |
Remarks
Required
DefaultViewId
Declaration
[JsonProperty(PropertyName = "defaultViewId")]
public string DefaultViewId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the default view. |
DefinedTags
Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[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.
**Example: ** {"Operations": {"CostCenter": "42"}} |
Remarks
Required
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | The display name of the resolver. |
Remarks
Required
Endpoints
Declaration
[Required(ErrorMessage = "Endpoints is required.")]
[JsonProperty(PropertyName = "endpoints")]
public List<ResolverEndpointSummary> Endpoints { get; set; }
Property Value
Type | Description |
---|---|
List<ResolverEndpointSummary> | Read-only array of endpoints for the resolver. |
Remarks
Required
FreeformTags
Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[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.
**Example: ** {"Department": "Finance"} |
Remarks
Required
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the resolver. |
Remarks
Required
IsProtected
Declaration
[Required(ErrorMessage = "IsProtected is required.")]
[JsonProperty(PropertyName = "isProtected")]
public bool? IsProtected { get; set; }
Property Value
Type | Description |
---|---|
bool? | A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed. |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Resolver.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
Resolver.LifecycleStateEnum? | The current state of the resource. |
Remarks
Required
Rules
Declaration
[JsonProperty(PropertyName = "rules")]
public List<ResolverRule> Rules { get; set; }
Property Value
Type | Description |
---|---|
List<ResolverRule> | Rules for the resolver. Rules are evaluated in order. |
Self
Declaration
[Required(ErrorMessage = "Self is required.")]
[JsonProperty(PropertyName = "self")]
public string Self { get; set; }
Property Value
Type | Description |
---|---|
string | The canonical absolute URL of the resource. |
Remarks
Required
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 resource was created in "YYYY-MM-ddThh:mm:ssZ" format
with a Z offset, as defined by RFC 3339.
|
Remarks
Required
TimeUpdated
Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ"
format with a Z offset, as defined by RFC 3339.
|
Remarks
Required