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:
getAppSecMatchTargets Result
The following output properties are available:
- Config
Id int - Id string
- The provider-assigned unique ID for this managed resource.
- Output
Text string - A tabular display showing the ID and Policy ID of all match targets associated with the specified security configuration and version.
- Version int
- Config
Id int - Id string
- The provider-assigned unique ID for this managed resource.
- Output
Text string - A tabular display showing the ID and Policy ID of all match targets associated with the specified security configuration and version.
- Version int
- config
Id number - id string
- The provider-assigned unique ID for this managed resource.
- output
Text 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.