1. Packages
  2. Cisco Catalyst SD-WAN Provider
  3. API Docs
  4. getTag
Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi

sdwan.getTag

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi

    This data source can read the Tag .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdwan from "@pulumi/sdwan";
    
    const example = sdwan.getTag({
        id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
    });
    
    import pulumi
    import pulumi_sdwan as sdwan
    
    example = sdwan.get_tag(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sdwan.LookupTag(ctx, &sdwan.LookupTagArgs{
    			Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdwan = Pulumi.Sdwan;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Sdwan.GetTag.Invoke(new()
        {
            Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdwan.SdwanFunctions;
    import com.pulumi.sdwan.inputs.GetTagArgs;
    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 example = SdwanFunctions.getTag(GetTagArgs.builder()
                .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: sdwan:getTag
          arguments:
            id: f6b2c44c-693c-4763-b010-895aa3d236bd
    

    Using getTag

    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 getTag(args: GetTagArgs, opts?: InvokeOptions): Promise<GetTagResult>
    function getTagOutput(args: GetTagOutputArgs, opts?: InvokeOptions): Output<GetTagResult>
    def get_tag(id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetTagResult
    def get_tag_output(id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetTagResult]
    func LookupTag(ctx *Context, args *LookupTagArgs, opts ...InvokeOption) (*LookupTagResult, error)
    func LookupTagOutput(ctx *Context, args *LookupTagOutputArgs, opts ...InvokeOption) LookupTagResultOutput

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

    public static class GetTag 
    {
        public static Task<GetTagResult> InvokeAsync(GetTagArgs args, InvokeOptions? opts = null)
        public static Output<GetTagResult> Invoke(GetTagInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTagResult> getTag(GetTagArgs args, InvokeOptions options)
    public static Output<GetTagResult> getTag(GetTagArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sdwan:index/getTag:getTag
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The id of the object
    Id string
    The id of the object
    id String
    The id of the object
    id string
    The id of the object
    id str
    The id of the object
    id String
    The id of the object

    getTag Result

    The following output properties are available:

    Description string
    Tag description
    Devices List<string>
    List of associated devices
    Id string
    The id of the object
    Name string
    Tag name
    Description string
    Tag description
    Devices []string
    List of associated devices
    Id string
    The id of the object
    Name string
    Tag name
    description String
    Tag description
    devices List<String>
    List of associated devices
    id String
    The id of the object
    name String
    Tag name
    description string
    Tag description
    devices string[]
    List of associated devices
    id string
    The id of the object
    name string
    Tag name
    description str
    Tag description
    devices Sequence[str]
    List of associated devices
    id str
    The id of the object
    name str
    Tag name
    description String
    Tag description
    devices List<String>
    List of associated devices
    id String
    The id of the object
    name String
    Tag name

    Package Details

    Repository
    sdwan pulumi/pulumi-sdwan
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdwan Terraform Provider.
    sdwan logo
    Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi