getAppSecRatePolicyActions

Use the akamai.getAppSecRatePolicyActions data source to retrieve a list of all rate policies associated with a given configuration and security policy, or the actions associated with a specific rate 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 = @var.Security_configuration,
        }));
        var ratePolicyActionsAppSecRatePolicyActions = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecRatePolicyActions.InvokeAsync(new Akamai.GetAppSecRatePolicyActionsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
        })));
        this.RatePolicyActions = ratePolicyActionsAppSecRatePolicyActions.Apply(ratePolicyActionsAppSecRatePolicyActions => ratePolicyActionsAppSecRatePolicyActions.OutputText);
    }

    [Output("ratePolicyActions")]
    public Output<string> RatePolicyActions { 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, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ratePolicyActionsAppSecRatePolicyActions, err := akamai.GetAppSecRatePolicyActions(ctx, &akamai.GetAppSecRatePolicyActionsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: _var.Security_policy_id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ratePolicyActions", ratePolicyActionsAppSecRatePolicyActions.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
rate_policy_actions_app_sec_rate_policy_actions = akamai.get_app_sec_rate_policy_actions(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"])
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: _var.security_configuration,
});
const ratePolicyActionsAppSecRatePolicyActions = configuration.then(configuration => akamai.getAppSecRatePolicyActions({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
}));
export const ratePolicyActions = ratePolicyActionsAppSecRatePolicyActions.then(ratePolicyActionsAppSecRatePolicyActions => ratePolicyActionsAppSecRatePolicyActions.outputText);

Using getAppSecRatePolicyActions

function getAppSecRatePolicyActions(args: GetAppSecRatePolicyActionsArgs, opts?: InvokeOptions): Promise<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
func GetAppSecRatePolicyActions(ctx *Context, args *GetAppSecRatePolicyActionsArgs, opts ...InvokeOption) (*GetAppSecRatePolicyActionsResult, error)

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

public static class GetAppSecRatePolicyActions {
    public static Task<GetAppSecRatePolicyActionsResult> InvokeAsync(GetAppSecRatePolicyActionsArgs 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.
RatePolicyId int
The ID of the rate policy to use. If not supplied, information about all rate policies will be returned.
ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
RatePolicyId int
The ID of the rate policy to use. If not supplied, information about all rate policies will be returned.
configId number
The ID of the security configuration to use.
securityPolicyId string
The ID of the security policy to use.
ratePolicyId number
The ID of the rate policy to use. If not supplied, information about all rate policies 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.
rate_policy_id int
The ID of the rate policy to use. If not supplied, information about all rate policies will be returned.

getAppSecRatePolicyActions 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 IPv4Action and IPv6Action of the indicated security policy.
SecurityPolicyId string
RatePolicyId int
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the ID IPv4Action and IPv6Action of the indicated security policy.
SecurityPolicyId string
RatePolicyId int
configId number
id string
The provider-assigned unique ID for this managed resource.
outputText string
A tabular display showing the ID IPv4Action and IPv6Action of the indicated security policy.
securityPolicyId string
ratePolicyId number
config_id int
id str
The provider-assigned unique ID for this managed resource.
output_text str
A tabular display showing the ID IPv4Action and IPv6Action of the indicated security policy.
security_policy_id str
rate_policy_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.