Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

getAppSecAttackGroups

Use the akamai.getAppSecAttackGroups data source to list the action and condition-exception information for an attack group or groups.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        var attackGroup = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecAttackGroups.InvokeAsync(new Akamai.GetAppSecAttackGroupsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
            AttackGroup = @var.Attack_group,
        })));
        this.AttackGroupAction = akamai_appsec_attack_groups.Attack_group.Attack_group_action;
        this.ConditionException = akamai_appsec_attack_groups.Attack_group.Condition_exception;
        this.Json = akamai_appsec_attack_groups.Attack_group.Json;
        this.OutputText = akamai_appsec_attack_groups.Attack_group.Output_text;
    }

    [Output("attackGroupAction")]
    public Output<string> AttackGroupAction { get; set; }
    [Output("conditionException")]
    public Output<string> ConditionException { get; set; }
    [Output("json")]
    public Output<string> Json { get; set; }
    [Output("outputText")]
    public Output<string> OutputText { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v2/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		opt1 := _var.Attack_group
		_, err = akamai.GetAppSecAttackGroups(ctx, &GetAppSecAttackGroupsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: _var.Security_policy_id,
			AttackGroup:      &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("attackGroupAction", akamai_appsec_attack_groups.Attack_group.Attack_group_action)
		ctx.Export("conditionException", akamai_appsec_attack_groups.Attack_group.Condition_exception)
		ctx.Export("json", akamai_appsec_attack_groups.Attack_group.Json)
		ctx.Export("outputText", akamai_appsec_attack_groups.Attack_group.Output_text)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
attack_group = akamai.get_app_sec_attack_groups(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    attack_group=var["attack_group"])
pulumi.export("attackGroupAction", akamai_appsec_attack_groups["attack_group"]["attack_group_action"])
pulumi.export("conditionException", akamai_appsec_attack_groups["attack_group"]["condition_exception"])
pulumi.export("json", akamai_appsec_attack_groups["attack_group"]["json"])
pulumi.export("outputText", akamai_appsec_attack_groups["attack_group"]["output_text"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const attackGroup = configuration.then(configuration => akamai.getAppSecAttackGroups({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
    attackGroup: _var.attack_group,
}));
export const attackGroupAction = akamai_appsec_attack_groups.attack_group.attack_group_action;
export const conditionException = akamai_appsec_attack_groups.attack_group.condition_exception;
export const json = akamai_appsec_attack_groups.attack_group.json;
export const outputText = akamai_appsec_attack_groups.attack_group.output_text;

Using getAppSecAttackGroups

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 getAppSecAttackGroups(args: GetAppSecAttackGroupsArgs, opts?: InvokeOptions): Promise<GetAppSecAttackGroupsResult>
function getAppSecAttackGroupsOutput(args: GetAppSecAttackGroupsOutputArgs, opts?: InvokeOptions): Output<GetAppSecAttackGroupsResult>
def get_app_sec_attack_groups(attack_group: Optional[str] = None,
                              config_id: Optional[int] = None,
                              security_policy_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppSecAttackGroupsResult
def get_app_sec_attack_groups_output(attack_group: Optional[pulumi.Input[str]] = None,
                              config_id: Optional[pulumi.Input[int]] = None,
                              security_policy_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAppSecAttackGroupsResult]
func GetAppSecAttackGroups(ctx *Context, args *GetAppSecAttackGroupsArgs, opts ...InvokeOption) (*GetAppSecAttackGroupsResult, error)
func GetAppSecAttackGroupsOutput(ctx *Context, args *GetAppSecAttackGroupsOutputArgs, opts ...InvokeOption) GetAppSecAttackGroupsResultOutput

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

public static class GetAppSecAttackGroups 
{
    public static Task<GetAppSecAttackGroupsResult> InvokeAsync(GetAppSecAttackGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecAttackGroupsResult> Invoke(GetAppSecAttackGroupsInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
AttackGroup string
The ID of the attack group to use.
ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
AttackGroup string
The ID of the attack group to use.
configId number
The ID of the security configuration to use.
securityPolicyId string
The ID of the security policy to use.
attackGroup string
The ID of the attack group to use.
config_id int
The ID of the security configuration to use.
security_policy_id str
The ID of the security policy to use.
attack_group str
The ID of the attack group to use.

getAppSecAttackGroups Result

The following output properties are available:

AttackGroupAction string
The attack group’s action, either alert, deny, or none.
ConditionException string
The attack group’s conditions and exceptions.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the action and condition-exception information for the specified attack group. This output is only generated if an attack group is specified.
OutputText string
A tabular display showing, for the specified attack group or groups, the attack group’s action and boolean values indicating whether conditions and exceptions are present.
SecurityPolicyId string
AttackGroup string
AttackGroupAction string
The attack group’s action, either alert, deny, or none.
ConditionException string
The attack group’s conditions and exceptions.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the action and condition-exception information for the specified attack group. This output is only generated if an attack group is specified.
OutputText string
A tabular display showing, for the specified attack group or groups, the attack group’s action and boolean values indicating whether conditions and exceptions are present.
SecurityPolicyId string
AttackGroup string
attackGroupAction string
The attack group’s action, either alert, deny, or none.
conditionException string
The attack group’s conditions and exceptions.
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of the action and condition-exception information for the specified attack group. This output is only generated if an attack group is specified.
outputText string
A tabular display showing, for the specified attack group or groups, the attack group’s action and boolean values indicating whether conditions and exceptions are present.
securityPolicyId string
attackGroup string
attack_group_action str
The attack group’s action, either alert, deny, or none.
condition_exception str
The attack group’s conditions and exceptions.
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of the action and condition-exception information for the specified attack group. This output is only generated if an attack group is specified.
output_text str
A tabular display showing, for the specified attack group or groups, the attack group’s action and boolean values indicating whether conditions and exceptions are present.
security_policy_id str
attack_group str

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.