Data Source: oci_service_mesh_virtual_services
This data source provides the list of Virtual Services in Oracle Cloud Infrastructure Service Mesh service.
Returns a list of VirtualService objects.
Example Usage
data "oci_service_mesh_virtual_services" "test_virtual_services" {
#Required
compartment_id = var.compartment_id
#Optional
id = var.virtual_service_id
mesh_id = oci_service_mesh_mesh.test_mesh.id
name = var.virtual_service_name
state = var.virtual_service_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.id
- (Optional) Unique VirtualService identifier.mesh_id
- (Optional) Unique Mesh identifier.name
- (Optional) A filter to return only resources that match the entire name given.state
- (Optional) A filter to return only resources that match the life cycle state given.
Attributes Reference
The following attributes are exported:
virtual_service_collection
- The list of virtual_service_collection.
VirtualService Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment.default_routing_policy
- Routing policy for the virtual service.type
- Type of the virtual service routing policy.
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"}
hosts
- The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are “www.example.com”, “.example.com”, “.com”. Can be omitted if the virtual service will only have TCP virtual deployments.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 virtual service is created.mtls
- Mutual TLS settings used when communicating with other virtual services or ingress gateways within the mesh.certificate_id
- The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.maximum_validity
- The number of days the mTLS certificate is valid. This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2⁄3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.mode
- DISABLED: Connection is not tunneled. PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
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
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.