CreateResolverVnicEndpointDetails

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

Bases: oci.dns.models.create_resolver_endpoint_details.CreateResolverEndpointDetails

The body for defining a new resolver VNIC endpoint. Either isForwarding or isListening must be true but not both. If a listeningAddress is not provided then one will be chosen automatically. If isForwarding is true then a forwardingAddress may be provided. If one is not then one will be chosen automatically. A listeningAddress will be consumed regardless of if the resolver is configured for listening or not.

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

Attributes

ENDPOINT_TYPE_VNIC str(object=’’) -> str
endpoint_type Gets the endpoint_type of this CreateResolverEndpointDetails.
forwarding_address Gets the forwarding_address of this CreateResolverEndpointDetails.
is_forwarding [Required] Gets the is_forwarding of this CreateResolverEndpointDetails.
is_listening [Required] Gets the is_listening of this CreateResolverEndpointDetails.
listening_address Gets the listening_address of this CreateResolverEndpointDetails.
name [Required] Gets the name of this CreateResolverEndpointDetails.
nsg_ids Gets the nsg_ids of this CreateResolverVnicEndpointDetails.
subnet_id [Required] Gets the subnet_id of this CreateResolverVnicEndpointDetails.

Methods

__init__(**kwargs) Initializes a new CreateResolverVnicEndpointDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
ENDPOINT_TYPE_VNIC = 'VNIC'
__init__(**kwargs)

Initializes a new CreateResolverVnicEndpointDetails object with values from keyword arguments. The default value of the endpoint_type attribute of this class is VNIC and it should not be changed. 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 CreateResolverVnicEndpointDetails.
  • endpoint_type (str) – The value to assign to the endpoint_type property of this CreateResolverVnicEndpointDetails. Allowed values for this property are: “VNIC”
  • forwarding_address (str) – The value to assign to the forwarding_address property of this CreateResolverVnicEndpointDetails.
  • is_forwarding (bool) – The value to assign to the is_forwarding property of this CreateResolverVnicEndpointDetails.
  • is_listening (bool) – The value to assign to the is_listening property of this CreateResolverVnicEndpointDetails.
  • listening_address (str) – The value to assign to the listening_address property of this CreateResolverVnicEndpointDetails.
  • subnet_id (str) – The value to assign to the subnet_id property of this CreateResolverVnicEndpointDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateResolverVnicEndpointDetails.
endpoint_type

Gets the endpoint_type of this CreateResolverEndpointDetails. The type of resolver endpoint. VNIC is currently the only supported type.

Allowed values for this property are: “VNIC”

Returns:The endpoint_type of this CreateResolverEndpointDetails.
Return type:str
forwarding_address

Gets the forwarding_address of this CreateResolverEndpointDetails. An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.

Returns:The forwarding_address of this CreateResolverEndpointDetails.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

is_forwarding

[Required] Gets the is_forwarding of this CreateResolverEndpointDetails. A Boolean flag indicating whether or not the resolver endpoint is for forwarding.

Returns:The is_forwarding of this CreateResolverEndpointDetails.
Return type:bool
is_listening

[Required] Gets the is_listening of this CreateResolverEndpointDetails. A Boolean flag indicating whether or not the resolver endpoint is for listening.

Returns:The is_listening of this CreateResolverEndpointDetails.
Return type:bool
listening_address

Gets the listening_address of this CreateResolverEndpointDetails. An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified.

Returns:The listening_address of this CreateResolverEndpointDetails.
Return type:str
name

[Required] Gets the name of this CreateResolverEndpointDetails. The name of the resolver endpoint. Must be unique within the resolver.

Returns:The name of this CreateResolverEndpointDetails.
Return type:str
nsg_ids

Gets the nsg_ids of this CreateResolverVnicEndpointDetails. An array of NSG OCIDs for the resolver endpoint.

Returns:The nsg_ids of this CreateResolverVnicEndpointDetails.
Return type:list[str]
subnet_id

[Required] Gets the subnet_id of this CreateResolverVnicEndpointDetails. The OCID of a subnet. Must be part of the VCN that the resolver is attached to.

Returns:The subnet_id of this CreateResolverVnicEndpointDetails.
Return type:str