getAppSecEvalHostnames

Scopes: Security configuration

Important: This data source is deprecated and may be removed in a future release. You may use the akamai.AppSecWapSelectedHostnames data source instead.

Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn’t actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)

Evaluation mode for hostnames is available only for organizations running Web Application Protector.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames

Output Options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • hostnames. List of evaluation hostnames.
  • json. JSON-formatted list of evaluation hostnames.
  • output_text. Tabular report showing evaluation hostnames.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var evalHostnamesAppSecEvalHostnames = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecEvalHostnames.InvokeAsync(new Akamai.GetAppSecEvalHostnamesArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.EvalHostnames = evalHostnamesAppSecEvalHostnames.Apply(evalHostnamesAppSecEvalHostnames => evalHostnamesAppSecEvalHostnames.Hostnames);
        this.EvalHostnamesOutput = evalHostnamesAppSecEvalHostnames.Apply(evalHostnamesAppSecEvalHostnames => evalHostnamesAppSecEvalHostnames.OutputText);
        this.EvalHostnamesJson = evalHostnamesAppSecEvalHostnames.Apply(evalHostnamesAppSecEvalHostnames => evalHostnamesAppSecEvalHostnames.Json);
    }

    [Output("evalHostnames")]
    public Output<string> EvalHostnames { get; set; }
    [Output("evalHostnamesOutput")]
    public Output<string> EvalHostnamesOutput { get; set; }
    [Output("evalHostnamesJson")]
    public Output<string> EvalHostnamesJson { 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 := "Documentation"
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		evalHostnamesAppSecEvalHostnames, err := akamai.LookupAppSecEvalHostnames(ctx, &GetAppSecEvalHostnamesArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("evalHostnames", evalHostnamesAppSecEvalHostnames.Hostnames)
		ctx.Export("evalHostnamesOutput", evalHostnamesAppSecEvalHostnames.OutputText)
		ctx.Export("evalHostnamesJson", evalHostnamesAppSecEvalHostnames.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)
pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)
pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)
pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const evalHostnamesAppSecEvalHostnames = configuration.then(configuration => akamai.getAppSecEvalHostnames({
    configId: configuration.configId,
}));
export const evalHostnames = evalHostnamesAppSecEvalHostnames.then(evalHostnamesAppSecEvalHostnames => evalHostnamesAppSecEvalHostnames.hostnames);
export const evalHostnamesOutput = evalHostnamesAppSecEvalHostnames.then(evalHostnamesAppSecEvalHostnames => evalHostnamesAppSecEvalHostnames.outputText);
export const evalHostnamesJson = evalHostnamesAppSecEvalHostnames.then(evalHostnamesAppSecEvalHostnames => evalHostnamesAppSecEvalHostnames.json);

Using getAppSecEvalHostnames

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 getAppSecEvalHostnames(args: GetAppSecEvalHostnamesArgs, opts?: InvokeOptions): Promise<GetAppSecEvalHostnamesResult>
function getAppSecEvalHostnamesOutput(args: GetAppSecEvalHostnamesOutputArgs, opts?: InvokeOptions): Output<GetAppSecEvalHostnamesResult>
def get_app_sec_eval_hostnames(config_id: Optional[int] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAppSecEvalHostnamesResult
def get_app_sec_eval_hostnames_output(config_id: Optional[pulumi.Input[int]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAppSecEvalHostnamesResult]
func LookupAppSecEvalHostnames(ctx *Context, args *LookupAppSecEvalHostnamesArgs, opts ...InvokeOption) (*LookupAppSecEvalHostnamesResult, error)
func LookupAppSecEvalHostnamesOutput(ctx *Context, args *LookupAppSecEvalHostnamesOutputArgs, opts ...InvokeOption) LookupAppSecEvalHostnamesResultOutput

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

public static class GetAppSecEvalHostnames 
{
    public static Task<GetAppSecEvalHostnamesResult> InvokeAsync(GetAppSecEvalHostnamesArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecEvalHostnamesResult> Invoke(GetAppSecEvalHostnamesInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
. Unique identifier of the security configuration running in evaluation mode.
ConfigId int
. Unique identifier of the security configuration running in evaluation mode.
configId number
. Unique identifier of the security configuration running in evaluation mode.
config_id int
. Unique identifier of the security configuration running in evaluation mode.

getAppSecEvalHostnames Result

The following output properties are available:

ConfigId int
Hostnames List<string>
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
ConfigId int
Hostnames []string
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
configId number
hostnames string[]
id string
The provider-assigned unique ID for this managed resource.
json string
outputText string
config_id int
hostnames Sequence[str]
id str
The provider-assigned unique ID for this managed resource.
json str
output_text str

Package Details

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