ExternalServiceAccessPolicyTargetDetails¶
-
class
oci.service_mesh.models.
ExternalServiceAccessPolicyTargetDetails
(**kwargs)¶ Bases:
oci.service_mesh.models.access_policy_target_details.AccessPolicyTargetDetails
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 ExternalServiceAccessPolicyTargetDetails. PROTOCOL_HTTPS
A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTargetDetails. PROTOCOL_TCP
A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTargetDetails. 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 ExternalServiceAccessPolicyTargetDetails. ip_addresses
Gets the ip_addresses of this ExternalServiceAccessPolicyTargetDetails. ports
Gets the ports of this ExternalServiceAccessPolicyTargetDetails. protocol
Gets the protocol of this ExternalServiceAccessPolicyTargetDetails. type
[Required] Gets the type of this AccessPolicyTargetDetails. Methods
__init__
(**kwargs)Initializes a new ExternalServiceAccessPolicyTargetDetails 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 ExternalServiceAccessPolicyTargetDetails. This constant has a value of “HTTP”
-
PROTOCOL_HTTPS
= 'HTTPS'¶ A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTargetDetails. This constant has a value of “HTTPS”
-
PROTOCOL_TCP
= 'TCP'¶ A constant which can be used with the protocol property of a ExternalServiceAccessPolicyTargetDetails. 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 ExternalServiceAccessPolicyTargetDetails object with values from keyword arguments. The default value of the
type
attribute of this class isEXTERNAL_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 ExternalServiceAccessPolicyTargetDetails. Allowed values for this property are: “ALL_VIRTUAL_SERVICES”, “VIRTUAL_SERVICE”, “EXTERNAL_SERVICE”, “INGRESS_GATEWAY”
- hostnames (list[str]) – The value to assign to the hostnames property of this ExternalServiceAccessPolicyTargetDetails.
- ip_addresses (list[str]) – The value to assign to the ip_addresses property of this ExternalServiceAccessPolicyTargetDetails.
- ports (list[int]) – The value to assign to the ports property of this ExternalServiceAccessPolicyTargetDetails.
- protocol (str) – The value to assign to the protocol property of this ExternalServiceAccessPolicyTargetDetails. Allowed values for this property are: “HTTP”, “HTTPS”, “TCP”
-
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 ExternalServiceAccessPolicyTargetDetails. 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 ExternalServiceAccessPolicyTargetDetails. Return type: list[str]
-
ip_addresses
¶ Gets the ip_addresses of this ExternalServiceAccessPolicyTargetDetails. 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 ExternalServiceAccessPolicyTargetDetails. Return type: list[str]
-
ports
¶ Gets the ports of this ExternalServiceAccessPolicyTargetDetails. Ports exposed by an external service. If left empty all ports will be allowed.
Returns: The ports of this ExternalServiceAccessPolicyTargetDetails. Return type: list[int]
-
protocol
¶ Gets the protocol of this ExternalServiceAccessPolicyTargetDetails. Protocol of the external service
Allowed values for this property are: “HTTP”, “HTTPS”, “TCP”
Returns: The protocol of this ExternalServiceAccessPolicyTargetDetails. Return type: str
-
type
¶ [Required] Gets the type of this AccessPolicyTargetDetails. Traffic type of the target.
Allowed values for this property are: “ALL_VIRTUAL_SERVICES”, “VIRTUAL_SERVICE”, “EXTERNAL_SERVICE”, “INGRESS_GATEWAY”
Returns: The type of this AccessPolicyTargetDetails. Return type: str
-