getAppSecCustomRuleActions

Use the akamai.getAppSecCustomRuleActions data source to retrieve information about the actions defined for the custom rules, or a specific custom rule, associated with a specific security configuration and security policy.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Akamai Tools",
        }));
        var customRuleActionsAppSecCustomRuleActions = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecCustomRuleActions.InvokeAsync(new Akamai.GetAppSecCustomRuleActionsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = "crAP_75829",
        })));
        this.CustomRuleActions = customRuleActionsAppSecCustomRuleActions.Apply(customRuleActionsAppSecCustomRuleActions => customRuleActionsAppSecCustomRuleActions.OutputText);
    }

    [Output("customRuleActions")]
    public Output<string> CustomRuleActions { 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 := "Akamai Tools"
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		customRuleActionsAppSecCustomRuleActions, err := akamai.GetAppSecCustomRuleActions(ctx, &GetAppSecCustomRuleActionsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: "crAP_75829",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("customRuleActions", customRuleActionsAppSecCustomRuleActions.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Akamai Tools")
custom_rule_actions_app_sec_custom_rule_actions = akamai.get_app_sec_custom_rule_actions(config_id=configuration.config_id,
    security_policy_id="crAP_75829")
pulumi.export("customRuleActions", custom_rule_actions_app_sec_custom_rule_actions.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
const customRuleActionsAppSecCustomRuleActions = configuration.then(configuration => akamai.getAppSecCustomRuleActions({
    configId: configuration.configId,
    securityPolicyId: "crAP_75829",
}));
export const customRuleActions = customRuleActionsAppSecCustomRuleActions.then(customRuleActionsAppSecCustomRuleActions => customRuleActionsAppSecCustomRuleActions.outputText);

Using getAppSecCustomRuleActions

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 getAppSecCustomRuleActions(args: GetAppSecCustomRuleActionsArgs, opts?: InvokeOptions): Promise<GetAppSecCustomRuleActionsResult>
function getAppSecCustomRuleActionsOutput(args: GetAppSecCustomRuleActionsOutputArgs, opts?: InvokeOptions): Output<GetAppSecCustomRuleActionsResult>
def get_app_sec_custom_rule_actions(config_id: Optional[int] = None,
                                    custom_rule_id: Optional[int] = None,
                                    security_policy_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAppSecCustomRuleActionsResult
def get_app_sec_custom_rule_actions_output(config_id: Optional[pulumi.Input[int]] = None,
                                    custom_rule_id: Optional[pulumi.Input[int]] = None,
                                    security_policy_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetAppSecCustomRuleActionsResult]
func GetAppSecCustomRuleActions(ctx *Context, args *GetAppSecCustomRuleActionsArgs, opts ...InvokeOption) (*GetAppSecCustomRuleActionsResult, error)
func GetAppSecCustomRuleActionsOutput(ctx *Context, args *GetAppSecCustomRuleActionsOutputArgs, opts ...InvokeOption) GetAppSecCustomRuleActionsResultOutput

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

public static class GetAppSecCustomRuleActions 
{
    public static Task<GetAppSecCustomRuleActionsResult> InvokeAsync(GetAppSecCustomRuleActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecCustomRuleActionsResult> Invoke(GetAppSecCustomRuleActionsInvokeArgs 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
CustomRuleId int
A specific custom rule for which to retrieve information. If not supplied, information about all custom rules will be returned.
ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use
CustomRuleId int
A specific custom rule for which to retrieve information. If not supplied, information about all custom rules will be returned.
configId number
The ID of the security configuration to use.
securityPolicyId string
The ID of the security policy to use
customRuleId number
A specific custom rule for which to retrieve information. If not supplied, information about all custom rules will be returned.
config_id int
The ID of the security configuration to use.
security_policy_id str
The ID of the security policy to use
custom_rule_id int
A specific custom rule for which to retrieve information. If not supplied, information about all custom rules will be returned.

getAppSecCustomRuleActions Result

The following output properties are available:

ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the ID, name, and action of all custom rules, or of the specific custom rule, associated with the specified security configuration, version and security policy.
SecurityPolicyId string
CustomRuleId int
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the ID, name, and action of all custom rules, or of the specific custom rule, associated with the specified security configuration, version and security policy.
SecurityPolicyId string
CustomRuleId int
configId number
id string
The provider-assigned unique ID for this managed resource.
outputText string
A tabular display showing the ID, name, and action of all custom rules, or of the specific custom rule, associated with the specified security configuration, version and security policy.
securityPolicyId string
customRuleId number
config_id int
id str
The provider-assigned unique ID for this managed resource.
output_text str
A tabular display showing the ID, name, and action of all custom rules, or of the specific custom rule, associated with the specified security configuration, version and security policy.
security_policy_id str
custom_rule_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.