getAppSecFailoverHostnames

Use the akamai.getAppSecFailoverHostnames data source to retrieve a list of the failover hostnames in a configuration. The information available is described here.

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 failoverHostnamesAppSecFailoverHostnames = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecFailoverHostnames.InvokeAsync(new Akamai.GetAppSecFailoverHostnamesArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.FailoverHostnames = failoverHostnamesAppSecFailoverHostnames.Apply(failoverHostnamesAppSecFailoverHostnames => failoverHostnamesAppSecFailoverHostnames.Hostnames);
        this.FailoverHostnamesOutput = failoverHostnamesAppSecFailoverHostnames.Apply(failoverHostnamesAppSecFailoverHostnames => failoverHostnamesAppSecFailoverHostnames.OutputText);
        this.FailoverHostnamesJson = failoverHostnamesAppSecFailoverHostnames.Apply(failoverHostnamesAppSecFailoverHostnames => failoverHostnamesAppSecFailoverHostnames.Json);
    }

    [Output("failoverHostnames")]
    public Output<string> FailoverHostnames { get; set; }
    [Output("failoverHostnamesOutput")]
    public Output<string> FailoverHostnamesOutput { get; set; }
    [Output("failoverHostnamesJson")]
    public Output<string> FailoverHostnamesJson { 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
		}
		failoverHostnamesAppSecFailoverHostnames, err := akamai.GetAppSecFailoverHostnames(ctx, &akamai.GetAppSecFailoverHostnamesArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("failoverHostnames", failoverHostnamesAppSecFailoverHostnames.Hostnames)
		ctx.Export("failoverHostnamesOutput", failoverHostnamesAppSecFailoverHostnames.OutputText)
		ctx.Export("failoverHostnamesJson", failoverHostnamesAppSecFailoverHostnames.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
failover_hostnames_app_sec_failover_hostnames = akamai.get_app_sec_failover_hostnames(config_id=configuration.config_id)
pulumi.export("failoverHostnames", failover_hostnames_app_sec_failover_hostnames.hostnames)
pulumi.export("failoverHostnamesOutput", failover_hostnames_app_sec_failover_hostnames.output_text)
pulumi.export("failoverHostnamesJson", failover_hostnames_app_sec_failover_hostnames.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const failoverHostnamesAppSecFailoverHostnames = configuration.then(configuration => akamai.getAppSecFailoverHostnames({
    configId: configuration.configId,
}));
export const failoverHostnames = failoverHostnamesAppSecFailoverHostnames.then(failoverHostnamesAppSecFailoverHostnames => failoverHostnamesAppSecFailoverHostnames.hostnames);
export const failoverHostnamesOutput = failoverHostnamesAppSecFailoverHostnames.then(failoverHostnamesAppSecFailoverHostnames => failoverHostnamesAppSecFailoverHostnames.outputText);
export const failoverHostnamesJson = failoverHostnamesAppSecFailoverHostnames.then(failoverHostnamesAppSecFailoverHostnames => failoverHostnamesAppSecFailoverHostnames.json);

Using getAppSecFailoverHostnames

function getAppSecFailoverHostnames(args: GetAppSecFailoverHostnamesArgs, opts?: InvokeOptions): Promise<GetAppSecFailoverHostnamesResult>
def get_app_sec_failover_hostnames(config_id: Optional[int] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAppSecFailoverHostnamesResult
func GetAppSecFailoverHostnames(ctx *Context, args *GetAppSecFailoverHostnamesArgs, opts ...InvokeOption) (*GetAppSecFailoverHostnamesResult, error)

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

public static class GetAppSecFailoverHostnames {
    public static Task<GetAppSecFailoverHostnamesResult> InvokeAsync(GetAppSecFailoverHostnamesArgs 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.

getAppSecFailoverHostnames Result

The following output properties are available:

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