akamai.getAppSecMalwarePolicyActions
Scopes: Security policy; malware protection
Returns information about your malware policy actions. Actions specify what happens any time a malware policy is triggered: the issue could be ignored, the request could be denied, or an alert could be generated.
Output Options
The following options can be used to determine the information returned, and how that returned information is formatted:
output_text
. Tabular report showing the ID, scanned action, and unscanned action of the malware policy or policies.
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 malwarePolicyActionsAppSecMalwarePolicyActions = Akamai.GetAppSecMalwarePolicyActions.Invoke(new()
{
ConfigId = configuration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
SecurityPolicyId = "gms1_134637",
});
return new Dictionary<string, object?>
{
["malwarePolicyActions"] = malwarePolicyActionsAppSecMalwarePolicyActions.Apply(getAppSecMalwarePolicyActionsResult => getAppSecMalwarePolicyActionsResult.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
}
malwarePolicyActionsAppSecMalwarePolicyActions, err := akamai.LookupAppSecMalwarePolicyActions(ctx, &akamai.LookupAppSecMalwarePolicyActionsArgs{
ConfigId: configuration.ConfigId,
SecurityPolicyId: "gms1_134637",
}, nil)
if err != nil {
return err
}
ctx.Export("malwarePolicyActions", malwarePolicyActionsAppSecMalwarePolicyActions.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.GetAppSecMalwarePolicyActionsArgs;
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 malwarePolicyActionsAppSecMalwarePolicyActions = AkamaiFunctions.getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs.builder()
.configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
.securityPolicyId("gms1_134637")
.build());
ctx.export("malwarePolicyActions", malwarePolicyActionsAppSecMalwarePolicyActions.applyValue(getAppSecMalwarePolicyActionsResult -> getAppSecMalwarePolicyActionsResult.outputText()));
}
}
import pulumi
import pulumi_akamai as akamai
configuration = akamai.get_app_sec_configuration(name="Documentation")
malware_policy_actions_app_sec_malware_policy_actions = akamai.get_app_sec_malware_policy_actions(config_id=configuration.config_id,
security_policy_id="gms1_134637")
pulumi.export("malwarePolicyActions", malware_policy_actions_app_sec_malware_policy_actions.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
const configuration = akamai.getAppSecConfiguration({
name: "Documentation",
});
const malwarePolicyActionsAppSecMalwarePolicyActions = configuration.then(configuration => akamai.getAppSecMalwarePolicyActions({
configId: configuration.configId,
securityPolicyId: "gms1_134637",
}));
export const malwarePolicyActions = malwarePolicyActionsAppSecMalwarePolicyActions.then(malwarePolicyActionsAppSecMalwarePolicyActions => malwarePolicyActionsAppSecMalwarePolicyActions.outputText);
variables:
configuration:
fn::invoke:
Function: akamai:getAppSecConfiguration
Arguments:
name: Documentation
malwarePolicyActionsAppSecMalwarePolicyActions:
fn::invoke:
Function: akamai:getAppSecMalwarePolicyActions
Arguments:
configId: ${configuration.configId}
securityPolicyId: gms1_134637
outputs:
malwarePolicyActions: ${malwarePolicyActionsAppSecMalwarePolicyActions.outputText}
Using getAppSecMalwarePolicyActions
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 getAppSecMalwarePolicyActions(args: GetAppSecMalwarePolicyActionsArgs, opts?: InvokeOptions): Promise<GetAppSecMalwarePolicyActionsResult>
function getAppSecMalwarePolicyActionsOutput(args: GetAppSecMalwarePolicyActionsOutputArgs, opts?: InvokeOptions): Output<GetAppSecMalwarePolicyActionsResult>
def get_app_sec_malware_policy_actions(config_id: Optional[int] = None,
malware_policy_id: Optional[int] = None,
security_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppSecMalwarePolicyActionsResult
def get_app_sec_malware_policy_actions_output(config_id: Optional[pulumi.Input[int]] = None,
malware_policy_id: Optional[pulumi.Input[int]] = None,
security_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppSecMalwarePolicyActionsResult]
func LookupAppSecMalwarePolicyActions(ctx *Context, args *LookupAppSecMalwarePolicyActionsArgs, opts ...InvokeOption) (*LookupAppSecMalwarePolicyActionsResult, error)
func LookupAppSecMalwarePolicyActionsOutput(ctx *Context, args *LookupAppSecMalwarePolicyActionsOutputArgs, opts ...InvokeOption) LookupAppSecMalwarePolicyActionsResultOutput
> Note: This function is named LookupAppSecMalwarePolicyActions
in the Go SDK.
public static class GetAppSecMalwarePolicyActions
{
public static Task<GetAppSecMalwarePolicyActionsResult> InvokeAsync(GetAppSecMalwarePolicyActionsArgs args, InvokeOptions? opts = null)
public static Output<GetAppSecMalwarePolicyActionsResult> Invoke(GetAppSecMalwarePolicyActionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppSecMalwarePolicyActionsResult> getAppSecMalwarePolicyActions(GetAppSecMalwarePolicyActionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: akamai:index/getAppSecMalwarePolicyActions:getAppSecMalwarePolicyActions
arguments:
# arguments dictionary
The following arguments are supported:
- Config
Id int . Unique identifier of the security configuration associated with the malware policies and malware policy actions.
- Security
Policy stringId . Unique identifier of the security policy associated with the malware policies and malware policy actions.
- Malware
Policy intId . Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.
- Config
Id int . Unique identifier of the security configuration associated with the malware policies and malware policy actions.
- Security
Policy stringId . Unique identifier of the security policy associated with the malware policies and malware policy actions.
- Malware
Policy intId . Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.
- config
Id Integer . Unique identifier of the security configuration associated with the malware policies and malware policy actions.
- security
Policy StringId . Unique identifier of the security policy associated with the malware policies and malware policy actions.
- malware
Policy IntegerId . Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.
- config
Id number . Unique identifier of the security configuration associated with the malware policies and malware policy actions.
- security
Policy stringId . Unique identifier of the security policy associated with the malware policies and malware policy actions.
- malware
Policy numberId . Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.
- config_
id int . Unique identifier of the security configuration associated with the malware policies and malware policy actions.
- security_
policy_ strid . Unique identifier of the security policy associated with the malware policies and malware policy actions.
- malware_
policy_ intid . Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.
- config
Id Number . Unique identifier of the security configuration associated with the malware policies and malware policy actions.
- security
Policy StringId . Unique identifier of the security policy associated with the malware policies and malware policy actions.
- malware
Policy NumberId . Unique identifier of the malware policy you want to return action information for. If not included, action information is returned for all malware policies associated with the specified security policy.
getAppSecMalwarePolicyActions Result
The following output properties are available:
- Config
Id int - Id string
The provider-assigned unique ID for this managed resource.
- Output
Text string - Security
Policy stringId - Malware
Policy intId
- Config
Id int - Id string
The provider-assigned unique ID for this managed resource.
- Output
Text string - Security
Policy stringId - Malware
Policy intId
- config
Id Integer - id String
The provider-assigned unique ID for this managed resource.
- output
Text String - security
Policy StringId - malware
Policy IntegerId
- config
Id number - id string
The provider-assigned unique ID for this managed resource.
- output
Text string - security
Policy stringId - malware
Policy numberId
- config_
id int - id str
The provider-assigned unique ID for this managed resource.
- output_
text str - security_
policy_ strid - malware_
policy_ intid
- config
Id Number - id String
The provider-assigned unique ID for this managed resource.
- output
Text String - security
Policy StringId - malware
Policy NumberId
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.