getAppSecAdvancedSettingsPragmaHeader

Use the akamai.AppSecAdvancedSettingsPragmaHeader data source to retrieve pragma header settings for a configuration or a security policy. Additional information is available 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 pragmaHeader = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecAdvancedSettingsPragmaHeader.InvokeAsync(new Akamai.GetAppSecAdvancedSettingsPragmaHeaderArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.AdvancedSettingsPragmaHeaderOutput = pragmaHeader.Apply(pragmaHeader => pragmaHeader.OutputText);
        this.AdvancedSettingsPragmaHeaderJson = pragmaHeader.Apply(pragmaHeader => pragmaHeader.Json);
        var policyPragmaHeader = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecAdvancedSettingsPragmaHeader.InvokeAsync(new Akamai.GetAppSecAdvancedSettingsPragmaHeaderArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
        })));
        this.AdvancedSettingsPolicyPragmaHeaderOutput = policyPragmaHeader.Apply(policyPragmaHeader => policyPragmaHeader.OutputText);
        this.AdvancedSettingsPolicyPragmaHeaderJson = policyPragmaHeader.Apply(policyPragmaHeader => policyPragmaHeader.Json);
    }

    [Output("advancedSettingsPragmaHeaderOutput")]
    public Output<string> AdvancedSettingsPragmaHeaderOutput { get; set; }
    [Output("advancedSettingsPragmaHeaderJson")]
    public Output<string> AdvancedSettingsPragmaHeaderJson { get; set; }
    [Output("advancedSettingsPolicyPragmaHeaderOutput")]
    public Output<string> AdvancedSettingsPolicyPragmaHeaderOutput { get; set; }
    [Output("advancedSettingsPolicyPragmaHeaderJson")]
    public Output<string> AdvancedSettingsPolicyPragmaHeaderJson { 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, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		pragmaHeader, err := akamai.LookupAppSecAdvancedSettingsPragmaHeader(ctx, &GetAppSecAdvancedSettingsPragmaHeaderArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("advancedSettingsPragmaHeaderOutput", pragmaHeader.OutputText)
		ctx.Export("advancedSettingsPragmaHeaderJson", pragmaHeader.Json)
		opt1 := _var.Security_policy_id
		policyPragmaHeader, err := akamai.LookupAppSecAdvancedSettingsPragmaHeader(ctx, &GetAppSecAdvancedSettingsPragmaHeaderArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("advancedSettingsPolicyPragmaHeaderOutput", policyPragmaHeader.OutputText)
		ctx.Export("advancedSettingsPolicyPragmaHeaderJson", policyPragmaHeader.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
pragma_header = akamai.get_app_sec_advanced_settings_pragma_header(config_id=configuration.config_id)
pulumi.export("advancedSettingsPragmaHeaderOutput", pragma_header.output_text)
pulumi.export("advancedSettingsPragmaHeaderJson", pragma_header.json)
policy_pragma_header = akamai.get_app_sec_advanced_settings_pragma_header(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"])
pulumi.export("advancedSettingsPolicyPragmaHeaderOutput", policy_pragma_header.output_text)
pulumi.export("advancedSettingsPolicyPragmaHeaderJson", policy_pragma_header.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const pragmaHeader = configuration.then(configuration => akamai.getAppSecAdvancedSettingsPragmaHeader({
    configId: configuration.configId,
}));
export const advancedSettingsPragmaHeaderOutput = pragmaHeader.then(pragmaHeader => pragmaHeader.outputText);
export const advancedSettingsPragmaHeaderJson = pragmaHeader.then(pragmaHeader => pragmaHeader.json);
const policyPragmaHeader = configuration.then(configuration => akamai.getAppSecAdvancedSettingsPragmaHeader({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
}));
export const advancedSettingsPolicyPragmaHeaderOutput = policyPragmaHeader.then(policyPragmaHeader => policyPragmaHeader.outputText);
export const advancedSettingsPolicyPragmaHeaderJson = policyPragmaHeader.then(policyPragmaHeader => policyPragmaHeader.json);

Using getAppSecAdvancedSettingsPragmaHeader

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 getAppSecAdvancedSettingsPragmaHeader(args: GetAppSecAdvancedSettingsPragmaHeaderArgs, opts?: InvokeOptions): Promise<GetAppSecAdvancedSettingsPragmaHeaderResult>
function getAppSecAdvancedSettingsPragmaHeaderOutput(args: GetAppSecAdvancedSettingsPragmaHeaderOutputArgs, opts?: InvokeOptions): Output<GetAppSecAdvancedSettingsPragmaHeaderResult>
def get_app_sec_advanced_settings_pragma_header(config_id: Optional[int] = None,
                                                security_policy_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetAppSecAdvancedSettingsPragmaHeaderResult
def get_app_sec_advanced_settings_pragma_header_output(config_id: Optional[pulumi.Input[int]] = None,
                                                security_policy_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetAppSecAdvancedSettingsPragmaHeaderResult]
func LookupAppSecAdvancedSettingsPragmaHeader(ctx *Context, args *LookupAppSecAdvancedSettingsPragmaHeaderArgs, opts ...InvokeOption) (*LookupAppSecAdvancedSettingsPragmaHeaderResult, error)
func LookupAppSecAdvancedSettingsPragmaHeaderOutput(ctx *Context, args *LookupAppSecAdvancedSettingsPragmaHeaderOutputArgs, opts ...InvokeOption) LookupAppSecAdvancedSettingsPragmaHeaderResultOutput

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

public static class GetAppSecAdvancedSettingsPragmaHeader 
{
    public static Task<GetAppSecAdvancedSettingsPragmaHeaderResult> InvokeAsync(GetAppSecAdvancedSettingsPragmaHeaderArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecAdvancedSettingsPragmaHeaderResult> Invoke(GetAppSecAdvancedSettingsPragmaHeaderInvokeArgs 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.

getAppSecAdvancedSettingsPragmaHeader 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 (format) list of information about the pragma header settings.
OutputText string
A tabular display showing the pragma header settings.
SecurityPolicyId string
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted (format) list of information about the pragma header settings.
OutputText string
A tabular display showing the pragma header settings.
SecurityPolicyId string
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted (format) list of information about the pragma header settings.
outputText string
A tabular display showing the pragma header settings.
securityPolicyId string
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted (format) list of information about the pragma header settings.
output_text str
A tabular display showing the pragma header 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.