Zone

class oci.dns.models.Zone(**kwargs)

Bases: object

A DNS zone.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Zone. This constant has a value of "ACTIVE"

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a Zone. This constant has a value of "CREATING"

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a Zone. This constant has a value of "DELETED"

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a Zone. This constant has a value of "DELETING"

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a Zone. This constant has a value of "FAILED"

ZONE_TYPE_PRIMARY = 'PRIMARY'

A constant which can be used with the zone_type property of a Zone. This constant has a value of "PRIMARY"

ZONE_TYPE_SECONDARY = 'SECONDARY'

A constant which can be used with the zone_type property of a Zone. This constant has a value of "SECONDARY"

__init__(**kwargs)

Initializes a new Zone object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) -- The value to assign to the name property of this Zone.
  • zone_type (str) -- The value to assign to the zone_type property of this Zone. Allowed values for this property are: "PRIMARY", "SECONDARY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • compartment_id (str) -- The value to assign to the compartment_id property of this Zone.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this Zone.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this Zone.
  • external_masters (list[ExternalMaster]) -- The value to assign to the external_masters property of this Zone.
  • self_uri (str) -- The value to assign to the self_uri property of this Zone.
  • id (str) -- The value to assign to the id property of this Zone.
  • time_created (datetime) -- The value to assign to the time_created property of this Zone.
  • version (str) -- The value to assign to the version property of this Zone.
  • serial (int) -- The value to assign to the serial property of this Zone.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this Zone. Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • nameservers (list[Nameserver]) -- The value to assign to the nameservers property of this Zone.
compartment_id

Gets the compartment_id of this Zone. The OCID of the compartment containing the zone.

Returns:The compartment_id of this Zone.
Return type:str
defined_tags

Gets the defined_tags of this Zone. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {"Operations": {"CostCenter": "42"}}

Returns:The defined_tags of this Zone.
Return type:dict(str, dict(str, object))
external_masters

Gets the external_masters of this Zone. External master servers for the zone. externalMasters becomes a required parameter when the zoneType value is SECONDARY.

Returns:The external_masters of this Zone.
Return type:list[ExternalMaster]
freeform_tags

Gets the freeform_tags of this Zone. 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"}

Returns:The freeform_tags of this Zone.
Return type:dict(str, str)
id

Gets the id of this Zone. The OCID of the zone.

Returns:The id of this Zone.
Return type:str
lifecycle_state

Gets the lifecycle_state of this Zone. The current state of the zone resource.

Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The lifecycle_state of this Zone.
Return type:str
name

Gets the name of this Zone. The name of the zone.

Returns:The name of this Zone.
Return type:str
nameservers

Gets the nameservers of this Zone. The authoritative nameservers for the zone.

Returns:The nameservers of this Zone.
Return type:list[Nameserver]
self_uri

Gets the self_uri of this Zone. The canonical absolute URL of the resource.

Returns:The self_uri of this Zone.
Return type:str
serial

Gets the serial of this Zone. The current serial of the zone. As seen in the zone's SOA record.

Returns:The serial of this Zone.
Return type:int
time_created

Gets the time_created of this Zone. The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.

Example: 2016-07-22T17:23:59:60Z

Returns:The time_created of this Zone.
Return type:datetime
version

Gets the version of this Zone. Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.

Returns:The version of this Zone.
Return type:str
zone_type

Gets the zone_type of this Zone. The type of the zone. Must be either PRIMARY or SECONDARY.

Allowed values for this property are: "PRIMARY", "SECONDARY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The zone_type of this Zone.
Return type:str