getAppSecEvalHostnames

Use the akamai.AppSecEvalHostnames data source to retrieve the evaluation hostnames for a configuration. Evaluation mode for hostnames is only available for Web Application Protector. Run hostnames in evaluation mode to see how your configuration settings protect traffic for that hostname before adding a hostname directly to a live configuration. An evaluation period lasts four weeks unless you stop the evaluation. Once you begin, the hostnames you evaluate start responding to traffic as if they are your current hostnames. However, instead of taking an action the evaluation hostnames log which action they would have taken if they were your actively-protected hostnames and not a test.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        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 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		evalHostnamesAppSecEvalHostnames, err := akamai.LookupAppSecEvalHostnames(ctx, &akamai.LookupAppSecEvalHostnamesArgs{
			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=var["security_configuration"])
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: _var.security_configuration,
});
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

function getAppSecEvalHostnames(args: GetAppSecEvalHostnamesArgs, opts?: InvokeOptions): Promise<GetAppSecEvalHostnamesResult>
def get_app_sec_eval_hostnames(config_id: Optional[int] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAppSecEvalHostnamesResult
func LookupAppSecEvalHostnames(ctx *Context, args *LookupAppSecEvalHostnamesArgs, opts ...InvokeOption) (*LookupAppSecEvalHostnamesResult, error)

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

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

The following arguments are supported:

ConfigId int
The ID of the security configuration to use.
ConfigId int
The ID of the security configuration to use.
configId number
The ID of the security configuration to use.
config_id int
The ID of the security configuration to use.

getAppSecEvalHostnames Result

The following output properties are available:

ConfigId int
Hostnames List<string>
A list of the evaluation hostnames.
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the evaluation hostnames.
OutputText string
A tabular display showing the evaluation hostnames.
ConfigId int
Hostnames []string
A list of the evaluation hostnames.
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the evaluation hostnames.
OutputText string
A tabular display showing the evaluation hostnames.
configId number
hostnames string[]
A list of the evaluation hostnames.
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of the evaluation hostnames.
outputText string
A tabular display showing the evaluation hostnames.
config_id int
hostnames Sequence[str]
A list of the evaluation hostnames.
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of the evaluation hostnames.
output_text str
A tabular display showing the evaluation hostnames.

Package Details

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