SteeringPolicyAttachment¶
- class oci.dns.models.SteeringPolicyAttachment(**kwargs)¶
Bases:
objectAn attachment between a steering policy and a domain. An attachment constructs DNS responses using its steering policy instead of the records at its defined domain. Only records of the policy’s covered rtype are blocked at the domain. A domain can have a maximum of one attachment covering any given rtype.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Attributes:
A constant which can be used with the lifecycle_state property of a SteeringPolicyAttachment.
A constant which can be used with the lifecycle_state property of a SteeringPolicyAttachment.
A constant which can be used with the lifecycle_state property of a SteeringPolicyAttachment.
[Required] Gets the compartment_id of this SteeringPolicyAttachment.
[Required] Gets the display_name of this SteeringPolicyAttachment.
[Required] Gets the domain_name of this SteeringPolicyAttachment.
[Required] Gets the id of this SteeringPolicyAttachment.
[Required] Gets the lifecycle_state of this SteeringPolicyAttachment.
[Required] Gets the rtypes of this SteeringPolicyAttachment.
[Required] Gets the steering_policy_id of this SteeringPolicyAttachment.
[Required] Gets the time_created of this SteeringPolicyAttachment.
[Required] Gets the zone_id of this SteeringPolicyAttachment.
Methods:
__init__(**kwargs)Initializes a new SteeringPolicyAttachment object with values from keyword arguments.
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a SteeringPolicyAttachment. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_CREATING = 'CREATING'¶
A constant which can be used with the lifecycle_state property of a SteeringPolicyAttachment. This constant has a value of “CREATING”
- LIFECYCLE_STATE_DELETING = 'DELETING'¶
A constant which can be used with the lifecycle_state property of a SteeringPolicyAttachment. This constant has a value of “DELETING”
- __init__(**kwargs)¶
Initializes a new SteeringPolicyAttachment object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
steering_policy_id (str) – The value to assign to the steering_policy_id property of this SteeringPolicyAttachment.
zone_id (str) – The value to assign to the zone_id property of this SteeringPolicyAttachment.
domain_name (str) – The value to assign to the domain_name property of this SteeringPolicyAttachment.
display_name (str) – The value to assign to the display_name property of this SteeringPolicyAttachment.
rtypes (list[str]) – The value to assign to the rtypes property of this SteeringPolicyAttachment.
compartment_id (str) – The value to assign to the compartment_id property of this SteeringPolicyAttachment.
_self (str) – The value to assign to the _self property of this SteeringPolicyAttachment.
id (str) – The value to assign to the id property of this SteeringPolicyAttachment.
time_created (datetime) – The value to assign to the time_created property of this SteeringPolicyAttachment.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this SteeringPolicyAttachment. Allowed values for this property are: “CREATING”, “ACTIVE”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property compartment_id¶
[Required] Gets the compartment_id of this SteeringPolicyAttachment. The OCID of the compartment containing the steering policy attachment.
- Returns
The compartment_id of this SteeringPolicyAttachment.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this SteeringPolicyAttachment. A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
- Returns
The display_name of this SteeringPolicyAttachment.
- Return type
str
- property domain_name¶
[Required] Gets the domain_name of this SteeringPolicyAttachment. The attached domain within the attached zone.
- Returns
The domain_name of this SteeringPolicyAttachment.
- Return type
str
- property id¶
[Required] Gets the id of this SteeringPolicyAttachment. The OCID of the resource.
- Returns
The id of this SteeringPolicyAttachment.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this SteeringPolicyAttachment. The current state of the resource.
Allowed values for this property are: “CREATING”, “ACTIVE”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this SteeringPolicyAttachment.
- Return type
str
- property rtypes¶
[Required] Gets the rtypes of this SteeringPolicyAttachment. The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.
- Returns
The rtypes of this SteeringPolicyAttachment.
- Return type
list[str]
- property steering_policy_id¶
[Required] Gets the steering_policy_id of this SteeringPolicyAttachment. The OCID of the attached steering policy.
- Returns
The steering_policy_id of this SteeringPolicyAttachment.
- Return type
str
- property time_created¶
[Required] Gets the time_created of this SteeringPolicyAttachment. The date and time the resource was created, expressed in RFC 3339 timestamp format.
Example: 2016-07-22T17:23:59:60Z
- Returns
The time_created of this SteeringPolicyAttachment.
- Return type
datetime
- property zone_id¶
[Required] Gets the zone_id of this SteeringPolicyAttachment. The OCID of the attached zone. Must be a public zone.
- Returns
The zone_id of this SteeringPolicyAttachment.
- Return type
str