Akamai

v3.1.1 published on Tuesday, Nov 1, 2022 by Pulumi

getAppSecHostnameCoverageOverlapping

Scopes: Security configuration; hostname

Returns information about any other configuration versions that contain a hostname found in the current configuration version.

Related API Endpoint:/appsec/v1/configs/{configId}/versions/{versionNumber}/hostname-coverage/overlapping

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

Example Usage

Basic usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var test = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecHostnameCoverageOverlapping.InvokeAsync(new Akamai.GetAppSecHostnameCoverageOverlappingArgs
        {
            ConfigId = configuration.ConfigId,
            Hostname = "documentation.akamai.com",
        })));
    }

}
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 {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.GetAppSecHostnameCoverageOverlapping(ctx, &GetAppSecHostnameCoverageOverlappingArgs{
			ConfigId: configuration.ConfigId,
			Hostname: "documentation.akamai.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.inputs.GetAppSecHostnameCoverageOverlappingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
            .name("Documentation")
            .build());

        final var test = AkamaiFunctions.getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs.builder()
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .hostname("documentation.akamai.com")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
test = akamai.get_app_sec_hostname_coverage_overlapping(config_id=configuration.config_id,
    hostname="documentation.akamai.com")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const test = configuration.then(configuration => akamai.getAppSecHostnameCoverageOverlapping({
    configId: configuration.configId,
    hostname: "documentation.akamai.com",
}));
variables:
  configuration:
    Fn::Invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation
  test:
    Fn::Invoke:
      Function: akamai:getAppSecHostnameCoverageOverlapping
      Arguments:
        configId: ${configuration.configId}
        hostname: documentation.akamai.com

Using getAppSecHostnameCoverageOverlapping

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAppSecHostnameCoverageOverlapping(args: GetAppSecHostnameCoverageOverlappingArgs, opts?: InvokeOptions): Promise<GetAppSecHostnameCoverageOverlappingResult>
function getAppSecHostnameCoverageOverlappingOutput(args: GetAppSecHostnameCoverageOverlappingOutputArgs, opts?: InvokeOptions): Output<GetAppSecHostnameCoverageOverlappingResult>
def get_app_sec_hostname_coverage_overlapping(config_id: Optional[int] = None,
                                              hostname: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetAppSecHostnameCoverageOverlappingResult
def get_app_sec_hostname_coverage_overlapping_output(config_id: Optional[pulumi.Input[int]] = None,
                                              hostname: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetAppSecHostnameCoverageOverlappingResult]
func GetAppSecHostnameCoverageOverlapping(ctx *Context, args *GetAppSecHostnameCoverageOverlappingArgs, opts ...InvokeOption) (*GetAppSecHostnameCoverageOverlappingResult, error)
func GetAppSecHostnameCoverageOverlappingOutput(ctx *Context, args *GetAppSecHostnameCoverageOverlappingOutputArgs, opts ...InvokeOption) GetAppSecHostnameCoverageOverlappingResultOutput

> Note: This function is named GetAppSecHostnameCoverageOverlapping in the Go SDK.

public static class GetAppSecHostnameCoverageOverlapping 
{
    public static Task<GetAppSecHostnameCoverageOverlappingResult> InvokeAsync(GetAppSecHostnameCoverageOverlappingArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecHostnameCoverageOverlappingResult> Invoke(GetAppSecHostnameCoverageOverlappingInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppSecHostnameCoverageOverlappingResult> getAppSecHostnameCoverageOverlapping(GetAppSecHostnameCoverageOverlappingArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getAppSecHostnameCoverageOverlapping:getAppSecHostnameCoverageOverlapping
  arguments:
    # arguments dictionary

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration you want to return information for.

Hostname string

. Name of the host you want to return information for.

ConfigId int

. Unique identifier of the security configuration you want to return information for.

Hostname string

. Name of the host you want to return information for.

configId Integer

. Unique identifier of the security configuration you want to return information for.

hostname String

. Name of the host you want to return information for.

configId number

. Unique identifier of the security configuration you want to return information for.

hostname string

. Name of the host you want to return information for.

config_id int

. Unique identifier of the security configuration you want to return information for.

hostname str

. Name of the host you want to return information for.

configId Number

. Unique identifier of the security configuration you want to return information for.

hostname String

. Name of the host you want to return information for.

getAppSecHostnameCoverageOverlapping Result

The following output properties are available:

ConfigId int
Hostname string
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
ConfigId int
Hostname string
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
configId Integer
hostname String
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
configId number
hostname string
id string

The provider-assigned unique ID for this managed resource.

json string
outputText string
config_id int
hostname str
id str

The provider-assigned unique ID for this managed resource.

json str
output_text str
configId Number
hostname String
id String

The provider-assigned unique ID for this managed resource.

json String
outputText 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.