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

gcore.getWaapSecurityInsightType

Explore with Pulumi AI

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

    Represent WAAP security insight type

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const attackOnDisabledPolicy = gcore.getWaapSecurityInsightType({
        name: "Attack on disabled policy",
    });
    export const insightType = attackOnDisabledPolicy.then(attackOnDisabledPolicy => attackOnDisabledPolicy.id);
    
    import pulumi
    import pulumi_gcore as gcore
    
    attack_on_disabled_policy = gcore.get_waap_security_insight_type(name="Attack on disabled policy")
    pulumi.export("insightType", attack_on_disabled_policy.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 {
    		attackOnDisabledPolicy, err := gcore.GetWaapSecurityInsightType(ctx, &gcore.GetWaapSecurityInsightTypeArgs{
    			Name: "Attack on disabled policy",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("insightType", attackOnDisabledPolicy.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var attackOnDisabledPolicy = Gcore.GetWaapSecurityInsightType.Invoke(new()
        {
            Name = "Attack on disabled policy",
        });
    
        return new Dictionary<string, object?>
        {
            ["insightType"] = attackOnDisabledPolicy.Apply(getWaapSecurityInsightTypeResult => getWaapSecurityInsightTypeResult.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.GetWaapSecurityInsightTypeArgs;
    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 attackOnDisabledPolicy = GcoreFunctions.getWaapSecurityInsightType(GetWaapSecurityInsightTypeArgs.builder()
                .name("Attack on disabled policy")
                .build());
    
            ctx.export("insightType", attackOnDisabledPolicy.applyValue(getWaapSecurityInsightTypeResult -> getWaapSecurityInsightTypeResult.id()));
        }
    }
    
    variables:
      attackOnDisabledPolicy:
        fn::invoke:
          function: gcore:getWaapSecurityInsightType
          arguments:
            name: Attack on disabled policy
    outputs:
      insightType: ${attackOnDisabledPolicy.id}
    

    Using getWaapSecurityInsightType

    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 getWaapSecurityInsightType(args: GetWaapSecurityInsightTypeArgs, opts?: InvokeOptions): Promise<GetWaapSecurityInsightTypeResult>
    function getWaapSecurityInsightTypeOutput(args: GetWaapSecurityInsightTypeOutputArgs, opts?: InvokeOptions): Output<GetWaapSecurityInsightTypeResult>
    def get_waap_security_insight_type(id: Optional[str] = None,
                                       name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetWaapSecurityInsightTypeResult
    def get_waap_security_insight_type_output(id: Optional[pulumi.Input[str]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetWaapSecurityInsightTypeResult]
    func GetWaapSecurityInsightType(ctx *Context, args *GetWaapSecurityInsightTypeArgs, opts ...InvokeOption) (*GetWaapSecurityInsightTypeResult, error)
    func GetWaapSecurityInsightTypeOutput(ctx *Context, args *GetWaapSecurityInsightTypeOutputArgs, opts ...InvokeOption) GetWaapSecurityInsightTypeResultOutput

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

    public static class GetWaapSecurityInsightType 
    {
        public static Task<GetWaapSecurityInsightTypeResult> InvokeAsync(GetWaapSecurityInsightTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetWaapSecurityInsightTypeResult> Invoke(GetWaapSecurityInsightTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWaapSecurityInsightTypeResult> getWaapSecurityInsightType(GetWaapSecurityInsightTypeArgs args, InvokeOptions options)
    public static Output<GetWaapSecurityInsightTypeResult> getWaapSecurityInsightType(GetWaapSecurityInsightTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getWaapSecurityInsightType:getWaapSecurityInsightType
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getWaapSecurityInsightType Result

    The following output properties are available:

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

    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