akamai logo
Akamai v4.1.0, Jan 25 23

akamai.getAppSecSiemSettings

Scopes: Security configuration

Returns the SIEM (Security Event and Information Management) settings for a security configuration.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/siem

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 SIEM setting information.
  • output_text. Tabular report showing the SIEM setting 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 siemSettings = Akamai.GetAppSecSiemSettings.Invoke(new()
    {
        ConfigId = configuration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
    });

    return new Dictionary<string, object?>
    {
        ["siemSettingsJson"] = siemSettings.Apply(getAppSecSiemSettingsResult => getAppSecSiemSettingsResult.Json),
        ["siemSettingsOutput"] = siemSettings.Apply(getAppSecSiemSettingsResult => getAppSecSiemSettingsResult.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
		}
		siemSettings, err := akamai.LookupAppSecSiemSettings(ctx, &akamai.LookupAppSecSiemSettingsArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("siemSettingsJson", siemSettings.Json)
		ctx.Export("siemSettingsOutput", siemSettings.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.GetAppSecSiemSettingsArgs;
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 siemSettings = AkamaiFunctions.getAppSecSiemSettings(GetAppSecSiemSettingsArgs.builder()
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .build());

        ctx.export("siemSettingsJson", siemSettings.applyValue(getAppSecSiemSettingsResult -> getAppSecSiemSettingsResult.json()));
        ctx.export("siemSettingsOutput", siemSettings.applyValue(getAppSecSiemSettingsResult -> getAppSecSiemSettingsResult.outputText()));
    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
siem_settings = akamai.get_app_sec_siem_settings(config_id=configuration.config_id)
pulumi.export("siemSettingsJson", siem_settings.json)
pulumi.export("siemSettingsOutput", siem_settings.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const siemSettings = configuration.then(configuration => akamai.getAppSecSiemSettings({
    configId: configuration.configId,
}));
export const siemSettingsJson = siemSettings.then(siemSettings => siemSettings.json);
export const siemSettingsOutput = siemSettings.then(siemSettings => siemSettings.outputText);
variables:
  configuration:
    fn::invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation
  siemSettings:
    fn::invoke:
      Function: akamai:getAppSecSiemSettings
      Arguments:
        configId: ${configuration.configId}
outputs:
  siemSettingsJson: ${siemSettings.json}
  siemSettingsOutput: ${siemSettings.outputText}

Using getAppSecSiemSettings

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 getAppSecSiemSettings(args: GetAppSecSiemSettingsArgs, opts?: InvokeOptions): Promise<GetAppSecSiemSettingsResult>
function getAppSecSiemSettingsOutput(args: GetAppSecSiemSettingsOutputArgs, opts?: InvokeOptions): Output<GetAppSecSiemSettingsResult>
def get_app_sec_siem_settings(config_id: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppSecSiemSettingsResult
def get_app_sec_siem_settings_output(config_id: Optional[pulumi.Input[int]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAppSecSiemSettingsResult]
func LookupAppSecSiemSettings(ctx *Context, args *LookupAppSecSiemSettingsArgs, opts ...InvokeOption) (*LookupAppSecSiemSettingsResult, error)
func LookupAppSecSiemSettingsOutput(ctx *Context, args *LookupAppSecSiemSettingsOutputArgs, opts ...InvokeOption) LookupAppSecSiemSettingsResultOutput

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

public static class GetAppSecSiemSettings 
{
    public static Task<GetAppSecSiemSettingsResult> InvokeAsync(GetAppSecSiemSettingsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecSiemSettingsResult> Invoke(GetAppSecSiemSettingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppSecSiemSettingsResult> getAppSecSiemSettings(GetAppSecSiemSettingsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getAppSecSiemSettings:getAppSecSiemSettings
  arguments:
    # arguments dictionary

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration you want to return information for.

ConfigId int

. Unique identifier of the security configuration you want to return information for.

configId Integer

. Unique identifier of the security configuration you want to return information for.

configId number

. Unique identifier of the security configuration you want to return information for.

config_id int

. Unique identifier of the security configuration you want to return information for.

configId Number

. Unique identifier of the security configuration you want to return information for.

getAppSecSiemSettings Result

The following output properties are available:

ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
configId Integer
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
configId number
id string

The provider-assigned unique ID for this managed resource.

json string
outputText string
config_id int
id str

The provider-assigned unique ID for this managed resource.

json str
output_text str
configId Number
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.