Listing Virtual Services
List the virtual services in a service mesh.
Important
Before you proceed, you must set up the appropriate OCI policies for the virtual service resource. For details, Required IAM Policy for Virtual Services.
Before you proceed, you must set up the appropriate OCI policies for the virtual service resource. For details, Required IAM Policy for Virtual Services.
- Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Service Mesh.
- Click Service Meshes.
- On the Service Mesh page, from the list of compartments on the left side, select a compartment.
- From the list of meshes, click the mesh name that contains the virtual services.
The details page of the mesh displays the list of virtual services with the name and state of a virtual service with the date and time that it was last updated. To see what operations are available for
virtual-service list
use:oci service-mesh virtual-service list -h
To list virtual services using the CLI, run
oci service-mesh virtual-service list
:oci service-mesh virtual-service list --compartment-id <compartmentId>
Where:
<compartmentId>
is the OCID of the compartment containing the virtual service.
For example:
oci service-mesh virtual-service list --compartment-id ocid1.compartment.oc1..aaa...
If you want to list those virtual services with a status of
Active
, include the--lifecycle-state ACTIVE
parameter in the request. For example:oci service-mesh virtual-service list --compartment-id ocid1.compartment.oc1..aaa... --lifecycle-state ACTIVE
For more information about using the CLI, see:
Use the ListVirtualServices operation to list the virtual services in a compartment.