1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceMesh
  5. getMesh
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.ServiceMesh.getMesh

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides details about a specific Mesh resource in Oracle Cloud Infrastructure Service Mesh service.

Gets a Mesh by identifier.

Example Usage

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

const testMesh = oci.ServiceMesh.getMesh({
    meshId: testMeshOciServiceMeshMesh.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_mesh = oci.ServiceMesh.get_mesh(mesh_id=test_mesh_oci_service_mesh_mesh["id"])
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.GetMesh(ctx, &servicemesh.GetMeshArgs{
			MeshId: testMeshOciServiceMeshMesh.Id,
		}, 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 testMesh = Oci.ServiceMesh.GetMesh.Invoke(new()
    {
        MeshId = testMeshOciServiceMeshMesh.Id,
    });

});
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.GetMeshArgs;
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 testMesh = ServiceMeshFunctions.getMesh(GetMeshArgs.builder()
            .meshId(testMeshOciServiceMeshMesh.id())
            .build());

    }
}
Copy
variables:
  testMesh:
    fn::invoke:
      function: oci:ServiceMesh:getMesh
      arguments:
        meshId: ${testMeshOciServiceMeshMesh.id}
Copy

Using getMesh

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 getMesh(args: GetMeshArgs, opts?: InvokeOptions): Promise<GetMeshResult>
function getMeshOutput(args: GetMeshOutputArgs, opts?: InvokeOptions): Output<GetMeshResult>
Copy
def get_mesh(mesh_id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetMeshResult
def get_mesh_output(mesh_id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetMeshResult]
Copy
func GetMesh(ctx *Context, args *GetMeshArgs, opts ...InvokeOption) (*GetMeshResult, error)
func GetMeshOutput(ctx *Context, args *GetMeshOutputArgs, opts ...InvokeOption) GetMeshResultOutput
Copy

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

public static class GetMesh 
{
    public static Task<GetMeshResult> InvokeAsync(GetMeshArgs args, InvokeOptions? opts = null)
    public static Output<GetMeshResult> Invoke(GetMeshInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMeshResult> getMesh(GetMeshArgs args, InvokeOptions options)
public static Output<GetMeshResult> getMesh(GetMeshArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ServiceMesh/getMesh:getMesh
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MeshId This property is required. string
Unique Mesh identifier.
MeshId This property is required. string
Unique Mesh identifier.
meshId This property is required. String
Unique Mesh identifier.
meshId This property is required. string
Unique Mesh identifier.
mesh_id This property is required. str
Unique Mesh identifier.
meshId This property is required. String
Unique Mesh identifier.

getMesh Result

The following output properties are available:

CertificateAuthorities List<GetMeshCertificateAuthority>
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 string
The OCID of the compartment.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
Description string
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
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
FreeformTags 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 string
Unique identifier that is immutable on creation.
LifecycleDetails 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.
MeshId string
Mtls List<GetMeshMtl>
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
State string
The current state of the Resource.
SystemTags Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time when this resource was created in an RFC3339 formatted datetime string.
TimeUpdated string
The time when this resource was updated in an RFC3339 formatted datetime string.
CertificateAuthorities []GetMeshCertificateAuthority
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 string
The OCID of the compartment.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
Description string
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
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
FreeformTags 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 string
Unique identifier that is immutable on creation.
LifecycleDetails 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.
MeshId string
Mtls []GetMeshMtl
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
State string
The current state of the Resource.
SystemTags map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time when this resource was created in an RFC3339 formatted datetime string.
TimeUpdated string
The time when this resource was updated in an RFC3339 formatted datetime string.
certificateAuthorities List<GetMeshCertificateAuthority>
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 String
The OCID of the compartment.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description String
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
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
freeformTags 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 String
Unique identifier that is immutable on creation.
lifecycleDetails 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.
meshId String
mtls List<GetMeshMtl>
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state String
The current state of the Resource.
systemTags Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time when this resource was created in an RFC3339 formatted datetime string.
timeUpdated String
The time when this resource was updated in an RFC3339 formatted datetime string.
certificateAuthorities GetMeshCertificateAuthority[]
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 string
The OCID of the compartment.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description string
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
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
freeformTags {[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 string
Unique identifier that is immutable on creation.
lifecycleDetails 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.
meshId string
mtls GetMeshMtl[]
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state string
The current state of the Resource.
systemTags {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The time when this resource was created in an RFC3339 formatted datetime string.
timeUpdated string
The time when this resource was updated in an RFC3339 formatted datetime string.
certificate_authorities Sequence[servicemesh.GetMeshCertificateAuthority]
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 str
The OCID of the compartment.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description str
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
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
freeform_tags 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 str
Unique identifier that is immutable on creation.
lifecycle_details 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.
mesh_id str
mtls Sequence[servicemesh.GetMeshMtl]
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state str
The current state of the Resource.
system_tags Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The time when this resource was created in an RFC3339 formatted datetime string.
time_updated str
The time when this resource was updated in an RFC3339 formatted datetime string.
certificateAuthorities 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 String
The OCID of the compartment.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description String
Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: This is my new resource
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
freeformTags 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 String
Unique identifier that is immutable on creation.
lifecycleDetails 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.
meshId String
mtls List<Property Map>
Sets a minimum level of mTLS authentication for all virtual services within the mesh.
state String
The current state of the Resource.
systemTags Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time when this resource was created in an RFC3339 formatted datetime string.
timeUpdated String
The time when this resource was updated in an RFC3339 formatted datetime string.

Supporting Types

GetMeshCertificateAuthority

Id This property is required. string
Unique identifier that is immutable on creation.
Id This property is required. string
Unique identifier that is immutable on creation.
id This property is required. String
Unique identifier that is immutable on creation.
id This property is required. string
Unique identifier that is immutable on creation.
id This property is required. str
Unique identifier that is immutable on creation.
id This property is required. String
Unique identifier that is immutable on creation.

GetMeshMtl

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.29.0 published on Wednesday, Apr 9, 2025 by Pulumi