1. Packages
  2. Gcore Provider
  3. API Docs
  4. getWaapTag
gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core

gcore.getWaapTag

Explore with Pulumi AI

gcore logo
gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core

    Represent WAAP tag

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const abnormalTrafficVolumeTag = gcore.getWaapTag({
        name: "Abnormal Traffic Volume",
    });
    export const abnormalTrafficVolumeTagId = abnormalTrafficVolumeTag.then(abnormalTrafficVolumeTag => abnormalTrafficVolumeTag.id);
    
    import pulumi
    import pulumi_gcore as gcore
    
    abnormal_traffic_volume_tag = gcore.get_waap_tag(name="Abnormal Traffic Volume")
    pulumi.export("abnormalTrafficVolumeTagId", abnormal_traffic_volume_tag.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		abnormalTrafficVolumeTag, err := gcore.GetWaapTag(ctx, &gcore.GetWaapTagArgs{
    			Name: "Abnormal Traffic Volume",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("abnormalTrafficVolumeTagId", abnormalTrafficVolumeTag.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var abnormalTrafficVolumeTag = Gcore.GetWaapTag.Invoke(new()
        {
            Name = "Abnormal Traffic Volume",
        });
    
        return new Dictionary<string, object?>
        {
            ["abnormalTrafficVolumeTagId"] = abnormalTrafficVolumeTag.Apply(getWaapTagResult => getWaapTagResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetWaapTagArgs;
    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 abnormalTrafficVolumeTag = GcoreFunctions.getWaapTag(GetWaapTagArgs.builder()
                .name("Abnormal Traffic Volume")
                .build());
    
            ctx.export("abnormalTrafficVolumeTagId", abnormalTrafficVolumeTag.applyValue(getWaapTagResult -> getWaapTagResult.id()));
        }
    }
    
    variables:
      abnormalTrafficVolumeTag:
        fn::invoke:
          function: gcore:getWaapTag
          arguments:
            name: Abnormal Traffic Volume
    outputs:
      abnormalTrafficVolumeTagId: ${abnormalTrafficVolumeTag.id}
    

    Using getWaapTag

    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 getWaapTag(args: GetWaapTagArgs, opts?: InvokeOptions): Promise<GetWaapTagResult>
    function getWaapTagOutput(args: GetWaapTagOutputArgs, opts?: InvokeOptions): Output<GetWaapTagResult>
    def get_waap_tag(id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetWaapTagResult
    def get_waap_tag_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetWaapTagResult]
    func GetWaapTag(ctx *Context, args *GetWaapTagArgs, opts ...InvokeOption) (*GetWaapTagResult, error)
    func GetWaapTagOutput(ctx *Context, args *GetWaapTagOutputArgs, opts ...InvokeOption) GetWaapTagResultOutput

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

    public static class GetWaapTag 
    {
        public static Task<GetWaapTagResult> InvokeAsync(GetWaapTagArgs args, InvokeOptions? opts = null)
        public static Output<GetWaapTagResult> Invoke(GetWaapTagInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWaapTagResult> getWaapTag(GetWaapTagArgs args, InvokeOptions options)
    public static Output<GetWaapTagResult> getWaapTag(GetWaapTagArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getWaapTag:getWaapTag
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the tag.
    Id string
    The ID of this resource.
    Name string
    The name of the tag.
    Id string
    The ID of this resource.
    name String
    The name of the tag.
    id String
    The ID of this resource.
    name string
    The name of the tag.
    id string
    The ID of this resource.
    name str
    The name of the tag.
    id str
    The ID of this resource.
    name String
    The name of the tag.
    id String
    The ID of this resource.

    getWaapTag Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    The name of the tag.
    Id string
    The ID of this resource.
    Name string
    The name of the tag.
    id String
    The ID of this resource.
    name String
    The name of the tag.
    id string
    The ID of this resource.
    name string
    The name of the tag.
    id str
    The ID of this resource.
    name str
    The name of the tag.
    id String
    The ID of this resource.
    name String
    The name of the tag.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core