1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceMesh
  5. getMeshes
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.ServiceMesh.getMeshes

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Meshes in Oracle Cloud Infrastructure Service Mesh service.

Returns a list of Mesh objects.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMeshes = oci.ServiceMesh.getMeshes({
    compartmentId: compartmentId,
    displayName: meshDisplayName,
    id: meshId,
    state: meshState,
});
Copy
import pulumi
import pulumi_oci as oci

test_meshes = oci.ServiceMesh.get_meshes(compartment_id=compartment_id,
    display_name=mesh_display_name,
    id=mesh_id,
    state=mesh_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/servicemesh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicemesh.GetMeshes(ctx, &servicemesh.GetMeshesArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(meshDisplayName),
			Id:            pulumi.StringRef(meshId),
			State:         pulumi.StringRef(meshState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMeshes = Oci.ServiceMesh.GetMeshes.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = meshDisplayName,
        Id = meshId,
        State = meshState,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceMesh.ServiceMeshFunctions;
import com.pulumi.oci.ServiceMesh.inputs.GetMeshesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testMeshes = ServiceMeshFunctions.getMeshes(GetMeshesArgs.builder()
            .compartmentId(compartmentId)
            .displayName(meshDisplayName)
            .id(meshId)
            .state(meshState)
            .build());

    }
}
Copy
variables:
  testMeshes:
    fn::invoke:
      function: oci:ServiceMesh:getMeshes
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${meshDisplayName}
        id: ${meshId}
        state: ${meshState}
Copy

Using getMeshes

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMeshes(args: GetMeshesArgs, opts?: InvokeOptions): Promise<GetMeshesResult>
function getMeshesOutput(args: GetMeshesOutputArgs, opts?: InvokeOptions): Output<GetMeshesResult>
Copy
def get_meshes(compartment_id: Optional[str] = None,
               display_name: Optional[str] = None,
               filters: Optional[Sequence[_servicemesh.GetMeshesFilter]] = None,
               id: Optional[str] = None,
               state: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetMeshesResult
def get_meshes_output(compartment_id: Optional[pulumi.Input[str]] = None,
               display_name: Optional[pulumi.Input[str]] = None,
               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_servicemesh.GetMeshesFilterArgs]]]] = None,
               id: Optional[pulumi.Input[str]] = None,
               state: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetMeshesResult]
Copy
func GetMeshes(ctx *Context, args *GetMeshesArgs, opts ...InvokeOption) (*GetMeshesResult, error)
func GetMeshesOutput(ctx *Context, args *GetMeshesOutputArgs, opts ...InvokeOption) GetMeshesResultOutput
Copy

> Note: This function is named GetMeshes in the Go SDK.

public static class GetMeshes 
{
    public static Task<GetMeshesResult> InvokeAsync(GetMeshesArgs args, InvokeOptions? opts = null)
    public static Output<GetMeshesResult> Invoke(GetMeshesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMeshesResult> getMeshes(GetMeshesArgs args, InvokeOptions options)
public static Output<GetMeshesResult> getMeshes(GetMeshesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ServiceMesh/getMeshes:getMeshes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DisplayName string
A filter to return only resources that match the entire displayName given.
Filters Changes to this property will trigger replacement. List<GetMeshesFilter>
Id string
Unique Mesh identifier.
State string
A filter to return only resources that match the life cycle state given.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DisplayName string
A filter to return only resources that match the entire displayName given.
Filters Changes to this property will trigger replacement. []GetMeshesFilter
Id string
Unique Mesh identifier.
State string
A filter to return only resources that match the life cycle state given.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
displayName String
A filter to return only resources that match the entire displayName given.
filters Changes to this property will trigger replacement. List<GetMeshesFilter>
id String
Unique Mesh identifier.
state String
A filter to return only resources that match the life cycle state given.
compartmentId This property is required. string
The ID of the compartment in which to list resources.
displayName string
A filter to return only resources that match the entire displayName given.
filters Changes to this property will trigger replacement. GetMeshesFilter[]
id string
Unique Mesh identifier.
state string
A filter to return only resources that match the life cycle state given.
compartment_id This property is required. str
The ID of the compartment in which to list resources.
display_name str
A filter to return only resources that match the entire displayName given.
filters Changes to this property will trigger replacement. Sequence[servicemesh.GetMeshesFilter]
id str
Unique Mesh identifier.
state str
A filter to return only resources that match the life cycle state given.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
displayName String
A filter to return only resources that match the entire displayName given.
filters Changes to this property will trigger replacement. List<Property Map>
id String
Unique Mesh identifier.
state String
A filter to return only resources that match the life cycle state given.

getMeshes Result

The following output properties are available:

CompartmentId string
The OCID of the compartment.
MeshCollections List<GetMeshesMeshCollection>
The list of mesh_collection.
DisplayName string
A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example: My new resource
Filters List<GetMeshesFilter>
Id string
Unique identifier that is immutable on creation.
State string
The current state of the Resource.
CompartmentId string
The OCID of the compartment.
MeshCollections []GetMeshesMeshCollection
The list of mesh_collection.
DisplayName string
A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example: My new resource
Filters []GetMeshesFilter
Id string
Unique identifier that is immutable on creation.
State string
The current state of the Resource.
compartmentId String
The OCID of the compartment.
meshCollections List<GetMeshesMeshCollection>
The list of mesh_collection.
displayName String
A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example: My new resource
filters List<GetMeshesFilter>
id String
Unique identifier that is immutable on creation.
state String
The current state of the Resource.
compartmentId string
The OCID of the compartment.
meshCollections GetMeshesMeshCollection[]
The list of mesh_collection.
displayName string
A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example: My new resource
filters GetMeshesFilter[]
id string
Unique identifier that is immutable on creation.
state string
The current state of the Resource.
compartment_id str
The OCID of the compartment.
mesh_collections Sequence[servicemesh.GetMeshesMeshCollection]
The list of mesh_collection.
display_name str
A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example: My new resource
filters Sequence[servicemesh.GetMeshesFilter]
id str
Unique identifier that is immutable on creation.
state str
The current state of the Resource.
compartmentId String
The OCID of the compartment.
meshCollections List<Property Map>
The list of mesh_collection.
displayName String
A user-friendly name. The name does not have to be unique and can be changed after creation. Avoid entering confidential information. Example: My new resource
filters List<Property Map>
id String
Unique identifier that is immutable on creation.
state String
The current state of the Resource.

Supporting Types

GetMeshesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetMeshesMeshCollection

Items This property is required. List<GetMeshesMeshCollectionItem>
Items This property is required. []GetMeshesMeshCollectionItem
items This property is required. List<GetMeshesMeshCollectionItem>
items This property is required. GetMeshesMeshCollectionItem[]
items This property is required. List<Property Map>

GetMeshesMeshCollectionItem

CertificateAuthorities This property is required. List<GetMeshesMeshCollectionItemCertificateAuthority>
A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
Description This property is required. string
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
DisplayName This property is required. string
A filter to return only resources that match the entire displayName given.
FreeformTags This property is required. Dictionary<string, string>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
Unique Mesh identifier.
LifecycleDetails This property is required. string
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.
Mtls This property is required. List<GetMeshesMeshCollectionItemMtl>
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
State This property is required. string
A filter to return only resources that match the life cycle state given.
SystemTags This property is required. Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated This property is required. string
The time when this resource was created in an RFC3339 formatted datetime string.
TimeUpdated This property is required. string
The time when this resource was updated in an RFC3339 formatted datetime string.
CertificateAuthorities This property is required. []GetMeshesMeshCollectionItemCertificateAuthority
A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
Description This property is required. string
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
DisplayName This property is required. string
A filter to return only resources that match the entire displayName given.
FreeformTags This property is required. map[string]string
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
Unique Mesh identifier.
LifecycleDetails This property is required. string
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.
Mtls This property is required. []GetMeshesMeshCollectionItemMtl
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
State This property is required. string
A filter to return only resources that match the life cycle state given.
SystemTags This property is required. map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated This property is required. string
The time when this resource was created in an RFC3339 formatted datetime string.
TimeUpdated This property is required. string
The time when this resource was updated in an RFC3339 formatted datetime string.
certificateAuthorities This property is required. List<GetMeshesMeshCollectionItemCertificateAuthority>
A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description This property is required. String
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
displayName This property is required. String
A filter to return only resources that match the entire displayName given.
freeformTags This property is required. Map<String,String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
Unique Mesh identifier.
lifecycleDetails This property is required. String
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.
mtls This property is required. List<GetMeshesMeshCollectionItemMtl>
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state This property is required. String
A filter to return only resources that match the life cycle state given.
systemTags This property is required. Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
The time when this resource was created in an RFC3339 formatted datetime string.
timeUpdated This property is required. String
The time when this resource was updated in an RFC3339 formatted datetime string.
certificateAuthorities This property is required. GetMeshesMeshCollectionItemCertificateAuthority[]
A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
compartmentId This property is required. string
The ID of the compartment in which to list resources.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description This property is required. string
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
displayName This property is required. string
A filter to return only resources that match the entire displayName given.
freeformTags This property is required. {[key: string]: string}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. string
Unique Mesh identifier.
lifecycleDetails This property is required. string
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.
mtls This property is required. GetMeshesMeshCollectionItemMtl[]
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state This property is required. string
A filter to return only resources that match the life cycle state given.
systemTags This property is required. {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. string
The time when this resource was created in an RFC3339 formatted datetime string.
timeUpdated This property is required. string
The time when this resource was updated in an RFC3339 formatted datetime string.
certificate_authorities This property is required. Sequence[servicemesh.GetMeshesMeshCollectionItemCertificateAuthority]
A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
compartment_id This property is required. str
The ID of the compartment in which to list resources.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description This property is required. str
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
display_name This property is required. str
A filter to return only resources that match the entire displayName given.
freeform_tags This property is required. Mapping[str, str]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. str
Unique Mesh identifier.
lifecycle_details This property is required. str
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.
mtls This property is required. Sequence[servicemesh.GetMeshesMeshCollectionItemMtl]
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state This property is required. str
A filter to return only resources that match the life cycle state given.
system_tags This property is required. Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created This property is required. str
The time when this resource was created in an RFC3339 formatted datetime string.
time_updated This property is required. str
The time when this resource was updated in an RFC3339 formatted datetime string.
certificateAuthorities This property is required. List<Property Map>
A list of certificate authority resources to use for creating leaf certificates for mTLS authentication. Currently we only support one certificate authority, but this may expand in future releases. Request with more than one certificate authority will be rejected.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description This property is required. String
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
displayName This property is required. String
A filter to return only resources that match the entire displayName given.
freeformTags This property is required. Map<String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
Unique Mesh identifier.
lifecycleDetails This property is required. String
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.
mtls This property is required. List<Property Map>
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state This property is required. String
A filter to return only resources that match the life cycle state given.
systemTags This property is required. Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
The time when this resource was created in an RFC3339 formatted datetime string.
timeUpdated This property is required. String
The time when this resource was updated in an RFC3339 formatted datetime string.

GetMeshesMeshCollectionItemCertificateAuthority

Id This property is required. string
Unique Mesh identifier.
Id This property is required. string
Unique Mesh identifier.
id This property is required. String
Unique Mesh identifier.
id This property is required. string
Unique Mesh identifier.
id This property is required. str
Unique Mesh identifier.
id This property is required. String
Unique Mesh identifier.

GetMeshesMeshCollectionItemMtl

Minimum This property is required. string
DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
Minimum This property is required. string
DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
minimum This property is required. String
DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
minimum This property is required. string
DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
minimum This property is required. str
DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.
minimum This property is required. String
DISABLED: No minimum virtual services within this mesh can use any mTLS authentication mode. PERMISSIVE: Virtual services within this mesh can use either PERMISSIVE or STRICT modes. STRICT: All virtual services within this mesh must use STRICT mode.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi