Scopes: Individual account

Returns information about the hostnames associated with your account; the returned data includes the hostname’s protections, activation status, and other summary information. This information is described in the HostnameCoverage members section of the Application Security API.

Related API Endpoint: /appsec/v1/hostname-coverage

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 hostname coverage information.
  • output_text. Tabular report of the hostname coverage information.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
    public MyStack()
        var hostnameCoverage = Output.Create(Akamai.GetAppSecHostnameCoverage.InvokeAsync());
        this.HostnameCoverageListJson = hostnameCoverage.Apply(hostnameCoverage => hostnameCoverage.Json);
        this.HostnameCoverageListOutput = hostnameCoverage.Apply(hostnameCoverage => hostnameCoverage.OutputText);

    public Output<string> HostnameCoverageListJson { get; set; }
    public Output<string> HostnameCoverageListOutput { get; set; }
package main

import (

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		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

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 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
OutputText string
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
id string
The provider-assigned unique ID for this managed resource.
json string
outputText string
id str
The provider-assigned unique ID for this managed resource.
json str
output_text str

Package Details

This Pulumi package is based on the akamai Terraform Provider.