getAppSecConfiguration

Use the akamai.getAppSecConfiguration 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.GetAppSecConfiguration(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("configurationList", configurations.OutputText)
		opt0 := "Akamai Tools"
		specificConfiguration, err := akamai.GetAppSecConfiguration(ctx, &akamai.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

function getAppSecConfiguration(args: GetAppSecConfigurationArgs, opts?: InvokeOptions): Promise<GetAppSecConfigurationResult>
def get_app_sec_configuration(name: Optional[str] = None,
                              version: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppSecConfigurationResult
func GetAppSecConfiguration(ctx *Context, args *GetAppSecConfigurationArgs, opts ...InvokeOption) (*GetAppSecConfigurationResult, error)

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

public static class GetAppSecConfiguration {
    public static Task<GetAppSecConfigurationResult> InvokeAsync(GetAppSecConfigurationArgs 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.
Version int
Name string
The name of a specific security configuration. If not supplied, information about all security configurations is returned.
Version int
name string
The name of a specific security configuration. If not supplied, information about all security configurations is returned.
version number
name str
The name of a specific security configuration. If not supplied, information about all security configurations is returned.
version int

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
Version int
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
Version int
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
version number
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
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.