Akamai

Pulumi Official
Package maintained by Pulumi
v2.9.0 published on Wednesday, Apr 6, 2022 by Pulumi

getAppSecAdvancedSettingsLogging

Scopes: Security configuration; security policy

Returns information about your HTTP header logging controls. By default, information is returned for all the security policies in the configuration; however, you can return data for a single policy by using the security_policy_id parameter. The returned information is described in the ConfigHeaderLog members section of the Application Security API.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/advanced-settings/logging

Output Options

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

  • json. JSON-formatted list of information about the logging settings.
  • output_text. Tabular report showing the logging settings.

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 customRules = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecCustomRules.InvokeAsync(new Akamai.GetAppSecCustomRulesArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.CustomRulesOutputText = customRules.Apply(customRules => customRules.OutputText);
        this.CustomRulesJson = customRules.Apply(customRules => customRules.Json);
        this.CustomRulesConfigId = customRules.Apply(customRules => customRules.ConfigId);
        var specificCustomRule = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecCustomRules.InvokeAsync(new Akamai.GetAppSecCustomRulesArgs
        {
            ConfigId = configuration.ConfigId,
            CustomRuleId = 60029316,
        })));
        this.SpecificCustomRuleJson = specificCustomRule.Apply(specificCustomRule => specificCustomRule.Json);
    }

    [Output("customRulesOutputText")]
    public Output<string> CustomRulesOutputText { get; set; }
    [Output("customRulesJson")]
    public Output<string> CustomRulesJson { get; set; }
    [Output("customRulesConfigId")]
    public Output<string> CustomRulesConfigId { get; set; }
    [Output("specificCustomRuleJson")]
    public Output<string> SpecificCustomRuleJson { 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 {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		customRules, err := akamai.GetAppSecCustomRules(ctx, &GetAppSecCustomRulesArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("customRulesOutputText", customRules.OutputText)
		ctx.Export("customRulesJson", customRules.Json)
		ctx.Export("customRulesConfigId", customRules.ConfigId)
		specificCustomRule, err := akamai.GetAppSecCustomRules(ctx, &GetAppSecCustomRulesArgs{
			ConfigId:     configuration.ConfigId,
			CustomRuleId: pulumi.IntRef(60029316),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("specificCustomRuleJson", specificCustomRule.Json)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
custom_rules = akamai.get_app_sec_custom_rules(config_id=configuration.config_id)
pulumi.export("customRulesOutputText", custom_rules.output_text)
pulumi.export("customRulesJson", custom_rules.json)
pulumi.export("customRulesConfigId", custom_rules.config_id)
specific_custom_rule = akamai.get_app_sec_custom_rules(config_id=configuration.config_id,
    custom_rule_id=60029316)
pulumi.export("specificCustomRuleJson", specific_custom_rule.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const customRules = configuration.then(configuration => akamai.getAppSecCustomRules({
    configId: configuration.configId,
}));
export const customRulesOutputText = customRules.then(customRules => customRules.outputText);
export const customRulesJson = customRules.then(customRules => customRules.json);
export const customRulesConfigId = customRules.then(customRules => customRules.configId);
const specificCustomRule = configuration.then(configuration => akamai.getAppSecCustomRules({
    configId: configuration.configId,
    customRuleId: "60029316",
}));
export const specificCustomRuleJson = specificCustomRule.then(specificCustomRule => specificCustomRule.json);

Coming soon!

Using getAppSecAdvancedSettingsLogging

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 getAppSecAdvancedSettingsLogging(args: GetAppSecAdvancedSettingsLoggingArgs, opts?: InvokeOptions): Promise<GetAppSecAdvancedSettingsLoggingResult>
function getAppSecAdvancedSettingsLoggingOutput(args: GetAppSecAdvancedSettingsLoggingOutputArgs, opts?: InvokeOptions): Output<GetAppSecAdvancedSettingsLoggingResult>
def get_app_sec_advanced_settings_logging(config_id: Optional[int] = None,
                                          security_policy_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetAppSecAdvancedSettingsLoggingResult
def get_app_sec_advanced_settings_logging_output(config_id: Optional[pulumi.Input[int]] = None,
                                          security_policy_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetAppSecAdvancedSettingsLoggingResult]
func LookupAppSecAdvancedSettingsLogging(ctx *Context, args *LookupAppSecAdvancedSettingsLoggingArgs, opts ...InvokeOption) (*LookupAppSecAdvancedSettingsLoggingResult, error)
func LookupAppSecAdvancedSettingsLoggingOutput(ctx *Context, args *LookupAppSecAdvancedSettingsLoggingOutputArgs, opts ...InvokeOption) LookupAppSecAdvancedSettingsLoggingResultOutput

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

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

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration associated with the logging settings.

SecurityPolicyId string

. Unique identifier of the security policy associated with the logging settings. If not included, information is returned for all your security policies.

ConfigId int

. Unique identifier of the security configuration associated with the logging settings.

SecurityPolicyId string

. Unique identifier of the security policy associated with the logging settings. If not included, information is returned for all your security policies.

configId Integer

. Unique identifier of the security configuration associated with the logging settings.

securityPolicyId String

. Unique identifier of the security policy associated with the logging settings. If not included, information is returned for all your security policies.

configId number

. Unique identifier of the security configuration associated with the logging settings.

securityPolicyId string

. Unique identifier of the security policy associated with the logging settings. If not included, information is returned for all your security policies.

config_id int

. Unique identifier of the security configuration associated with the logging settings.

security_policy_id str

. Unique identifier of the security policy associated with the logging settings. If not included, information is returned for all your security policies.

configId Number

. Unique identifier of the security configuration associated with the logging settings.

securityPolicyId String

. Unique identifier of the security policy associated with the logging settings. If not included, information is returned for all your security policies.

getAppSecAdvancedSettingsLogging Result

The following output properties are available:

ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
SecurityPolicyId string
ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
SecurityPolicyId string
configId Integer
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
securityPolicyId String
configId number
id string

The provider-assigned unique ID for this managed resource.

json string
outputText string
securityPolicyId string
config_id int
id str

The provider-assigned unique ID for this managed resource.

json str
output_text str
security_policy_id str
configId Number
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
securityPolicyId String

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.