Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

getAppSecRatePolicyActions

Scopes: Security policy; rate policy

Returns information about your rate policy actions. Actions specify what happens any time a rate policy 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}/rate-policies

Output Options

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

  • output_text. Tabular report showing the ID, IPv4 action, and IPv6 action of the rate policies.

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 ratePolicyActionsAppSecRatePolicyActions = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecRatePolicyActions.InvokeAsync(new Akamai.GetAppSecRatePolicyActionsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = "gms1_134637",
        })));
        this.RatePolicyActions = ratePolicyActionsAppSecRatePolicyActions.Apply(ratePolicyActionsAppSecRatePolicyActions => ratePolicyActionsAppSecRatePolicyActions.OutputText);
    }

    [Output("ratePolicyActions")]
    public Output<string> RatePolicyActions { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		ratePolicyActionsAppSecRatePolicyActions, err := akamai.GetAppSecRatePolicyActions(ctx, &GetAppSecRatePolicyActionsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: "gms1_134637",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ratePolicyActions", ratePolicyActionsAppSecRatePolicyActions.OutputText)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.inputs.GetAppSecRatePolicyActionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
            .name("Documentation")
            .build());

        final var ratePolicyActionsAppSecRatePolicyActions = AkamaiFunctions.getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs.builder()
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .securityPolicyId("gms1_134637")
            .build());

        ctx.export("ratePolicyActions", ratePolicyActionsAppSecRatePolicyActions.applyValue(getAppSecRatePolicyActionsResult -> getAppSecRatePolicyActionsResult.outputText()));
    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
rate_policy_actions_app_sec_rate_policy_actions = akamai.get_app_sec_rate_policy_actions(config_id=configuration.config_id,
    security_policy_id="gms1_134637")
pulumi.export("ratePolicyActions", rate_policy_actions_app_sec_rate_policy_actions.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const ratePolicyActionsAppSecRatePolicyActions = configuration.then(configuration => akamai.getAppSecRatePolicyActions({
    configId: configuration.configId,
    securityPolicyId: "gms1_134637",
}));
export const ratePolicyActions = ratePolicyActionsAppSecRatePolicyActions.then(ratePolicyActionsAppSecRatePolicyActions => ratePolicyActionsAppSecRatePolicyActions.outputText);
variables:
  configuration:
    Fn::Invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation
  ratePolicyActionsAppSecRatePolicyActions:
    Fn::Invoke:
      Function: akamai:getAppSecRatePolicyActions
      Arguments:
        configId: ${configuration.configId}
        securityPolicyId: gms1_134637
outputs:
  ratePolicyActions: ${ratePolicyActionsAppSecRatePolicyActions.outputText}

Using getAppSecRatePolicyActions

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 getAppSecRatePolicyActions(args: GetAppSecRatePolicyActionsArgs, opts?: InvokeOptions): Promise<GetAppSecRatePolicyActionsResult>
function getAppSecRatePolicyActionsOutput(args: GetAppSecRatePolicyActionsOutputArgs, opts?: InvokeOptions): Output<GetAppSecRatePolicyActionsResult>
def get_app_sec_rate_policy_actions(config_id: Optional[int] = None,
                                    rate_policy_id: Optional[int] = None,
                                    security_policy_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAppSecRatePolicyActionsResult
def get_app_sec_rate_policy_actions_output(config_id: Optional[pulumi.Input[int]] = None,
                                    rate_policy_id: Optional[pulumi.Input[int]] = None,
                                    security_policy_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetAppSecRatePolicyActionsResult]
func GetAppSecRatePolicyActions(ctx *Context, args *GetAppSecRatePolicyActionsArgs, opts ...InvokeOption) (*GetAppSecRatePolicyActionsResult, error)
func GetAppSecRatePolicyActionsOutput(ctx *Context, args *GetAppSecRatePolicyActionsOutputArgs, opts ...InvokeOption) GetAppSecRatePolicyActionsResultOutput

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

public static class GetAppSecRatePolicyActions 
{
    public static Task<GetAppSecRatePolicyActionsResult> InvokeAsync(GetAppSecRatePolicyActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecRatePolicyActionsResult> Invoke(GetAppSecRatePolicyActionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppSecRatePolicyActionsResult> getAppSecRatePolicyActions(GetAppSecRatePolicyActionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getAppSecRatePolicyActions:getAppSecRatePolicyActions
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration associated with the rate policies and rate policy actions.

SecurityPolicyId string

. Unique identifier of the security policy associated with the rate policies and rate policy actions.

RatePolicyId int

. Unique identifier of the rate policy you want to return action information for. If not included, action information is returned for all your rate policies.

ConfigId int

. Unique identifier of the security configuration associated with the rate policies and rate policy actions.

SecurityPolicyId string

. Unique identifier of the security policy associated with the rate policies and rate policy actions.

RatePolicyId int

. Unique identifier of the rate policy you want to return action information for. If not included, action information is returned for all your rate policies.

configId Integer

. Unique identifier of the security configuration associated with the rate policies and rate policy actions.

securityPolicyId String

. Unique identifier of the security policy associated with the rate policies and rate policy actions.

ratePolicyId Integer

. Unique identifier of the rate policy you want to return action information for. If not included, action information is returned for all your rate policies.

configId number

. Unique identifier of the security configuration associated with the rate policies and rate policy actions.

securityPolicyId string

. Unique identifier of the security policy associated with the rate policies and rate policy actions.

ratePolicyId number

. Unique identifier of the rate policy you want to return action information for. If not included, action information is returned for all your rate policies.

config_id int

. Unique identifier of the security configuration associated with the rate policies and rate policy actions.

security_policy_id str

. Unique identifier of the security policy associated with the rate policies and rate policy actions.

rate_policy_id int

. Unique identifier of the rate policy you want to return action information for. If not included, action information is returned for all your rate policies.

configId Number

. Unique identifier of the security configuration associated with the rate policies and rate policy actions.

securityPolicyId String

. Unique identifier of the security policy associated with the rate policies and rate policy actions.

ratePolicyId Number

. Unique identifier of the rate policy you want to return action information for. If not included, action information is returned for all your rate policies.

getAppSecRatePolicyActions Result

The following output properties are available:

ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

OutputText string
SecurityPolicyId string
RatePolicyId int
ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

OutputText string
SecurityPolicyId string
RatePolicyId int
configId Integer
id String

The provider-assigned unique ID for this managed resource.

outputText String
securityPolicyId String
ratePolicyId Integer
configId number
id string

The provider-assigned unique ID for this managed resource.

outputText string
securityPolicyId string
ratePolicyId number
config_id int
id str

The provider-assigned unique ID for this managed resource.

output_text str
security_policy_id str
rate_policy_id int
configId Number
id String

The provider-assigned unique ID for this managed resource.

outputText String
securityPolicyId String
ratePolicyId Number

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.