getAppSecThreatIntel

Use the akamai.AppSecThreatIntel data source to view threat intelligence setting for a policy BETA This is Adaptive Security Engine(ASE) related data source. Please contact your akamai representative if you want to learn more

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 threatIntelAppSecThreatIntel = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecThreatIntel.InvokeAsync(new Akamai.GetAppSecThreatIntelArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
        })));
        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 {
		opt0 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		threatIntelAppSecThreatIntel, err := akamai.LookupAppSecThreatIntel(ctx, &GetAppSecThreatIntelArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: _var.Security_policy_id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("threatIntel", threatIntelAppSecThreatIntel.ThreatIntel)
		ctx.Export("json", threatIntelAppSecThreatIntel.Json)
		ctx.Export("outputText", threatIntelAppSecThreatIntel.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
threat_intel_app_sec_threat_intel = akamai.get_app_sec_threat_intel(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"])
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: _var.security_configuration,
});
const threatIntelAppSecThreatIntel = configuration.then(configuration => akamai.getAppSecThreatIntel({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
}));
export const threatIntel = threatIntelAppSecThreatIntel.then(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.threatIntel);
export const json = threatIntelAppSecThreatIntel.then(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.json);
export const outputText = threatIntelAppSecThreatIntel.then(threatIntelAppSecThreatIntel => threatIntelAppSecThreatIntel.outputText);

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)
}

The following arguments are supported:

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

getAppSecThreatIntel 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 threat intelligence object
OutputText string
A tabular display of the threat intel information.
SecurityPolicyId string
ThreatIntel string
Threat Intelligence setting, either on or off.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted threat intelligence object
OutputText string
A tabular display of the threat intel information.
SecurityPolicyId string
ThreatIntel string
Threat Intelligence setting, either on or off.
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted threat intelligence object
outputText string
A tabular display of the threat intel information.
securityPolicyId string
threatIntel string
Threat Intelligence setting, either on or off.
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted threat intelligence object
output_text str
A tabular display of the threat intel information.
security_policy_id str
threat_intel str
Threat Intelligence setting, either on or off.

Package Details

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