1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceMesh
  5. getMeshes
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.ServiceMesh.getMeshes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 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

    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 = @var.Compartment_id,
            DisplayName = @var.Mesh_display_name,
            Id = @var.Mesh_id,
            State = @var.Mesh_state,
        });
    
    });
    
    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.GetMeshes(ctx, &servicemesh.GetMeshesArgs{
    			CompartmentId: _var.Compartment_id,
    			DisplayName:   pulumi.StringRef(_var.Mesh_display_name),
    			Id:            pulumi.StringRef(_var.Mesh_id),
    			State:         pulumi.StringRef(_var.Mesh_state),
    		}, 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.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(var_.compartment_id())
                .displayName(var_.mesh_display_name())
                .id(var_.mesh_id())
                .state(var_.mesh_state())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_meshes = oci.ServiceMesh.get_meshes(compartment_id=var["compartment_id"],
        display_name=var["mesh_display_name"],
        id=var["mesh_id"],
        state=var["mesh_state"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMeshes = oci.ServiceMesh.getMeshes({
        compartmentId: _var.compartment_id,
        displayName: _var.mesh_display_name,
        id: _var.mesh_id,
        state: _var.mesh_state,
    });
    
    variables:
      testMeshes:
        fn::invoke:
          Function: oci:ServiceMesh:getMeshes
          Arguments:
            compartmentId: ${var.compartment_id}
            displayName: ${var.mesh_display_name}
            id: ${var.mesh_id}
            state: ${var.mesh_state}
    

    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>
    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]
    func GetMeshes(ctx *Context, args *GetMeshesArgs, opts ...InvokeOption) (*GetMeshesResult, error)
    func GetMeshesOutput(ctx *Context, args *GetMeshesOutputArgs, opts ...InvokeOption) GetMeshesResultOutput

    > 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)
    }
    public static CompletableFuture<GetMeshesResult> getMeshes(GetMeshesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceMesh/getMeshes:getMeshes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId 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 List<GetMeshesFilter>
    Id string
    Unique Mesh identifier.
    State string
    A filter to return only resources that match the life cycle state given.
    CompartmentId 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 []GetMeshesFilter
    Id string
    Unique Mesh identifier.
    State string
    A filter to return only resources that match the life cycle state given.
    compartmentId 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 List<GetMeshesFilter>
    id String
    Unique Mesh identifier.
    state String
    A filter to return only resources that match the life cycle state given.
    compartmentId 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 GetMeshesFilter[]
    id string
    Unique Mesh identifier.
    state string
    A filter to return only resources that match the life cycle state given.
    compartment_id 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 GetMeshesFilter]
    id str
    Unique Mesh identifier.
    state str
    A filter to return only resources that match the life cycle state given.
    compartmentId 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 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 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 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetMeshesMeshCollection

    GetMeshesMeshCollectionItem

    CertificateAuthorities 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 string
    The ID of the compartment in which to list resources.
    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 filter to return only resources that match the entire displayName given.
    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 Mesh identifier.
    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.
    Mtls List<GetMeshesMeshCollectionItemMtl>
    Sets a minimum level of mTLS authentication for all virtual services within the mesh.
    State string
    A filter to return only resources that match the life cycle state given.
    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 []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 string
    The ID of the compartment in which to list resources.
    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 filter to return only resources that match the entire displayName given.
    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 Mesh identifier.
    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.
    Mtls []GetMeshesMeshCollectionItemMtl
    Sets a minimum level of mTLS authentication for all virtual services within the mesh.
    State string
    A filter to return only resources that match the life cycle state given.
    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<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 String
    The ID of the compartment in which to list resources.
    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 filter to return only resources that match the entire displayName given.
    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 Mesh identifier.
    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.
    mtls List<GetMeshesMeshCollectionItemMtl>
    Sets a minimum level of mTLS authentication for all virtual services within the mesh.
    state String
    A filter to return only resources that match the life cycle state given.
    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 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 string
    The ID of the compartment in which to list resources.
    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 filter to return only resources that match the entire displayName given.
    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 Mesh identifier.
    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.
    mtls GetMeshesMeshCollectionItemMtl[]
    Sets a minimum level of mTLS authentication for all virtual services within the mesh.
    state string
    A filter to return only resources that match the life cycle state given.
    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 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 str
    The ID of the compartment in which to list resources.
    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 filter to return only resources that match the entire displayName given.
    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 Mesh identifier.
    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.
    mtls GetMeshesMeshCollectionItemMtl]
    Sets a minimum level of mTLS authentication for all virtual services within the mesh.
    state str
    A filter to return only resources that match the life cycle state given.
    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. Request with more than one certificate authority will be rejected.
    compartmentId String
    The ID of the compartment in which to list resources.
    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 filter to return only resources that match the entire displayName given.
    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 Mesh identifier.
    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.
    mtls List<Property Map>
    Sets a minimum level of mTLS authentication for all virtual services within the mesh.
    state String
    A filter to return only resources that match the life cycle state given.
    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.

    GetMeshesMeshCollectionItemCertificateAuthority

    Id string
    Unique Mesh identifier.
    Id string
    Unique Mesh identifier.
    id String
    Unique Mesh identifier.
    id string
    Unique Mesh identifier.
    id str
    Unique Mesh identifier.
    id String
    Unique Mesh identifier.

    GetMeshesMeshCollectionItemMtl

    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi