Data Source: oci_service_mesh_access_policy
This data source provides details about a specific Access Policy resource in Oracle Cloud Infrastructure Service Mesh service.
Get an AccessPolicy by identifier.
Example Usage
data "oci_service_mesh_access_policy" "test_access_policy" {
#Required
access_policy_id = oci_service_mesh_access_policy.test_access_policy.id
}
Argument Reference
The following arguments are supported:
access_policy_id
- (Required) Unique AccessPolicy identifier.
Attributes Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- Description of the resource. It can be changed after creation. Avoid entering confidential information. Example:This is my new resource
freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- Unique identifier that is immutable on creation.lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.mesh_id
- The OCID of the service mesh in which this access policy is created.name
- A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information. Example:My unique resource name
rules
- List of applicable rules.action
- Action for the traffic between the source and the destination.destination
- Target of the access policy. This can either be the source or the destination of the traffic.hostnames
- 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.ingress_gateway_id
- The OCID of the ingress gateway resource.ip_addresses
- 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.ports
- Ports exposed by an external service. If left empty all ports will be allowed.protocol
- Protocol of the external servicetype
- Traffic type of the target.virtual_service_id
- The OCID of the virtual service resource.
source
- Target of the access policy. This can either be the source or the destination of the traffic.hostnames
- 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.ingress_gateway_id
- The OCID of the ingress gateway resource.ip_addresses
- 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.ports
- Ports exposed by an external service. If left empty all ports will be allowed.protocol
- Protocol of the external servicetype
- Traffic type of the target.virtual_service_id
- The OCID of the virtual service resource.
state
- The current state of the Resource.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The time when this resource was created in an RFC3339 formatted datetime string.time_updated
- The time when this resource was updated in an RFC3339 formatted datetime string.