1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTcmMesh
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getTcmMesh

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of tcm mesh

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mesh = tencentcloud.getTcmMesh({
        meshClusters: ["cls-xxxx"],
        meshIds: ["mesh-xxxxxx"],
        meshNames: ["KEEP_MASH"],
        tags: ["key"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    mesh = tencentcloud.get_tcm_mesh(mesh_clusters=["cls-xxxx"],
        mesh_ids=["mesh-xxxxxx"],
        mesh_names=["KEEP_MASH"],
        tags=["key"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.LookupTcmMesh(ctx, &tencentcloud.LookupTcmMeshArgs{
    			MeshClusters: []string{
    				"cls-xxxx",
    			},
    			MeshIds: []string{
    				"mesh-xxxxxx",
    			},
    			MeshNames: []string{
    				"KEEP_MASH",
    			},
    			Tags: []string{
    				"key",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var mesh = Tencentcloud.GetTcmMesh.Invoke(new()
        {
            MeshClusters = new[]
            {
                "cls-xxxx",
            },
            MeshIds = new[]
            {
                "mesh-xxxxxx",
            },
            MeshNames = new[]
            {
                "KEEP_MASH",
            },
            Tags = new[]
            {
                "key",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetTcmMeshArgs;
    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 mesh = TencentcloudFunctions.getTcmMesh(GetTcmMeshArgs.builder()
                .meshClusters("cls-xxxx")
                .meshIds("mesh-xxxxxx")
                .meshNames("KEEP_MASH")
                .tags("key")
                .build());
    
        }
    }
    
    variables:
      mesh:
        fn::invoke:
          function: tencentcloud:getTcmMesh
          arguments:
            meshClusters:
              - cls-xxxx
            meshIds:
              - mesh-xxxxxx
            meshNames:
              - KEEP_MASH
            tags:
              - key
    

    Using getTcmMesh

    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 getTcmMesh(args: GetTcmMeshArgs, opts?: InvokeOptions): Promise<GetTcmMeshResult>
    function getTcmMeshOutput(args: GetTcmMeshOutputArgs, opts?: InvokeOptions): Output<GetTcmMeshResult>
    def get_tcm_mesh(id: Optional[str] = None,
                     mesh_clusters: Optional[Sequence[str]] = None,
                     mesh_ids: Optional[Sequence[str]] = None,
                     mesh_names: Optional[Sequence[str]] = None,
                     result_output_file: Optional[str] = None,
                     tags: Optional[Sequence[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetTcmMeshResult
    def get_tcm_mesh_output(id: Optional[pulumi.Input[str]] = None,
                     mesh_clusters: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     mesh_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     mesh_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     result_output_file: Optional[pulumi.Input[str]] = None,
                     tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetTcmMeshResult]
    func LookupTcmMesh(ctx *Context, args *LookupTcmMeshArgs, opts ...InvokeOption) (*LookupTcmMeshResult, error)
    func LookupTcmMeshOutput(ctx *Context, args *LookupTcmMeshOutputArgs, opts ...InvokeOption) LookupTcmMeshResultOutput

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

    public static class GetTcmMesh 
    {
        public static Task<GetTcmMeshResult> InvokeAsync(GetTcmMeshArgs args, InvokeOptions? opts = null)
        public static Output<GetTcmMeshResult> Invoke(GetTcmMeshInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTcmMeshResult> getTcmMesh(GetTcmMeshArgs args, InvokeOptions options)
    public static Output<GetTcmMeshResult> getTcmMesh(GetTcmMeshArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTcmMesh:getTcmMesh
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    MeshClusters List<string>
    Mesh name.
    MeshIds List<string>
    Mesh instance Id.
    MeshNames List<string>
    Display name.
    ResultOutputFile string
    Used to save results.
    Tags List<string>
    tag key.
    Id string
    MeshClusters []string
    Mesh name.
    MeshIds []string
    Mesh instance Id.
    MeshNames []string
    Display name.
    ResultOutputFile string
    Used to save results.
    Tags []string
    tag key.
    id String
    meshClusters List<String>
    Mesh name.
    meshIds List<String>
    Mesh instance Id.
    meshNames List<String>
    Display name.
    resultOutputFile String
    Used to save results.
    tags List<String>
    tag key.
    id string
    meshClusters string[]
    Mesh name.
    meshIds string[]
    Mesh instance Id.
    meshNames string[]
    Display name.
    resultOutputFile string
    Used to save results.
    tags string[]
    tag key.
    id str
    mesh_clusters Sequence[str]
    Mesh name.
    mesh_ids Sequence[str]
    Mesh instance Id.
    mesh_names Sequence[str]
    Display name.
    result_output_file str
    Used to save results.
    tags Sequence[str]
    tag key.
    id String
    meshClusters List<String>
    Mesh name.
    meshIds List<String>
    Mesh instance Id.
    meshNames List<String>
    Display name.
    resultOutputFile String
    Used to save results.
    tags List<String>
    tag key.

    getTcmMesh Result

    The following output properties are available:

    Id string
    MeshLists List<GetTcmMeshMeshList>
    The mesh information is queriedNote: This field may return null, indicating that a valid value is not available.
    MeshClusters List<string>
    MeshIds List<string>
    Mesh instance Id.
    MeshNames List<string>
    ResultOutputFile string
    Tags List<string>
    Id string
    MeshLists []GetTcmMeshMeshList
    The mesh information is queriedNote: This field may return null, indicating that a valid value is not available.
    MeshClusters []string
    MeshIds []string
    Mesh instance Id.
    MeshNames []string
    ResultOutputFile string
    Tags []string
    id String
    meshLists List<GetTcmMeshMeshList>
    The mesh information is queriedNote: This field may return null, indicating that a valid value is not available.
    meshClusters List<String>
    meshIds List<String>
    Mesh instance Id.
    meshNames List<String>
    resultOutputFile String
    tags List<String>
    id string
    meshLists GetTcmMeshMeshList[]
    The mesh information is queriedNote: This field may return null, indicating that a valid value is not available.
    meshClusters string[]
    meshIds string[]
    Mesh instance Id.
    meshNames string[]
    resultOutputFile string
    tags string[]
    id str
    mesh_lists Sequence[GetTcmMeshMeshList]
    The mesh information is queriedNote: This field may return null, indicating that a valid value is not available.
    mesh_clusters Sequence[str]
    mesh_ids Sequence[str]
    Mesh instance Id.
    mesh_names Sequence[str]
    result_output_file str
    tags Sequence[str]
    id String
    meshLists List<Property Map>
    The mesh information is queriedNote: This field may return null, indicating that a valid value is not available.
    meshClusters List<String>
    meshIds List<String>
    Mesh instance Id.
    meshNames List<String>
    resultOutputFile String
    tags List<String>

    Supporting Types

    GetTcmMeshMeshList

    Configs List<GetTcmMeshMeshListConfig>
    Mesh configuration.
    DisplayName string
    Mesh name.
    MeshId string
    Mesh instance Id.
    TagLists List<GetTcmMeshMeshListTagList>
    A list of associated tags.
    Type string
    Mesh type. Value range:- STANDALONE: Standalone mesh- HOSTED: hosted the mesh.
    Version string
    Mesh version.
    Configs []GetTcmMeshMeshListConfig
    Mesh configuration.
    DisplayName string
    Mesh name.
    MeshId string
    Mesh instance Id.
    TagLists []GetTcmMeshMeshListTagList
    A list of associated tags.
    Type string
    Mesh type. Value range:- STANDALONE: Standalone mesh- HOSTED: hosted the mesh.
    Version string
    Mesh version.
    configs List<GetTcmMeshMeshListConfig>
    Mesh configuration.
    displayName String
    Mesh name.
    meshId String
    Mesh instance Id.
    tagLists List<GetTcmMeshMeshListTagList>
    A list of associated tags.
    type String
    Mesh type. Value range:- STANDALONE: Standalone mesh- HOSTED: hosted the mesh.
    version String
    Mesh version.
    configs GetTcmMeshMeshListConfig[]
    Mesh configuration.
    displayName string
    Mesh name.
    meshId string
    Mesh instance Id.
    tagLists GetTcmMeshMeshListTagList[]
    A list of associated tags.
    type string
    Mesh type. Value range:- STANDALONE: Standalone mesh- HOSTED: hosted the mesh.
    version string
    Mesh version.
    configs Sequence[GetTcmMeshMeshListConfig]
    Mesh configuration.
    display_name str
    Mesh name.
    mesh_id str
    Mesh instance Id.
    tag_lists Sequence[GetTcmMeshMeshListTagList]
    A list of associated tags.
    type str
    Mesh type. Value range:- STANDALONE: Standalone mesh- HOSTED: hosted the mesh.
    version str
    Mesh version.
    configs List<Property Map>
    Mesh configuration.
    displayName String
    Mesh name.
    meshId String
    Mesh instance Id.
    tagLists List<Property Map>
    A list of associated tags.
    type String
    Mesh type. Value range:- STANDALONE: Standalone mesh- HOSTED: hosted the mesh.
    version String
    Mesh version.

    GetTcmMeshMeshListConfig

    istios List<Property Map>
    Istio configuration.

    GetTcmMeshMeshListConfigIstio

    DisableHttpRetry bool
    Disable http retry.
    DisablePolicyChecks bool
    Disable policy checks.
    EnablePilotHttp bool
    Enable HTTP/1.0 support.
    OutboundTrafficPolicy string
    Outbound traffic policy.
    SmartDns List<GetTcmMeshMeshListConfigIstioSmartDn>
    SmartDNS configuration.
    DisableHttpRetry bool
    Disable http retry.
    DisablePolicyChecks bool
    Disable policy checks.
    EnablePilotHttp bool
    Enable HTTP/1.0 support.
    OutboundTrafficPolicy string
    Outbound traffic policy.
    SmartDns []GetTcmMeshMeshListConfigIstioSmartDn
    SmartDNS configuration.
    disableHttpRetry Boolean
    Disable http retry.
    disablePolicyChecks Boolean
    Disable policy checks.
    enablePilotHttp Boolean
    Enable HTTP/1.0 support.
    outboundTrafficPolicy String
    Outbound traffic policy.
    smartDns List<GetTcmMeshMeshListConfigIstioSmartDn>
    SmartDNS configuration.
    disableHttpRetry boolean
    Disable http retry.
    disablePolicyChecks boolean
    Disable policy checks.
    enablePilotHttp boolean
    Enable HTTP/1.0 support.
    outboundTrafficPolicy string
    Outbound traffic policy.
    smartDns GetTcmMeshMeshListConfigIstioSmartDn[]
    SmartDNS configuration.
    disable_http_retry bool
    Disable http retry.
    disable_policy_checks bool
    Disable policy checks.
    enable_pilot_http bool
    Enable HTTP/1.0 support.
    outbound_traffic_policy str
    Outbound traffic policy.
    smart_dns Sequence[GetTcmMeshMeshListConfigIstioSmartDn]
    SmartDNS configuration.
    disableHttpRetry Boolean
    Disable http retry.
    disablePolicyChecks Boolean
    Disable policy checks.
    enablePilotHttp Boolean
    Enable HTTP/1.0 support.
    outboundTrafficPolicy String
    Outbound traffic policy.
    smartDns List<Property Map>
    SmartDNS configuration.

    GetTcmMeshMeshListConfigIstioSmartDn

    IstioMetaDnsAutoAllocate bool
    Enable auto allocate address.
    IstioMetaDnsCapture bool
    Enable dns proxy.
    IstioMetaDnsAutoAllocate bool
    Enable auto allocate address.
    IstioMetaDnsCapture bool
    Enable dns proxy.
    istioMetaDnsAutoAllocate Boolean
    Enable auto allocate address.
    istioMetaDnsCapture Boolean
    Enable dns proxy.
    istioMetaDnsAutoAllocate boolean
    Enable auto allocate address.
    istioMetaDnsCapture boolean
    Enable dns proxy.
    istio_meta_dns_auto_allocate bool
    Enable auto allocate address.
    istio_meta_dns_capture bool
    Enable dns proxy.
    istioMetaDnsAutoAllocate Boolean
    Enable auto allocate address.
    istioMetaDnsCapture Boolean
    Enable dns proxy.

    GetTcmMeshMeshListTagList

    Key string
    Tag key.
    Passthrough bool
    Passthrough to other related product.
    Value string
    Tag value.
    Key string
    Tag key.
    Passthrough bool
    Passthrough to other related product.
    Value string
    Tag value.
    key String
    Tag key.
    passthrough Boolean
    Passthrough to other related product.
    value String
    Tag value.
    key string
    Tag key.
    passthrough boolean
    Passthrough to other related product.
    value string
    Tag value.
    key str
    Tag key.
    passthrough bool
    Passthrough to other related product.
    value str
    Tag value.
    key String
    Tag key.
    passthrough Boolean
    Passthrough to other related product.
    value String
    Tag value.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack