Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getMesh

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

Gets a Mesh by identifier.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMesh = Oci.ServiceMesh.GetMesh.Invoke(new()
    {
        MeshId = oci_service_mesh_mesh.Test_mesh.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_service_mesh_mesh.Test_mesh.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_service_mesh_mesh.test_mesh().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_mesh = oci.ServiceMesh.get_mesh(mesh_id=oci_service_mesh_mesh["test_mesh"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMesh = oci.ServiceMesh.getMesh({
    meshId: oci_service_mesh_mesh.test_mesh.id,
});
variables:
  testMesh:
    Fn::Invoke:
      Function: oci:ServiceMesh:getMesh
      Arguments:
        meshId: ${oci_service_mesh_mesh.test_mesh.id}

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>
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]
func GetMesh(ctx *Context, args *GetMeshArgs, opts ...InvokeOption) (*GetMeshResult, error)
func GetMeshOutput(ctx *Context, args *GetMeshOutputArgs, opts ...InvokeOption) GetMeshResultOutput

> 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)
}
public static CompletableFuture<GetMeshResult> getMesh(GetMeshArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:ServiceMesh/getMesh:getMesh
  Arguments:
    # Arguments dictionary

The following arguments are supported:

MeshId string

Unique Mesh identifier.

MeshId string

Unique Mesh identifier.

meshId String

Unique Mesh identifier.

meshId string

Unique Mesh identifier.

mesh_id str

Unique Mesh identifier.

meshId 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.

CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

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, object>

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, object>

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.

CompartmentId string

The OCID of the compartment.

DefinedTags map[string]interface{}

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]interface{}

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]interface{}

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.

compartmentId String

The OCID of the compartment.

definedTags Map<String,Object>

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,Object>

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,Object>

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.

compartmentId string

The OCID of the compartment.

definedTags {[key: string]: any}

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]: any}

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]: any}

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 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.

compartment_id str

The OCID of the compartment.

defined_tags Mapping[str, Any]

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, Any]

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 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, Any]

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.

compartmentId String

The OCID of the compartment.

definedTags Map<Any>

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<Any>

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<Any>

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 string

Unique identifier that is immutable on creation.

Id string

Unique identifier that is immutable on creation.

id String

Unique identifier that is immutable on creation.

id string

Unique identifier that is immutable on creation.

id str

Unique identifier that is immutable on creation.

id String

Unique identifier that is immutable on creation.

GetMeshMtl

Minimum 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 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 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 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 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 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.