1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustTunnelCloudflaredToken
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getZeroTrustTunnelCloudflaredToken

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustTunnelCloudflaredToken = cloudflare.getZeroTrustTunnelCloudflaredToken({
        accountId: "699d98642c564d2e855e9661899b7252",
        tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_tunnel_cloudflared_token = cloudflare.get_zero_trust_tunnel_cloudflared_token(account_id="699d98642c564d2e855e9661899b7252",
        tunnel_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetZeroTrustTunnelCloudflaredToken(ctx, &cloudflare.GetZeroTrustTunnelCloudflaredTokenArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    			TunnelId:  "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustTunnelCloudflaredToken = Cloudflare.GetZeroTrustTunnelCloudflaredToken.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            TunnelId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustTunnelCloudflaredTokenArgs;
    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 exampleZeroTrustTunnelCloudflaredToken = CloudflareFunctions.getZeroTrustTunnelCloudflaredToken(GetZeroTrustTunnelCloudflaredTokenArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .tunnelId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustTunnelCloudflaredToken:
        fn::invoke:
          function: cloudflare:getZeroTrustTunnelCloudflaredToken
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
            tunnelId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
    

    Using getZeroTrustTunnelCloudflaredToken

    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 getZeroTrustTunnelCloudflaredToken(args: GetZeroTrustTunnelCloudflaredTokenArgs, opts?: InvokeOptions): Promise<GetZeroTrustTunnelCloudflaredTokenResult>
    function getZeroTrustTunnelCloudflaredTokenOutput(args: GetZeroTrustTunnelCloudflaredTokenOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustTunnelCloudflaredTokenResult>
    def get_zero_trust_tunnel_cloudflared_token(account_id: Optional[str] = None,
                                                tunnel_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetZeroTrustTunnelCloudflaredTokenResult
    def get_zero_trust_tunnel_cloudflared_token_output(account_id: Optional[pulumi.Input[str]] = None,
                                                tunnel_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustTunnelCloudflaredTokenResult]
    func GetZeroTrustTunnelCloudflaredToken(ctx *Context, args *GetZeroTrustTunnelCloudflaredTokenArgs, opts ...InvokeOption) (*GetZeroTrustTunnelCloudflaredTokenResult, error)
    func GetZeroTrustTunnelCloudflaredTokenOutput(ctx *Context, args *GetZeroTrustTunnelCloudflaredTokenOutputArgs, opts ...InvokeOption) GetZeroTrustTunnelCloudflaredTokenResultOutput

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

    public static class GetZeroTrustTunnelCloudflaredToken 
    {
        public static Task<GetZeroTrustTunnelCloudflaredTokenResult> InvokeAsync(GetZeroTrustTunnelCloudflaredTokenArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustTunnelCloudflaredTokenResult> Invoke(GetZeroTrustTunnelCloudflaredTokenInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustTunnelCloudflaredTokenResult> getZeroTrustTunnelCloudflaredToken(GetZeroTrustTunnelCloudflaredTokenArgs args, InvokeOptions options)
    public static Output<GetZeroTrustTunnelCloudflaredTokenResult> getZeroTrustTunnelCloudflaredToken(GetZeroTrustTunnelCloudflaredTokenArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustTunnelCloudflaredToken:getZeroTrustTunnelCloudflaredToken
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Cloudflare account ID
    TunnelId string
    UUID of the tunnel.
    AccountId string
    Cloudflare account ID
    TunnelId string
    UUID of the tunnel.
    accountId String
    Cloudflare account ID
    tunnelId String
    UUID of the tunnel.
    accountId string
    Cloudflare account ID
    tunnelId string
    UUID of the tunnel.
    account_id str
    Cloudflare account ID
    tunnel_id str
    UUID of the tunnel.
    accountId String
    Cloudflare account ID
    tunnelId String
    UUID of the tunnel.

    getZeroTrustTunnelCloudflaredToken Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel.
    TunnelId string
    UUID of the tunnel.
    AccountId string
    Cloudflare account ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel.
    TunnelId string
    UUID of the tunnel.
    accountId String
    Cloudflare account ID
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel.
    tunnelId String
    UUID of the tunnel.
    accountId string
    Cloudflare account ID
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel.
    tunnelId string
    UUID of the tunnel.
    account_id str
    Cloudflare account ID
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel.
    tunnel_id str
    UUID of the tunnel.
    accountId String
    Cloudflare account ID
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel.
    tunnelId String
    UUID of the tunnel.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi