Akamai

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

getAppSecThreatIntel

Scopes: Security policy

Returns threat intelligence settings for a security policy Note that this data source is only available to organizations running the Adaptive Security Engine (ASE) beta. For more information on ASE, please contact your Akamai representative.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/rules/threat-intell

Output Options

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

  • threat_intel. Reports the threat Intelligence setting, either on or off.
  • json. JSON-formatted threat intelligence report
  • output_text. Tabular report of the threat intelligence information.

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 threatIntelAppSecThreatIntel = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecThreatIntel.InvokeAsync(new Akamai.GetAppSecThreatIntelArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = "gms1_134637",
        })));
        this.ThreatIntel = threatIntelAppSecThreatIntel.Apply(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.ThreatIntel);
        this.Json = threatIntelAppSecThreatIntel.Apply(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.Json);
        this.OutputText = threatIntelAppSecThreatIntel.Apply(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.OutputText);
    }

    [Output("threatIntel")]
    public Output<string> ThreatIntel { get; set; }
    [Output("json")]
    public Output<string> Json { get; set; }
    [Output("outputText")]
    public Output<string> OutputText { 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
		}
		threatIntelAppSecThreatIntel, err := akamai.LookupAppSecThreatIntel(ctx, &GetAppSecThreatIntelArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: "gms1_134637",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("threatIntel", threatIntelAppSecThreatIntel.ThreatIntel)
		ctx.Export("json", threatIntelAppSecThreatIntel.Json)
		ctx.Export("outputText", threatIntelAppSecThreatIntel.OutputText)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
threat_intel_app_sec_threat_intel = akamai.get_app_sec_threat_intel(config_id=configuration.config_id,
    security_policy_id="gms1_134637")
pulumi.export("threatIntel", threat_intel_app_sec_threat_intel.threat_intel)
pulumi.export("json", threat_intel_app_sec_threat_intel.json)
pulumi.export("outputText", threat_intel_app_sec_threat_intel.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const threatIntelAppSecThreatIntel = configuration.then(configuration => akamai.getAppSecThreatIntel({
    configId: configuration.configId,
    securityPolicyId: "gms1_134637",
}));
export const threatIntel = threatIntelAppSecThreatIntel.then(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.threatIntel);
export const json = threatIntelAppSecThreatIntel.then(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.json);
export const outputText = threatIntelAppSecThreatIntel.then(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.outputText);

Coming soon!

Using getAppSecThreatIntel

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 getAppSecThreatIntel(args: GetAppSecThreatIntelArgs, opts?: InvokeOptions): Promise<GetAppSecThreatIntelResult>
function getAppSecThreatIntelOutput(args: GetAppSecThreatIntelOutputArgs, opts?: InvokeOptions): Output<GetAppSecThreatIntelResult>
def get_app_sec_threat_intel(config_id: Optional[int] = None,
                             security_policy_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAppSecThreatIntelResult
def get_app_sec_threat_intel_output(config_id: Optional[pulumi.Input[int]] = None,
                             security_policy_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAppSecThreatIntelResult]
func LookupAppSecThreatIntel(ctx *Context, args *LookupAppSecThreatIntelArgs, opts ...InvokeOption) (*LookupAppSecThreatIntelResult, error)
func LookupAppSecThreatIntelOutput(ctx *Context, args *LookupAppSecThreatIntelOutputArgs, opts ...InvokeOption) LookupAppSecThreatIntelResultOutput

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

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

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration associated with the threat intelligence settings.

SecurityPolicyId string

. Unique identifier of the security policy associated with the threat intelligence settings.

ConfigId int

. Unique identifier of the security configuration associated with the threat intelligence settings.

SecurityPolicyId string

. Unique identifier of the security policy associated with the threat intelligence settings.

configId Integer

. Unique identifier of the security configuration associated with the threat intelligence settings.

securityPolicyId String

. Unique identifier of the security policy associated with the threat intelligence settings.

configId number

. Unique identifier of the security configuration associated with the threat intelligence settings.

securityPolicyId string

. Unique identifier of the security policy associated with the threat intelligence settings.

config_id int

. Unique identifier of the security configuration associated with the threat intelligence settings.

security_policy_id str

. Unique identifier of the security policy associated with the threat intelligence settings.

configId Number

. Unique identifier of the security configuration associated with the threat intelligence settings.

securityPolicyId String

. Unique identifier of the security policy associated with the threat intelligence settings.

getAppSecThreatIntel 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
ThreatIntel string
ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
SecurityPolicyId string
ThreatIntel string
configId Integer
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
securityPolicyId String
threatIntel String
configId number
id string

The provider-assigned unique ID for this managed resource.

json string
outputText string
securityPolicyId string
threatIntel string
config_id int
id str

The provider-assigned unique ID for this managed resource.

json str
output_text str
security_policy_id str
threat_intel str
configId Number
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
securityPolicyId String
threatIntel 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.