getAppSecAdvancedSettingsLogging

Use the akamai.AppSecAdvancedSettingsLogging data source to retrieve information about the HTTP header logging controls for a configuration. This operation applies at the configuration level, and therefore applies to all policies within a configuration. You may retrieve these settings for a particular policy by specifying the policy using the security_policy_id parameter. The information available is described here.

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 logging = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecAdvancedSettingsLogging.InvokeAsync(new Akamai.GetAppSecAdvancedSettingsLoggingArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.AdvancedSettingsLoggingOutput = logging.Apply(logging => logging.OutputText);
        this.AdvancedSettingsLoggingJson = logging.Apply(logging => logging.Json);
        var policyOverride = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecAdvancedSettingsLogging.InvokeAsync(new Akamai.GetAppSecAdvancedSettingsLoggingArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
        })));
        this.AdvancedSettingsPolicyLoggingOutput = policyOverride.Apply(policyOverride => policyOverride.OutputText);
        this.AdvancedSettingsPolicyLoggingJson = policyOverride.Apply(policyOverride => policyOverride.Json);
    }

    [Output("advancedSettingsLoggingOutput")]
    public Output<string> AdvancedSettingsLoggingOutput { get; set; }
    [Output("advancedSettingsLoggingJson")]
    public Output<string> AdvancedSettingsLoggingJson { get; set; }
    [Output("advancedSettingsPolicyLoggingOutput")]
    public Output<string> AdvancedSettingsPolicyLoggingOutput { get; set; }
    [Output("advancedSettingsPolicyLoggingJson")]
    public Output<string> AdvancedSettingsPolicyLoggingJson { 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
		}
		logging, err := akamai.LookupAppSecAdvancedSettingsLogging(ctx, &akamai.LookupAppSecAdvancedSettingsLoggingArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("advancedSettingsLoggingOutput", logging.OutputText)
		ctx.Export("advancedSettingsLoggingJson", logging.Json)
		opt1 := _var.Security_policy_id
		policyOverride, err := akamai.LookupAppSecAdvancedSettingsLogging(ctx, &akamai.LookupAppSecAdvancedSettingsLoggingArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("advancedSettingsPolicyLoggingOutput", policyOverride.OutputText)
		ctx.Export("advancedSettingsPolicyLoggingJson", policyOverride.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
logging = akamai.get_app_sec_advanced_settings_logging(config_id=configuration.config_id)
pulumi.export("advancedSettingsLoggingOutput", logging.output_text)
pulumi.export("advancedSettingsLoggingJson", logging.json)
policy_override = akamai.get_app_sec_advanced_settings_logging(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"])
pulumi.export("advancedSettingsPolicyLoggingOutput", policy_override.output_text)
pulumi.export("advancedSettingsPolicyLoggingJson", policy_override.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const logging = configuration.then(configuration => akamai.getAppSecAdvancedSettingsLogging({
    configId: configuration.configId,
}));
export const advancedSettingsLoggingOutput = logging.then(logging => logging.outputText);
export const advancedSettingsLoggingJson = logging.then(logging => logging.json);
const policyOverride = configuration.then(configuration => akamai.getAppSecAdvancedSettingsLogging({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
}));
export const advancedSettingsPolicyLoggingOutput = policyOverride.then(policyOverride => policyOverride.outputText);
export const advancedSettingsPolicyLoggingJson = policyOverride.then(policyOverride => policyOverride.json);

Using getAppSecAdvancedSettingsLogging

function getAppSecAdvancedSettingsLogging(args: GetAppSecAdvancedSettingsLoggingArgs, opts?: InvokeOptions): Promise<GetAppSecAdvancedSettingsLoggingResult>
def get_app_sec_advanced_settings_logging(config_id: Optional[int] = None,
                                          security_policy_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetAppSecAdvancedSettingsLoggingResult
func LookupAppSecAdvancedSettingsLogging(ctx *Context, args *LookupAppSecAdvancedSettingsLoggingArgs, opts ...InvokeOption) (*LookupAppSecAdvancedSettingsLoggingResult, error)

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

public static class GetAppSecAdvancedSettingsLogging {
    public static Task<GetAppSecAdvancedSettingsLoggingResult> InvokeAsync(GetAppSecAdvancedSettingsLoggingArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The configuration ID.
SecurityPolicyId string
The ID of the security policy to use.
ConfigId int
The configuration ID.
SecurityPolicyId string
The ID of the security policy to use.
configId number
The configuration ID.
securityPolicyId string
The ID of the security policy to use.
config_id int
The configuration ID.
security_policy_id str
The ID of the security policy to use.

getAppSecAdvancedSettingsLogging Result

The following output properties are available:

ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of information about the logging settings.
OutputText string
A tabular display showing the logging settings.
SecurityPolicyId string
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of information about the logging settings.
OutputText string
A tabular display showing the logging settings.
SecurityPolicyId string
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of information about the logging settings.
outputText string
A tabular display showing the logging settings.
securityPolicyId string
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of information about the logging settings.
output_text str
A tabular display showing the logging settings.
security_policy_id str

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.