ExternalServiceAccessPolicyTarget

class oci.service_mesh.models.ExternalServiceAccessPolicyTarget(**kwargs)

Bases: oci.service_mesh.models.access_policy_target.AccessPolicyTarget

External service target that internal virtual services direct traffic to.

Attributes

PROTOCOL_HTTP A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTarget.
PROTOCOL_HTTPS A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTarget.
PROTOCOL_TCP A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTarget.
TYPE_ALL_VIRTUAL_SERVICES str(object=’’) -> str
TYPE_EXTERNAL_SERVICE str(object=’’) -> str
TYPE_INGRESS_GATEWAY str(object=’’) -> str
TYPE_VIRTUAL_SERVICE str(object=’’) -> str
hostnames Gets the hostnames of this ExternalServiceAccessPolicyTarget.
ip_addresses Gets the ip_addresses of this ExternalServiceAccessPolicyTarget.
ports Gets the ports of this ExternalServiceAccessPolicyTarget.
protocol Gets the protocol of this ExternalServiceAccessPolicyTarget.
type [Required] Gets the type of this AccessPolicyTarget.

Methods

__init__(**kwargs) Initializes a new ExternalServiceAccessPolicyTarget 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.
PROTOCOL_HTTP = 'HTTP'

A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTarget. This constant has a value of “HTTP”

PROTOCOL_HTTPS = 'HTTPS'

A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTarget. This constant has a value of “HTTPS”

PROTOCOL_TCP = 'TCP'

A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTarget. This constant has a value of “TCP”

TYPE_ALL_VIRTUAL_SERVICES = 'ALL_VIRTUAL_SERVICES'
TYPE_EXTERNAL_SERVICE = 'EXTERNAL_SERVICE'
TYPE_INGRESS_GATEWAY = 'INGRESS_GATEWAY'
TYPE_VIRTUAL_SERVICE = 'VIRTUAL_SERVICE'
__init__(**kwargs)

Initializes a new ExternalServiceAccessPolicyTarget object with values from keyword arguments. The default value of the type attribute of this class is EXTERNAL_SERVICE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this ExternalServiceAccessPolicyTarget. Allowed values for this property are: “ALL_VIRTUAL_SERVICES”, “VIRTUAL_SERVICE”, “EXTERNAL_SERVICE”, “INGRESS_GATEWAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • hostnames (list[str]) – The value to assign to the hostnames property of this ExternalServiceAccessPolicyTarget.
  • ip_addresses (list[str]) – The value to assign to the ip_addresses property of this ExternalServiceAccessPolicyTarget.
  • ports (list[int]) – The value to assign to the ports property of this ExternalServiceAccessPolicyTarget.
  • protocol (str) – The value to assign to the protocol property of this ExternalServiceAccessPolicyTarget. Allowed values for this property are: “HTTP”, “HTTPS”, “TCP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
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.

hostnames

Gets the hostnames of this ExternalServiceAccessPolicyTarget. The hostnames of the external service. Only applicable for HTTP and HTTPS protocols. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are “www.example.com”, “.example.com”, “.com”, “*”. Hostname “*” can be used to allow all hosts.

Returns:The hostnames of this ExternalServiceAccessPolicyTarget.
Return type:list[str]
ip_addresses

Gets the ip_addresses of this ExternalServiceAccessPolicyTarget. The ipAddresses of the external service in CIDR notation. Only applicable for TCP protocol. All requests matching the given CIDR notation will pass through. In case a wildcard CIDR “0.0.0.0/0” is provided, the same port cannot be used for a virtual service communication.

Returns:The ip_addresses of this ExternalServiceAccessPolicyTarget.
Return type:list[str]
ports

Gets the ports of this ExternalServiceAccessPolicyTarget. Ports exposed by an external service. If left empty all ports will be allowed.

Returns:The ports of this ExternalServiceAccessPolicyTarget.
Return type:list[int]
protocol

Gets the protocol of this ExternalServiceAccessPolicyTarget. Protocol of the external service

Allowed values for this property are: “HTTP”, “HTTPS”, “TCP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The protocol of this ExternalServiceAccessPolicyTarget.
Return type:str
type

[Required] Gets the type of this AccessPolicyTarget. Traffic type of the target.

Allowed values for this property are: “ALL_VIRTUAL_SERVICES”, “VIRTUAL_SERVICE”, “EXTERNAL_SERVICE”, “INGRESS_GATEWAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this AccessPolicyTarget.
Return type:str