getAppSecEvalGroups

Use the akamai.getAppSecEvalGroups data source to list the action and condition-exception information for an evaluation attack group or groups. BETA This is Adaptive Security Engine(ASE) related data source. Please contact your akamai representative if you want to learn more

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 evalAttackGroup = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecEvalGroups.InvokeAsync(new Akamai.GetAppSecEvalGroupsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
            AttackGroup = @var.Attack_group,
        })));
        this.EvalAttackGroupAction = evalAttackGroup.Apply(evalAttackGroup => evalAttackGroup.AttackGroupAction);
        this.ConditionException = evalAttackGroup.Apply(evalAttackGroup => evalAttackGroup.ConditionException);
        this.Json = evalAttackGroup.Apply(evalAttackGroup => evalAttackGroup.Json);
        this.OutputText = evalAttackGroup.Apply(evalAttackGroup => evalAttackGroup.OutputText);
    }

    [Output("evalAttackGroupAction")]
    public Output<string> EvalAttackGroupAction { 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
		evalAttackGroup, err := akamai.GetAppSecEvalGroups(ctx, &GetAppSecEvalGroupsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: _var.Security_policy_id,
			AttackGroup:      &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("evalAttackGroupAction", evalAttackGroup.AttackGroupAction)
		ctx.Export("conditionException", evalAttackGroup.ConditionException)
		ctx.Export("json", evalAttackGroup.Json)
		ctx.Export("outputText", evalAttackGroup.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
eval_attack_group = akamai.get_app_sec_eval_groups(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    attack_group=var["attack_group"])
pulumi.export("evalAttackGroupAction", eval_attack_group.attack_group_action)
pulumi.export("conditionException", eval_attack_group.condition_exception)
pulumi.export("json", eval_attack_group.json)
pulumi.export("outputText", eval_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 evalAttackGroup = configuration.then(configuration => akamai.getAppSecEvalGroups({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
    attackGroup: _var.attack_group,
}));
export const evalAttackGroupAction = evalAttackGroup.then(evalAttackGroup => evalAttackGroup.attackGroupAction);
export const conditionException = evalAttackGroup.then(evalAttackGroup => evalAttackGroup.conditionException);
export const json = evalAttackGroup.then(evalAttackGroup => evalAttackGroup.json);
export const outputText = evalAttackGroup.then(evalAttackGroup => evalAttackGroup.outputText);

Using getAppSecEvalGroups

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 getAppSecEvalGroups(args: GetAppSecEvalGroupsArgs, opts?: InvokeOptions): Promise<GetAppSecEvalGroupsResult>
function getAppSecEvalGroupsOutput(args: GetAppSecEvalGroupsOutputArgs, opts?: InvokeOptions): Output<GetAppSecEvalGroupsResult>
def get_app_sec_eval_groups(attack_group: Optional[str] = None,
                            config_id: Optional[int] = None,
                            security_policy_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetAppSecEvalGroupsResult
def get_app_sec_eval_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[GetAppSecEvalGroupsResult]
func GetAppSecEvalGroups(ctx *Context, args *GetAppSecEvalGroupsArgs, opts ...InvokeOption) (*GetAppSecEvalGroupsResult, error)
func GetAppSecEvalGroupsOutput(ctx *Context, args *GetAppSecEvalGroupsOutputArgs, opts ...InvokeOption) GetAppSecEvalGroupsResultOutput

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

public static class GetAppSecEvalGroups 
{
    public static Task<GetAppSecEvalGroupsResult> InvokeAsync(GetAppSecEvalGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecEvalGroupsResult> Invoke(GetAppSecEvalGroupsInvokeArgs 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 eval 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 eval 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 eval 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 eval attack group to use.

getAppSecEvalGroups Result

The following output properties are available:

AttackGroupAction string
The eval attack group’s action, either alert, `d
ConditionException string
The eval 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 eval attack group. This output is only generated if an attack group is specified.
OutputText string
A tabular display showing, for the specified eval attack group or groups, the eval attack group’s action and boolean values indicating whether conditions and exceptions are present.
SecurityPolicyId string
AttackGroup string
AttackGroupAction string
The eval attack group’s action, either alert, `d
ConditionException string
The eval 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 eval attack group. This output is only generated if an attack group is specified.
OutputText string
A tabular display showing, for the specified eval attack group or groups, the eval attack group’s action and boolean values indicating whether conditions and exceptions are present.
SecurityPolicyId string
AttackGroup string
attackGroupAction string
The eval attack group’s action, either alert, `d
conditionException string
The eval 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 eval attack group. This output is only generated if an attack group is specified.
outputText string
A tabular display showing, for the specified eval attack group or groups, the eval attack group’s action and boolean values indicating whether conditions and exceptions are present.
securityPolicyId string
attackGroup string
attack_group_action str
The eval attack group’s action, either alert, `d
condition_exception str
The eval 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 eval attack group. This output is only generated if an attack group is specified.
output_text str
A tabular display showing, for the specified eval attack group or groups, the eval 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.