getAppSecConfiguration

Use the akamai.AppSecConfiguration data source to retrieve the list of security configurations, or information about a specific security configuration.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configurations = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync());
        this.ConfigurationList = configurations.Apply(configurations => configurations.OutputText);
        var specificConfiguration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Akamai Tools",
        }));
        this.Latest = specificConfiguration.Apply(specificConfiguration => specificConfiguration.LatestVersion);
        this.Staging = specificConfiguration.Apply(specificConfiguration => specificConfiguration.StagingVersion);
        this.Production = specificConfiguration.Apply(specificConfiguration => specificConfiguration.ProductionVersion);
        this.Id = specificConfiguration.Apply(specificConfiguration => specificConfiguration.ConfigId);
    }

    [Output("configurationList")]
    public Output<string> ConfigurationList { get; set; }
    [Output("latest")]
    public Output<string> Latest { get; set; }
    [Output("staging")]
    public Output<string> Staging { get; set; }
    [Output("production")]
    public Output<string> Production { get; set; }
    [Output("id")]
    public Output<string> Id { 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 {
		configurations, err := akamai.LookupAppSecConfiguration(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("configurationList", configurations.OutputText)
		opt0 := "Akamai Tools"
		specificConfiguration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("latest", specificConfiguration.LatestVersion)
		ctx.Export("staging", specificConfiguration.StagingVersion)
		ctx.Export("production", specificConfiguration.ProductionVersion)
		ctx.Export("id", specificConfiguration.ConfigId)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configurations = akamai.get_app_sec_configuration()
pulumi.export("configurationList", configurations.output_text)
specific_configuration = akamai.get_app_sec_configuration(name="Akamai Tools")
pulumi.export("latest", specific_configuration.latest_version)
pulumi.export("staging", specific_configuration.staging_version)
pulumi.export("production", specific_configuration.production_version)
pulumi.export("id", specific_configuration.config_id)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configurations = akamai.getAppSecConfiguration({});
export const configurationList = configurations.then(configurations => configurations.outputText);
const specificConfiguration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
export const latest = specificConfiguration.then(specificConfiguration => specificConfiguration.latestVersion);
export const staging = specificConfiguration.then(specificConfiguration => specificConfiguration.stagingVersion);
export const production = specificConfiguration.then(specificConfiguration => specificConfiguration.productionVersion);
export const id = specificConfiguration.then(specificConfiguration => specificConfiguration.configId);

Using getAppSecConfiguration

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 getAppSecConfiguration(args: GetAppSecConfigurationArgs, opts?: InvokeOptions): Promise<GetAppSecConfigurationResult>
function getAppSecConfigurationOutput(args: GetAppSecConfigurationOutputArgs, opts?: InvokeOptions): Output<GetAppSecConfigurationResult>
def get_app_sec_configuration(name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppSecConfigurationResult
def get_app_sec_configuration_output(name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAppSecConfigurationResult]
func LookupAppSecConfiguration(ctx *Context, args *LookupAppSecConfigurationArgs, opts ...InvokeOption) (*LookupAppSecConfigurationResult, error)
func LookupAppSecConfigurationOutput(ctx *Context, args *LookupAppSecConfigurationOutputArgs, opts ...InvokeOption) LookupAppSecConfigurationResultOutput

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

public static class GetAppSecConfiguration 
{
    public static Task<GetAppSecConfigurationResult> InvokeAsync(GetAppSecConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecConfigurationResult> Invoke(GetAppSecConfigurationInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
The name of a specific security configuration. If not supplied, information about all security configurations is returned.
Name string
The name of a specific security configuration. If not supplied, information about all security configurations is returned.
name string
The name of a specific security configuration. If not supplied, information about all security configurations is returned.
name str
The name of a specific security configuration. If not supplied, information about all security configurations is returned.

getAppSecConfiguration Result

The following output properties are available:

ConfigId int
The ID of the specified security configuration. Returned only if name was specified.
Id string
The provider-assigned unique ID for this managed resource.
LatestVersion int
The last version of the specified security configuration created. Returned only if name was specified.
OutputText string
A tabular display showing the following information about all available security configurations: config_id, name, latest_version, version_active_in_staging, and version_active_in_production.
ProductionVersion int
The version of the specified security configuration currently active in production. Returned only if name was specified.
StagingVersion int
The version of the specified security configuration currently active in staging. Returned only if name was specified.
Name string
ConfigId int
The ID of the specified security configuration. Returned only if name was specified.
Id string
The provider-assigned unique ID for this managed resource.
LatestVersion int
The last version of the specified security configuration created. Returned only if name was specified.
OutputText string
A tabular display showing the following information about all available security configurations: config_id, name, latest_version, version_active_in_staging, and version_active_in_production.
ProductionVersion int
The version of the specified security configuration currently active in production. Returned only if name was specified.
StagingVersion int
The version of the specified security configuration currently active in staging. Returned only if name was specified.
Name string
configId number
The ID of the specified security configuration. Returned only if name was specified.
id string
The provider-assigned unique ID for this managed resource.
latestVersion number
The last version of the specified security configuration created. Returned only if name was specified.
outputText string
A tabular display showing the following information about all available security configurations: config_id, name, latest_version, version_active_in_staging, and version_active_in_production.
productionVersion number
The version of the specified security configuration currently active in production. Returned only if name was specified.
stagingVersion number
The version of the specified security configuration currently active in staging. Returned only if name was specified.
name string
config_id int
The ID of the specified security configuration. Returned only if name was specified.
id str
The provider-assigned unique ID for this managed resource.
latest_version int
The last version of the specified security configuration created. Returned only if name was specified.
output_text str
A tabular display showing the following information about all available security configurations: config_id, name, latest_version, version_active_in_staging, and version_active_in_production.
production_version int
The version of the specified security configuration currently active in production. Returned only if name was specified.
staging_version int
The version of the specified security configuration currently active in staging. Returned only if name was specified.
name str

Package Details

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