1. Packages
  2. Zenduty Provider
  3. API Docs
  4. getTags
zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty

zenduty.getTags

Explore with Pulumi AI

zenduty logo
zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty
    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const productionTags = zenduty.getTags({
        teamId: "",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    production_tags = zenduty.get_tags(team_id="")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.LookupTags(ctx, &zenduty.LookupTagsArgs{
    			TeamId: "",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var productionTags = Zenduty.GetTags.Invoke(new()
        {
            TeamId = "",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.inputs.GetTagsArgs;
    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 productionTags = ZendutyFunctions.getTags(GetTagsArgs.builder()
                .teamId("")
                .build());
    
        }
    }
    
    variables:
      productionTags:
        fn::invoke:
          function: zenduty:getTags
          arguments:
            teamId: ""
    

    or

    import * as pulumi from "@pulumi/pulumi";
    
    export const zendutyTags = data.zenduty_tags.production_tags.tags;
    
    import pulumi
    
    pulumi.export("zendutyTags", data["zenduty_tags"]["production_tags"]["tags"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("zendutyTags", data.Zenduty_tags.Production_tags.Tags)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["zendutyTags"] = data.Zenduty_tags.Production_tags.Tags,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
            ctx.export("zendutyTags", data.zenduty_tags().production_tags().tags());
        }
    }
    
    outputs:
      zendutyTags: ${data.zenduty_tags.production_tags.tags}
    

    Using getTags

    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 getTags(args: GetTagsArgs, opts?: InvokeOptions): Promise<GetTagsResult>
    function getTagsOutput(args: GetTagsOutputArgs, opts?: InvokeOptions): Output<GetTagsResult>
    def get_tags(id: Optional[str] = None,
                 team_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTagsResult
    def get_tags_output(id: Optional[pulumi.Input[str]] = None,
                 team_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetTagsResult]
    func LookupTags(ctx *Context, args *LookupTagsArgs, opts ...InvokeOption) (*LookupTagsResult, error)
    func LookupTagsOutput(ctx *Context, args *LookupTagsOutputArgs, opts ...InvokeOption) LookupTagsResultOutput

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

    public static class GetTags 
    {
        public static Task<GetTagsResult> InvokeAsync(GetTagsArgs args, InvokeOptions? opts = null)
        public static Output<GetTagsResult> Invoke(GetTagsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTagsResult> getTags(GetTagsArgs args, InvokeOptions options)
    public static Output<GetTagsResult> getTags(GetTagsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zenduty:index/getTags:getTags
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    The UniqueID of the team to query.
    Id string
    TeamId string
    The UniqueID of the team to query.
    Id string
    teamId String
    The UniqueID of the team to query.
    id String
    teamId string
    The UniqueID of the team to query.
    id string
    team_id str
    The UniqueID of the team to query.
    id str
    teamId String
    The UniqueID of the team to query.
    id String

    getTags Result

    The following output properties are available:

    Supporting Types

    GetTagsTag

    Color string
    CreationDate string
    Name string
    Team string
    UniqueId string
    Color string
    CreationDate string
    Name string
    Team string
    UniqueId string
    color String
    creationDate String
    name String
    team String
    uniqueId String
    color string
    creationDate string
    name string
    team string
    uniqueId string
    color String
    creationDate String
    name String
    team String
    uniqueId String

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty logo
    zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty