getAppSecCustomRuleActions

Use the akamai.getAppSecCustomRuleActions data source to retrieve information about the actions defined for the custom rules associated with a specific security configuration, version 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 = Output.Tuple(configuration, configuration).Apply(values =>
        {
            var configuration = values.Item1;
            var configuration1 = values.Item2;
            return Output.Create(Akamai.GetAppSecCustomRuleActions.InvokeAsync(new Akamai.GetAppSecCustomRuleActionsArgs
            {
                ConfigId = configuration.ConfigId,
                Version = configuration1.LatestVersion,
                PolicyId = "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.GetAppSecConfiguration(ctx, &akamai.GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		customRuleActionsAppSecCustomRuleActions, err := akamai.GetAppSecCustomRuleActions(ctx, &akamai.GetAppSecCustomRuleActionsArgs{
			ConfigId: configuration.ConfigId,
			Version:  configuration.LatestVersion,
			PolicyId: "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,
    version=configuration.latest_version,
    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 = Promise.all([configuration, configuration]).then(([configuration, configuration1]) => akamai.getAppSecCustomRuleActions({
    configId: configuration.configId,
    version: configuration1.latestVersion,
    policyId: "crAP_75829",
}));
export const customRuleActions = customRuleActionsAppSecCustomRuleActions.then(customRuleActionsAppSecCustomRuleActions => customRuleActionsAppSecCustomRuleActions.outputText);

Using getAppSecCustomRuleActions

function getAppSecCustomRuleActions(args: GetAppSecCustomRuleActionsArgs, opts?: InvokeOptions): Promise<GetAppSecCustomRuleActionsResult>
def get_app_sec_custom_rule_actions(config_id: Optional[int] = None,
                                    policy_id: Optional[str] = None,
                                    version: Optional[int] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAppSecCustomRuleActionsResult
func GetAppSecCustomRuleActions(ctx *Context, args *GetAppSecCustomRuleActionsArgs, opts ...InvokeOption) (*GetAppSecCustomRuleActionsResult, error)

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

public static class GetAppSecCustomRuleActions {
    public static Task<GetAppSecCustomRuleActionsResult> InvokeAsync(GetAppSecCustomRuleActionsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The ID of the security configuration to use.
PolicyId string
The ID of the security policy to use
Version int
The version number of the security configuration to use.
ConfigId int
The ID of the security configuration to use.
PolicyId string
The ID of the security policy to use
Version int
The version number of the security configuration to use.
configId number
The ID of the security configuration to use.
policyId string
The ID of the security policy to use
version number
The version number of the security configuration to use.
config_id int
The ID of the security configuration to use.
policy_id str
The ID of the security policy to use
version int
The version number of the security configuration to use.

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 associated with the specified security configuration, version and security policy.
PolicyId string
Version 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 associated with the specified security configuration, version and security policy.
PolicyId string
Version 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 associated with the specified security configuration, version and security policy.
policyId string
version 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 associated with the specified security configuration, version and security policy.
policy_id str
version 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.