Akamai

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

getAppSecReputationProfileAnalysis

Scopes: Security policy

Returns information about the following two reputation analysis settings:

  • forwardToHTTPHeader. When enabled, client reputation information associated with a request is forwarded to origin servers by using an HTTP header.
  • forwardSharedIPToHTTPHeaderAndSIEM. When enabled, both the HTTP header and SIEM integration events include a value indicating that the IP addresses is shared address.

The returned information is described in the ReputationAnalysis members section of the Application Security API.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/reputation-analysis

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 the reputation analysis settings.
  • output_text. Tabular report showing the reputation analysis 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 reputationAnalysis = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecReputationProfileAnalysis.InvokeAsync(new Akamai.GetAppSecReputationProfileAnalysisArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = "gms1_134637",
        })));
        this.ReputationAnalysisText = reputationAnalysis.Apply(reputationAnalysis => reputationAnalysis.OutputText);
        this.ReputationAnalysisJson = reputationAnalysis.Apply(reputationAnalysis => reputationAnalysis.Json);
    }

    [Output("reputationAnalysisText")]
    public Output<string> ReputationAnalysisText { get; set; }
    [Output("reputationAnalysisJson")]
    public Output<string> ReputationAnalysisJson { 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
		}
		reputationAnalysis, err := akamai.LookupAppSecReputationProfileAnalysis(ctx, &GetAppSecReputationProfileAnalysisArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: "gms1_134637",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("reputationAnalysisText", reputationAnalysis.OutputText)
		ctx.Export("reputationAnalysisJson", reputationAnalysis.Json)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
reputation_analysis = akamai.get_app_sec_reputation_profile_analysis(config_id=configuration.config_id,
    security_policy_id="gms1_134637")
pulumi.export("reputationAnalysisText", reputation_analysis.output_text)
pulumi.export("reputationAnalysisJson", reputation_analysis.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const reputationAnalysis = configuration.then(configuration => akamai.getAppSecReputationProfileAnalysis({
    configId: configuration.configId,
    securityPolicyId: "gms1_134637",
}));
export const reputationAnalysisText = reputationAnalysis.then(reputationAnalysis => reputationAnalysis.outputText);
export const reputationAnalysisJson = reputationAnalysis.then(reputationAnalysis => reputationAnalysis.json);

Coming soon!

Using getAppSecReputationProfileAnalysis

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 getAppSecReputationProfileAnalysis(args: GetAppSecReputationProfileAnalysisArgs, opts?: InvokeOptions): Promise<GetAppSecReputationProfileAnalysisResult>
function getAppSecReputationProfileAnalysisOutput(args: GetAppSecReputationProfileAnalysisOutputArgs, opts?: InvokeOptions): Output<GetAppSecReputationProfileAnalysisResult>
def get_app_sec_reputation_profile_analysis(config_id: Optional[int] = None,
                                            security_policy_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetAppSecReputationProfileAnalysisResult
def get_app_sec_reputation_profile_analysis_output(config_id: Optional[pulumi.Input[int]] = None,
                                            security_policy_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetAppSecReputationProfileAnalysisResult]
func LookupAppSecReputationProfileAnalysis(ctx *Context, args *LookupAppSecReputationProfileAnalysisArgs, opts ...InvokeOption) (*LookupAppSecReputationProfileAnalysisResult, error)
func LookupAppSecReputationProfileAnalysisOutput(ctx *Context, args *LookupAppSecReputationProfileAnalysisOutputArgs, opts ...InvokeOption) LookupAppSecReputationProfileAnalysisResultOutput

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

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

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration associated with the reputation profile analysis settings.

SecurityPolicyId string

. Unique identifier of the security policy associated with the reputation profile analysis settings.

ConfigId int

. Unique identifier of the security configuration associated with the reputation profile analysis settings.

SecurityPolicyId string

. Unique identifier of the security policy associated with the reputation profile analysis settings.

configId Integer

. Unique identifier of the security configuration associated with the reputation profile analysis settings.

securityPolicyId String

. Unique identifier of the security policy associated with the reputation profile analysis settings.

configId number

. Unique identifier of the security configuration associated with the reputation profile analysis settings.

securityPolicyId string

. Unique identifier of the security policy associated with the reputation profile analysis settings.

config_id int

. Unique identifier of the security configuration associated with the reputation profile analysis settings.

security_policy_id str

. Unique identifier of the security policy associated with the reputation profile analysis settings.

configId Number

. Unique identifier of the security configuration associated with the reputation profile analysis settings.

securityPolicyId String

. Unique identifier of the security policy associated with the reputation profile analysis settings.

getAppSecReputationProfileAnalysis 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.