getAppSecMatchTargets

Use the akamai.getAppSecMatchTargets data source to retrieve information about the match targets associated with a given configuration version.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Akamai Tools",
        }));
        var matchTargetsAppSecMatchTargets = Output.Tuple(configuration, configuration).Apply(values =>
        {
            var configuration = values.Item1;
            var configuration1 = values.Item2;
            return Output.Create(Akamai.GetAppSecMatchTargets.InvokeAsync(new Akamai.GetAppSecMatchTargetsArgs
            {
                ConfigId = configuration.ConfigId,
                Version = configuration1.LatestVersion,
            }));
        });
        this.MatchTargets = matchTargetsAppSecMatchTargets.Apply(matchTargetsAppSecMatchTargets => matchTargetsAppSecMatchTargets.OutputText);
    }

    [Output("matchTargets")]
    public Output<string> MatchTargets { 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 := "Akamai Tools"
		configuration, err := akamai.GetAppSecConfiguration(ctx, &akamai.GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		matchTargetsAppSecMatchTargets, err := akamai.GetAppSecMatchTargets(ctx, &akamai.GetAppSecMatchTargetsArgs{
			ConfigId: configuration.ConfigId,
			Version:  configuration.LatestVersion,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("matchTargets", matchTargetsAppSecMatchTargets.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Akamai Tools")
match_targets_app_sec_match_targets = akamai.get_app_sec_match_targets(config_id=configuration.config_id,
    version=configuration.latest_version)
pulumi.export("matchTargets", match_targets_app_sec_match_targets.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
const matchTargetsAppSecMatchTargets = Promise.all([configuration, configuration]).then(([configuration, configuration1]) => akamai.getAppSecMatchTargets({
    configId: configuration.configId,
    version: configuration1.latestVersion,
}));
export const matchTargets = matchTargetsAppSecMatchTargets.then(matchTargetsAppSecMatchTargets => matchTargetsAppSecMatchTargets.outputText);

Using getAppSecMatchTargets

function getAppSecMatchTargets(args: GetAppSecMatchTargetsArgs, opts?: InvokeOptions): Promise<GetAppSecMatchTargetsResult>
def get_app_sec_match_targets(config_id: Optional[int] = None,
                              version: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppSecMatchTargetsResult
func GetAppSecMatchTargets(ctx *Context, args *GetAppSecMatchTargetsArgs, opts ...InvokeOption) (*GetAppSecMatchTargetsResult, error)

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

public static class GetAppSecMatchTargets {
    public static Task<GetAppSecMatchTargetsResult> InvokeAsync(GetAppSecMatchTargetsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The ID of the security configuration to use.
Version int
The version number of the security configuration to use.
ConfigId int
The ID of the security configuration to use.
Version int
The version number of the security configuration to use.
configId number
The ID of the security configuration to use.
version number
The version number of the security configuration to use.
config_id int
The ID of the security configuration to use.
version int
The version number of the security configuration to use.

getAppSecMatchTargets Result

The following output properties are available:

ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the ID and Policy ID of all match targets associated with the specified security configuration and version.
Version int
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the ID and Policy ID of all match targets associated with the specified security configuration and version.
Version int
configId number
id string
The provider-assigned unique ID for this managed resource.
outputText string
A tabular display showing the ID and Policy ID of all match targets associated with the specified security configuration and version.
version number
config_id int
id str
The provider-assigned unique ID for this managed resource.
output_text str
A tabular display showing the ID and Policy ID of all match targets associated with the specified security configuration and version.
version int

Package Details

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