getAppSecHostnameCoverage

Use the akamai.getAppSecHostnameCoverage data source to retrieve a list of hostnames in the account with their current protections, activation statuses, and other summary information. 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 hostnameCoverage = Output.Create(Akamai.GetAppSecHostnameCoverage.InvokeAsync());
        this.HostnameCoverageListJson = hostnameCoverage.Apply(hostnameCoverage => hostnameCoverage.Json);
        this.HostnameCoverageListOutput = hostnameCoverage.Apply(hostnameCoverage => hostnameCoverage.OutputText);
    }

    [Output("hostnameCoverageListJson")]
    public Output<string> HostnameCoverageListJson { get; set; }
    [Output("hostnameCoverageListOutput")]
    public Output<string> HostnameCoverageListOutput { 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
		_, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		hostnameCoverage, err := akamai.GetAppSecHostnameCoverage(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("hostnameCoverageListJson", hostnameCoverage.Json)
		ctx.Export("hostnameCoverageListOutput", hostnameCoverage.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
hostname_coverage = akamai.get_app_sec_hostname_coverage()
pulumi.export("hostnameCoverageListJson", hostname_coverage.json)
pulumi.export("hostnameCoverageListOutput", hostname_coverage.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const hostnameCoverage = akamai.getAppSecHostnameCoverage({});
export const hostnameCoverageListJson = hostnameCoverage.then(hostnameCoverage => hostnameCoverage.json);
export const hostnameCoverageListOutput = hostnameCoverage.then(hostnameCoverage => hostnameCoverage.outputText);

Using getAppSecHostnameCoverage

function getAppSecHostnameCoverage(opts?: InvokeOptions): Promise<GetAppSecHostnameCoverageResult>
def get_app_sec_hostname_coverage(opts: Optional[InvokeOptions] = None) -> GetAppSecHostnameCoverageResult
func GetAppSecHostnameCoverage(ctx *Context, opts ...InvokeOption) (*GetAppSecHostnameCoverageResult, error)

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

public static class GetAppSecHostnameCoverage {
    public static Task<GetAppSecHostnameCoverageResult> InvokeAsync(InvokeOptions? opts = null)
}

getAppSecHostnameCoverage Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the hostname coverage information.
OutputText string
A tabular display of the hostname coverage information.
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the hostname coverage information.
OutputText string
A tabular display of the hostname coverage information.
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of the hostname coverage information.
outputText string
A tabular display of the hostname coverage information.
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of the hostname coverage information.
output_text str
A tabular display of the hostname coverage information.

Package Details

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