akamai.getAppSecSlowPost
Scopes: Security policy
Returns the slow POST protection settings for the specified security configuration and policy. Slow POST protections help defend a site against attacks that try to tie up the site by using extremely slow requests and responses.
Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/slow-post
Output Options
The following options can be used to determine the information returned, and how that returned information is formatted:
output_text
. Tabular report including the following:- ACTION. Action taken any time slow POST protection is triggered. Valid values are:
- alert. Record the event.
- abort. Block the request.
- SLOW_RATE_THRESHOLD RATE. Average rate (in bytes per second over the specified time period) allowed before the specified action is triggered.
- SLOW_RATE_THRESHOLD PERIOD. Amount of time (in seconds) that the server should allow a request before marking the request as being too slow.
- DURATION_THRESHOLD TIMEOUT. Maximum amount of time (in seconds) that the first eight kilobytes of the POST body must be received in order to avoid triggering the specified action.
- ACTION. Action taken any time slow POST protection is triggered. Valid values are:
Example Usage
Basic usage
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var configuration = Akamai.GetAppSecConfiguration.Invoke(new()
{
Name = "Documentation",
});
var slowPost = Akamai.GetAppSecSlowPost.Invoke(new()
{
ConfigId = configuration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
SecurityPolicyId = "gms1_134637",
});
return new Dictionary<string, object?>
{
["slowPostOutputText"] = slowPost.Apply(getAppSecSlowPostResult => getAppSecSlowPostResult.OutputText),
};
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
Name: pulumi.StringRef("Documentation"),
}, nil)
if err != nil {
return err
}
slowPost, err := akamai.LookupAppSecSlowPost(ctx, &akamai.LookupAppSecSlowPostArgs{
ConfigId: configuration.ConfigId,
SecurityPolicyId: "gms1_134637",
}, nil)
if err != nil {
return err
}
ctx.Export("slowPostOutputText", slowPost.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.GetAppSecSlowPostArgs;
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 slowPost = AkamaiFunctions.getAppSecSlowPost(GetAppSecSlowPostArgs.builder()
.configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
.securityPolicyId("gms1_134637")
.build());
ctx.export("slowPostOutputText", slowPost.applyValue(getAppSecSlowPostResult -> getAppSecSlowPostResult.outputText()));
}
}
import pulumi
import pulumi_akamai as akamai
configuration = akamai.get_app_sec_configuration(name="Documentation")
slow_post = akamai.get_app_sec_slow_post(config_id=configuration.config_id,
security_policy_id="gms1_134637")
pulumi.export("slowPostOutputText", slow_post.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
const configuration = akamai.getAppSecConfiguration({
name: "Documentation",
});
const slowPost = configuration.then(configuration => akamai.getAppSecSlowPost({
configId: configuration.configId,
securityPolicyId: "gms1_134637",
}));
export const slowPostOutputText = slowPost.then(slowPost => slowPost.outputText);
variables:
configuration:
fn::invoke:
Function: akamai:getAppSecConfiguration
Arguments:
name: Documentation
slowPost:
fn::invoke:
Function: akamai:getAppSecSlowPost
Arguments:
configId: ${configuration.configId}
securityPolicyId: gms1_134637
outputs:
slowPostOutputText: ${slowPost.outputText}
Using getAppSecSlowPost
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 getAppSecSlowPost(args: GetAppSecSlowPostArgs, opts?: InvokeOptions): Promise<GetAppSecSlowPostResult>
function getAppSecSlowPostOutput(args: GetAppSecSlowPostOutputArgs, opts?: InvokeOptions): Output<GetAppSecSlowPostResult>
def get_app_sec_slow_post(config_id: Optional[int] = None,
security_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppSecSlowPostResult
def get_app_sec_slow_post_output(config_id: Optional[pulumi.Input[int]] = None,
security_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppSecSlowPostResult]
func LookupAppSecSlowPost(ctx *Context, args *LookupAppSecSlowPostArgs, opts ...InvokeOption) (*LookupAppSecSlowPostResult, error)
func LookupAppSecSlowPostOutput(ctx *Context, args *LookupAppSecSlowPostOutputArgs, opts ...InvokeOption) LookupAppSecSlowPostResultOutput
> Note: This function is named LookupAppSecSlowPost
in the Go SDK.
public static class GetAppSecSlowPost
{
public static Task<GetAppSecSlowPostResult> InvokeAsync(GetAppSecSlowPostArgs args, InvokeOptions? opts = null)
public static Output<GetAppSecSlowPostResult> Invoke(GetAppSecSlowPostInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppSecSlowPostResult> getAppSecSlowPost(GetAppSecSlowPostArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: akamai:index/getAppSecSlowPost:getAppSecSlowPost
arguments:
# arguments dictionary
The following arguments are supported:
- Config
Id int . Unique identifier of the security configuration associated with the slow POST settings.
- Security
Policy stringId . Unique identifier of the security policy associated with the slow POST settings.
- Config
Id int . Unique identifier of the security configuration associated with the slow POST settings.
- Security
Policy stringId . Unique identifier of the security policy associated with the slow POST settings.
- config
Id Integer . Unique identifier of the security configuration associated with the slow POST settings.
- security
Policy StringId . Unique identifier of the security policy associated with the slow POST settings.
- config
Id number . Unique identifier of the security configuration associated with the slow POST settings.
- security
Policy stringId . Unique identifier of the security policy associated with the slow POST settings.
- config_
id int . Unique identifier of the security configuration associated with the slow POST settings.
- security_
policy_ strid . Unique identifier of the security policy associated with the slow POST settings.
- config
Id Number . Unique identifier of the security configuration associated with the slow POST settings.
- security
Policy StringId . Unique identifier of the security policy associated with the slow POST settings.
getAppSecSlowPost Result
The following output properties are available:
- Config
Id int - Id string
The provider-assigned unique ID for this managed resource.
- Json string
- Output
Text string - Security
Policy stringId
- Config
Id int - Id string
The provider-assigned unique ID for this managed resource.
- Json string
- Output
Text string - Security
Policy stringId
- config
Id Integer - id String
The provider-assigned unique ID for this managed resource.
- json String
- output
Text String - security
Policy StringId
- config
Id number - id string
The provider-assigned unique ID for this managed resource.
- json string
- output
Text string - security
Policy stringId
- config_
id int - id str
The provider-assigned unique ID for this managed resource.
- json str
- output_
text str - security_
policy_ strid
- config
Id Number - id String
The provider-assigned unique ID for this managed resource.
- json String
- output
Text String - security
Policy StringId
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.