akamai.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-intel
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
Basic usage
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var configuration = Akamai.GetAppSecConfiguration.Invoke(new()
{
Name = "Documentation",
});
var threatIntelAppSecThreatIntel = Akamai.GetAppSecThreatIntel.Invoke(new()
{
ConfigId = configuration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
SecurityPolicyId = "gms1_134637",
});
return new Dictionary<string, object?>
{
["threatIntel"] = threatIntelAppSecThreatIntel.Apply(getAppSecThreatIntelResult => getAppSecThreatIntelResult.ThreatIntel),
["json"] = threatIntelAppSecThreatIntel.Apply(getAppSecThreatIntelResult => getAppSecThreatIntelResult.Json),
["outputText"] = threatIntelAppSecThreatIntel.Apply(getAppSecThreatIntelResult => getAppSecThreatIntelResult.OutputText),
};
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
Name: pulumi.StringRef("Documentation"),
}, nil)
if err != nil {
return err
}
threatIntelAppSecThreatIntel, err := akamai.LookupAppSecThreatIntel(ctx, &akamai.LookupAppSecThreatIntelArgs{
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.inputs.GetAppSecThreatIntelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
.name("Documentation")
.build());
final var threatIntelAppSecThreatIntel = AkamaiFunctions.getAppSecThreatIntel(GetAppSecThreatIntelArgs.builder()
.configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
.securityPolicyId("gms1_134637")
.build());
ctx.export("threatIntel", threatIntelAppSecThreatIntel.applyValue(getAppSecThreatIntelResult -> getAppSecThreatIntelResult.threatIntel()));
ctx.export("json", threatIntelAppSecThreatIntel.applyValue(getAppSecThreatIntelResult -> getAppSecThreatIntelResult.json()));
ctx.export("outputText", threatIntelAppSecThreatIntel.applyValue(getAppSecThreatIntelResult -> getAppSecThreatIntelResult.outputText()));
}
}
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);
variables:
configuration:
fn::invoke:
Function: akamai:getAppSecConfiguration
Arguments:
name: Documentation
threatIntelAppSecThreatIntel:
fn::invoke:
Function: akamai:getAppSecThreatIntel
Arguments:
configId: ${configuration.configId}
securityPolicyId: gms1_134637
outputs:
threatIntel: ${threatIntelAppSecThreatIntel.threatIntel}
json: ${threatIntelAppSecThreatIntel.json}
outputText: ${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)
}
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:
- Config
Id int . Unique identifier of the security configuration associated with the threat intelligence settings.
- Security
Policy stringId . 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 stringId . Unique identifier of the security policy associated with the threat intelligence settings.
- config
Id Integer . Unique identifier of the security configuration associated with the threat intelligence settings.
- security
Policy StringId . Unique identifier of the security policy associated with the threat intelligence settings.
- config
Id number . Unique identifier of the security configuration associated with the threat intelligence settings.
- security
Policy stringId . 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_ strid . Unique identifier of the security policy associated with the threat intelligence settings.
- config
Id Number . Unique identifier of the security configuration associated with the threat intelligence settings.
- security
Policy StringId . Unique identifier of the security policy associated with the threat intelligence settings.
getAppSecThreatIntel Result
The following output properties are available:
- Config
Id int - Id string
The provider-assigned unique ID for this managed resource.
- Json string
- Output
Text string - Security
Policy stringId - Threat
Intel string
- Config
Id int - Id string
The provider-assigned unique ID for this managed resource.
- Json string
- Output
Text string - Security
Policy stringId - Threat
Intel string
- config
Id Integer - id String
The provider-assigned unique ID for this managed resource.
- json String
- output
Text String - security
Policy StringId - threat
Intel String
- config
Id number - id string
The provider-assigned unique ID for this managed resource.
- json string
- output
Text string - security
Policy stringId - threat
Intel string
- config_
id int - id str
The provider-assigned unique ID for this managed resource.
- json str
- output_
text str - security_
policy_ strid - threat_
intel str
- config
Id Number - id String
The provider-assigned unique ID for this managed resource.
- json String
- output
Text String - security
Policy StringId - threat
Intel String
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.