Akamai
getAppSecHostnameCoverage
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);
}
[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/v3/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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
})
}
Coming soon!
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);
variables:
hostnameCoverage:
Fn::Invoke:
Function: akamai:getAppSecHostnameCoverage
Arguments: {}
outputs:
hostnameCoverageListJson: ${hostnameCoverage.json} # USE CASE: User wants to display the returned data in a table.
hostnameCoverageListOutput: ${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)
}
public static CompletableFuture<GetAppSecHostnameCoverageResult> getAppSecHostnameCoverage(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: akamai:index/getAppSecHostnameCoverage:getAppSecHostnameCoverage
Arguments:
# Arguments dictionary
getAppSecHostnameCoverage Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Json string
- Output
Text string
- Id string
The provider-assigned unique ID for this managed resource.
- Json string
- Output
Text string
- id String
The provider-assigned unique ID for this managed resource.
- json String
- output
Text String
- id string
The provider-assigned unique ID for this managed resource.
- json string
- output
Text string
- id str
The provider-assigned unique ID for this managed resource.
- json str
- output_
text str
- id String
The provider-assigned unique ID for this managed resource.
- json String
- output
Text String
Package Details
- Repository
- https://github.com/pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.