getAppSecSiemDefinitions

Scopes: SIEM definition

Returns information about your SIEM (Security Information and Event Management) versions. The returned information is described in the Get SIEM versions section of the Application Security API.

Related API Endpoint: /appsec/v1/siem-definitions

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 version information.
  • output_text. Tabular report showing the ID and name of each SIEM version.

Example Usage

Basic usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var siemDefinitions = Output.Create(Akamai.GetAppSecSiemDefinitions.InvokeAsync());
        this.SiemDefinitionsJson = siemDefinitions.Apply(siemDefinitions => siemDefinitions.Json);
        this.SiemDefinitionsOutput = siemDefinitions.Apply(siemDefinitions => siemDefinitions.OutputText);
        var siemDefinition = Output.Create(Akamai.GetAppSecSiemDefinitions.InvokeAsync(new Akamai.GetAppSecSiemDefinitionsArgs
        {
            SiemDefinitionName = "SIEM Version 01",
        }));
        this.SiemDefinitionId = siemDefinition.Apply(siemDefinition => siemDefinition.Id);
    }

    [Output("siemDefinitionsJson")]
    public Output<string> SiemDefinitionsJson { get; set; }
    [Output("siemDefinitionsOutput")]
    public Output<string> SiemDefinitionsOutput { get; set; }
    [Output("siemDefinitionId")]
    public Output<string> SiemDefinitionId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		siemDefinitions, err := akamai.GetAppSecSiemDefinitions(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("siemDefinitionsJson", siemDefinitions.Json)
		ctx.Export("siemDefinitionsOutput", siemDefinitions.OutputText)
		siemDefinition, err := akamai.GetAppSecSiemDefinitions(ctx, &GetAppSecSiemDefinitionsArgs{
			SiemDefinitionName: pulumi.StringRef("SIEM Version 01"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("siemDefinitionId", siemDefinition.Id)
		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.GetAppSecSiemDefinitionsArgs;
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 siemDefinitions = AkamaiFunctions.getAppSecSiemDefinitions();

        ctx.export("siemDefinitionsJson", siemDefinitions.applyValue(getAppSecSiemDefinitionsResult -> getAppSecSiemDefinitionsResult.json()));
        ctx.export("siemDefinitionsOutput", siemDefinitions.applyValue(getAppSecSiemDefinitionsResult -> getAppSecSiemDefinitionsResult.outputText()));
        final var siemDefinition = AkamaiFunctions.getAppSecSiemDefinitions(GetAppSecSiemDefinitionsArgs.builder()
            .siemDefinitionName("SIEM Version 01")
            .build());

        ctx.export("siemDefinitionId", siemDefinition.applyValue(getAppSecSiemDefinitionsResult -> getAppSecSiemDefinitionsResult.id()));
    }
}
import pulumi
import pulumi_akamai as akamai

siem_definitions = akamai.get_app_sec_siem_definitions()
pulumi.export("siemDefinitionsJson", siem_definitions.json)
pulumi.export("siemDefinitionsOutput", siem_definitions.output_text)
siem_definition = akamai.get_app_sec_siem_definitions(siem_definition_name="SIEM Version 01")
pulumi.export("siemDefinitionId", siem_definition.id)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const siemDefinitions = akamai.getAppSecSiemDefinitions({});
export const siemDefinitionsJson = siemDefinitions.then(siemDefinitions => siemDefinitions.json);
export const siemDefinitionsOutput = siemDefinitions.then(siemDefinitions => siemDefinitions.outputText);
const siemDefinition = akamai.getAppSecSiemDefinitions({
    siemDefinitionName: "SIEM Version 01",
});
export const siemDefinitionId = siemDefinition.then(siemDefinition => siemDefinition.id);
variables:
  siemDefinitions:
    Fn::Invoke:
      Function: akamai:getAppSecSiemDefinitions
      Arguments: {}
  siemDefinition:
    Fn::Invoke:
      Function: akamai:getAppSecSiemDefinitions
      Arguments:
        siemDefinitionName: SIEM Version 01
outputs:
  siemDefinitionsJson: ${siemDefinitions.json}
  siemDefinitionsOutput: ${siemDefinitions.outputText}
  siemDefinitionId: ${siemDefinition.id}

Using getAppSecSiemDefinitions

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 getAppSecSiemDefinitions(args: GetAppSecSiemDefinitionsArgs, opts?: InvokeOptions): Promise<GetAppSecSiemDefinitionsResult>
function getAppSecSiemDefinitionsOutput(args: GetAppSecSiemDefinitionsOutputArgs, opts?: InvokeOptions): Output<GetAppSecSiemDefinitionsResult>
def get_app_sec_siem_definitions(siem_definition_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetAppSecSiemDefinitionsResult
def get_app_sec_siem_definitions_output(siem_definition_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetAppSecSiemDefinitionsResult]
func GetAppSecSiemDefinitions(ctx *Context, args *GetAppSecSiemDefinitionsArgs, opts ...InvokeOption) (*GetAppSecSiemDefinitionsResult, error)
func GetAppSecSiemDefinitionsOutput(ctx *Context, args *GetAppSecSiemDefinitionsOutputArgs, opts ...InvokeOption) GetAppSecSiemDefinitionsResultOutput

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

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

The following arguments are supported:

SiemDefinitionName string

. Name of the SIEM definition you want to return information for. If not included, information is returned for all your SIEM definitions.

SiemDefinitionName string

. Name of the SIEM definition you want to return information for. If not included, information is returned for all your SIEM definitions.

siemDefinitionName String

. Name of the SIEM definition you want to return information for. If not included, information is returned for all your SIEM definitions.

siemDefinitionName string

. Name of the SIEM definition you want to return information for. If not included, information is returned for all your SIEM definitions.

siem_definition_name str

. Name of the SIEM definition you want to return information for. If not included, information is returned for all your SIEM definitions.

siemDefinitionName String

. Name of the SIEM definition you want to return information for. If not included, information is returned for all your SIEM definitions.

getAppSecSiemDefinitions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
SiemDefinitionName string
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
SiemDefinitionName string
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
siemDefinitionName String
id string

The provider-assigned unique ID for this managed resource.

json string
outputText string
siemDefinitionName string
id str

The provider-assigned unique ID for this managed resource.

json str
output_text str
siem_definition_name str
id String

The provider-assigned unique ID for this managed resource.

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