getAppSecReputationProfileActions

akamai.getAppSecReputationProfileActions

Scopes: Security policy; reputation profile

Returns action information for your reputation profiles. Actions specify what happens any time a profile is triggered: the issue could be ignored, the request could be denied, or an alert could be generated.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/reputation-profiles

Output Options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • action. Action taken any time the reputation profile is triggered. Valid values are:
    • alert. Record the event.
    • deny. Block the request.
    • deny_custom_{custom_deny_id}. The action defined by the custom deny is taken.
    • none. Take no action.
  • json. JSON-formatted report of the reputation profile action information.
  • output_text. Tabular report of the reputation profile action information.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var reputationProfileActions = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecReputationProfileActions.InvokeAsync(new Akamai.GetAppSecReputationProfileActionsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = "gms1_134637",
        })));
        this.ReputationProfileActionsText = reputationProfileActions.Apply(reputationProfileActions => reputationProfileActions.OutputText);
        this.ReputationProfileActionsJson = reputationProfileActions.Apply(reputationProfileActions => reputationProfileActions.Json);
        var reputationProfileActions2AppSecReputationProfileActions = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecReputationProfileActions.InvokeAsync(new Akamai.GetAppSecReputationProfileActionsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = "gms1_134637",
            ReputationProfileId = 12345,
        })));
        this.ReputationProfileActions2 = reputationProfileActions.Apply(reputationProfileActions => reputationProfileActions.Action);
    }

    [Output("reputationProfileActionsText")]
    public Output<string> ReputationProfileActionsText { get; set; }
    [Output("reputationProfileActionsJson")]
    public Output<string> ReputationProfileActionsJson { get; set; }
    [Output("reputationProfileActions2")]
    public Output<string> ReputationProfileActions2 { 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 := "Documentation"
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		reputationProfileActions, err := akamai.GetAppSecReputationProfileActions(ctx, &GetAppSecReputationProfileActionsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: "gms1_134637",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("reputationProfileActionsText", reputationProfileActions.OutputText)
		ctx.Export("reputationProfileActionsJson", reputationProfileActions.Json)
		opt1 := 12345
		_, err = akamai.GetAppSecReputationProfileActions(ctx, &GetAppSecReputationProfileActionsArgs{
			ConfigId:            configuration.ConfigId,
			SecurityPolicyId:    "gms1_134637",
			ReputationProfileId: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("reputationProfileActions2", reputationProfileActions.Action)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
reputation_profile_actions = akamai.get_app_sec_reputation_profile_actions(config_id=configuration.config_id,
    security_policy_id="gms1_134637")
pulumi.export("reputationProfileActionsText", reputation_profile_actions.output_text)
pulumi.export("reputationProfileActionsJson", reputation_profile_actions.json)
reputation_profile_actions2_app_sec_reputation_profile_actions = akamai.get_app_sec_reputation_profile_actions(config_id=configuration.config_id,
    security_policy_id="gms1_134637",
    reputation_profile_id=12345)
pulumi.export("reputationProfileActions2", reputation_profile_actions.action)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const reputationProfileActions = configuration.then(configuration => akamai.getAppSecReputationProfileActions({
    configId: configuration.configId,
    securityPolicyId: "gms1_134637",
}));
export const reputationProfileActionsText = reputationProfileActions.then(reputationProfileActions => reputationProfileActions.outputText);
export const reputationProfileActionsJson = reputationProfileActions.then(reputationProfileActions => reputationProfileActions.json);
const reputationProfileActions2AppSecReputationProfileActions = configuration.then(configuration => akamai.getAppSecReputationProfileActions({
    configId: configuration.configId,
    securityPolicyId: "gms1_134637",
    reputationProfileId: "12345",
}));
export const reputationProfileActions2 = reputationProfileActions.then(reputationProfileActions => reputationProfileActions.action);

Using getAppSecReputationProfileActions

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 getAppSecReputationProfileActions(args: GetAppSecReputationProfileActionsArgs, opts?: InvokeOptions): Promise<GetAppSecReputationProfileActionsResult>
function getAppSecReputationProfileActionsOutput(args: GetAppSecReputationProfileActionsOutputArgs, opts?: InvokeOptions): Output<GetAppSecReputationProfileActionsResult>
def get_app_sec_reputation_profile_actions(config_id: Optional[int] = None,
                                           reputation_profile_id: Optional[int] = None,
                                           security_policy_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAppSecReputationProfileActionsResult
def get_app_sec_reputation_profile_actions_output(config_id: Optional[pulumi.Input[int]] = None,
                                           reputation_profile_id: Optional[pulumi.Input[int]] = None,
                                           security_policy_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetAppSecReputationProfileActionsResult]
func GetAppSecReputationProfileActions(ctx *Context, args *GetAppSecReputationProfileActionsArgs, opts ...InvokeOption) (*GetAppSecReputationProfileActionsResult, error)
func GetAppSecReputationProfileActionsOutput(ctx *Context, args *GetAppSecReputationProfileActionsOutputArgs, opts ...InvokeOption) GetAppSecReputationProfileActionsResultOutput

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

public static class GetAppSecReputationProfileActions 
{
    public static Task<GetAppSecReputationProfileActionsResult> InvokeAsync(GetAppSecReputationProfileActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecReputationProfileActionsResult> Invoke(GetAppSecReputationProfileActionsInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
. Unique identifier of the security configuration associated with the reputation profiles.
SecurityPolicyId string
. Unique identifier of the security policy associated with the reputation profiles.
ReputationProfileId int
. Unique identifier of the reputation profile you want to return information for. If not included, information is returned for all your reputation profiles.
ConfigId int
. Unique identifier of the security configuration associated with the reputation profiles.
SecurityPolicyId string
. Unique identifier of the security policy associated with the reputation profiles.
ReputationProfileId int
. Unique identifier of the reputation profile you want to return information for. If not included, information is returned for all your reputation profiles.
configId number
. Unique identifier of the security configuration associated with the reputation profiles.
securityPolicyId string
. Unique identifier of the security policy associated with the reputation profiles.
reputationProfileId number
. Unique identifier of the reputation profile you want to return information for. If not included, information is returned for all your reputation profiles.
config_id int
. Unique identifier of the security configuration associated with the reputation profiles.
security_policy_id str
. Unique identifier of the security policy associated with the reputation profiles.
reputation_profile_id int
. Unique identifier of the reputation profile you want to return information for. If not included, information is returned for all your reputation profiles.

getAppSecReputationProfileActions Result

The following output properties are available:

Action string
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
SecurityPolicyId string
ReputationProfileId int
Action string
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
SecurityPolicyId string
ReputationProfileId int
action string
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
outputText string
securityPolicyId string
reputationProfileId number
action str
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
output_text str
security_policy_id str
reputation_profile_id int

Package Details

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