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

cloudflare.getZeroTrustAccessTag

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 exampleZeroTrustAccessTag = cloudflare.getZeroTrustAccessTag({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        tagName: "engineers",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_access_tag = cloudflare.get_zero_trust_access_tag(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        tag_name="engineers")
    
    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.LookupZeroTrustAccessTag(ctx, &cloudflare.LookupZeroTrustAccessTagArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			TagName:   pulumi.StringRef("engineers"),
    		}, 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 exampleZeroTrustAccessTag = Cloudflare.GetZeroTrustAccessTag.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            TagName = "engineers",
        });
    
    });
    
    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.GetZeroTrustAccessTagArgs;
    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 exampleZeroTrustAccessTag = CloudflareFunctions.getZeroTrustAccessTag(GetZeroTrustAccessTagArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .tagName("engineers")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustAccessTag:
        fn::invoke:
          function: cloudflare:getZeroTrustAccessTag
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            tagName: engineers
    

    Using getZeroTrustAccessTag

    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 getZeroTrustAccessTag(args: GetZeroTrustAccessTagArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessTagResult>
    function getZeroTrustAccessTagOutput(args: GetZeroTrustAccessTagOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessTagResult>
    def get_zero_trust_access_tag(account_id: Optional[str] = None,
                                  tag_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessTagResult
    def get_zero_trust_access_tag_output(account_id: Optional[pulumi.Input[str]] = None,
                                  tag_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessTagResult]
    func LookupZeroTrustAccessTag(ctx *Context, args *LookupZeroTrustAccessTagArgs, opts ...InvokeOption) (*LookupZeroTrustAccessTagResult, error)
    func LookupZeroTrustAccessTagOutput(ctx *Context, args *LookupZeroTrustAccessTagOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessTagResultOutput

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

    public static class GetZeroTrustAccessTag 
    {
        public static Task<GetZeroTrustAccessTagResult> InvokeAsync(GetZeroTrustAccessTagArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustAccessTagResult> Invoke(GetZeroTrustAccessTagInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustAccessTagResult> getZeroTrustAccessTag(GetZeroTrustAccessTagArgs args, InvokeOptions options)
    public static Output<GetZeroTrustAccessTagResult> getZeroTrustAccessTag(GetZeroTrustAccessTagArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustAccessTag:getZeroTrustAccessTag
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    TagName string
    The name of the tag
    AccountId string
    Identifier.
    TagName string
    The name of the tag
    accountId String
    Identifier.
    tagName String
    The name of the tag
    accountId string
    Identifier.
    tagName string
    The name of the tag
    account_id str
    Identifier.
    tag_name str
    The name of the tag
    accountId String
    Identifier.
    tagName String
    The name of the tag

    getZeroTrustAccessTag Result

    The following output properties are available:

    AccountId string
    Identifier.
    AppCount int
    The number of applications that have this tag
    CreatedAt string
    Id string
    The name of the tag
    Name string
    The name of the tag
    UpdatedAt string
    TagName string
    The name of the tag
    AccountId string
    Identifier.
    AppCount int
    The number of applications that have this tag
    CreatedAt string
    Id string
    The name of the tag
    Name string
    The name of the tag
    UpdatedAt string
    TagName string
    The name of the tag
    accountId String
    Identifier.
    appCount Integer
    The number of applications that have this tag
    createdAt String
    id String
    The name of the tag
    name String
    The name of the tag
    updatedAt String
    tagName String
    The name of the tag
    accountId string
    Identifier.
    appCount number
    The number of applications that have this tag
    createdAt string
    id string
    The name of the tag
    name string
    The name of the tag
    updatedAt string
    tagName string
    The name of the tag
    account_id str
    Identifier.
    app_count int
    The number of applications that have this tag
    created_at str
    id str
    The name of the tag
    name str
    The name of the tag
    updated_at str
    tag_name str
    The name of the tag
    accountId String
    Identifier.
    appCount Number
    The number of applications that have this tag
    createdAt String
    id String
    The name of the tag
    name String
    The name of the tag
    updatedAt String
    tagName String
    The name of the tag

    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