getAppSecConfigurationVersion

Use the akamai.getAppSecConfigurationVersion data source to retrieve information about the versions of a security configuration, or about a specific version.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var specificConfiguration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Akamai Tools",
        }));
        var versions = specificConfiguration.Apply(specificConfiguration => Output.Create(Akamai.GetAppSecConfigurationVersion.InvokeAsync(new Akamai.GetAppSecConfigurationVersionArgs
        {
            ConfigId = specificConfiguration.ConfigId,
        })));
        this.VersionsOutputText = versions.Apply(versions => versions.OutputText);
        this.VersionsLatest = versions.Apply(versions => versions.LatestVersion);
        var specificVersion = specificConfiguration.Apply(specificConfiguration => Output.Create(Akamai.GetAppSecConfigurationVersion.InvokeAsync(new Akamai.GetAppSecConfigurationVersionArgs
        {
            ConfigId = specificConfiguration.ConfigId,
            Version = 42,
        })));
        this.SpecificVersionVersion = specificVersion.Apply(specificVersion => specificVersion.Version);
        this.SpecificVersionStaging = specificVersion.Apply(specificVersion => specificVersion.StagingStatus);
        this.SpecificVersionProduction = specificVersion.Apply(specificVersion => specificVersion.ProductionStatus);
    }

    [Output("versionsOutputText")]
    public Output<string> VersionsOutputText { get; set; }
    [Output("versionsLatest")]
    public Output<string> VersionsLatest { get; set; }
    [Output("specificVersionVersion")]
    public Output<string> SpecificVersionVersion { get; set; }
    [Output("specificVersionStaging")]
    public Output<string> SpecificVersionStaging { get; set; }
    [Output("specificVersionProduction")]
    public Output<string> SpecificVersionProduction { 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"
		specificConfiguration, err := akamai.GetAppSecConfiguration(ctx, &akamai.GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		versions, err := akamai.GetAppSecConfigurationVersion(ctx, &akamai.GetAppSecConfigurationVersionArgs{
			ConfigId: specificConfiguration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("versionsOutputText", versions.OutputText)
		ctx.Export("versionsLatest", versions.LatestVersion)
		opt1 := 42
		specificVersion, err := akamai.GetAppSecConfigurationVersion(ctx, &akamai.GetAppSecConfigurationVersionArgs{
			ConfigId: specificConfiguration.ConfigId,
			Version:  &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("specificVersionVersion", specificVersion.Version)
		ctx.Export("specificVersionStaging", specificVersion.StagingStatus)
		ctx.Export("specificVersionProduction", specificVersion.ProductionStatus)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

specific_configuration = akamai.get_app_sec_configuration(name="Akamai Tools")
versions = akamai.get_app_sec_configuration_version(config_id=specific_configuration.config_id)
pulumi.export("versionsOutputText", versions.output_text)
pulumi.export("versionsLatest", versions.latest_version)
specific_version = akamai.get_app_sec_configuration_version(config_id=specific_configuration.config_id,
    version=42)
pulumi.export("specificVersionVersion", specific_version.version)
pulumi.export("specificVersionStaging", specific_version.staging_status)
pulumi.export("specificVersionProduction", specific_version.production_status)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const specificConfiguration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
const versions = specificConfiguration.then(specificConfiguration => akamai.getAppSecConfigurationVersion({
    configId: specificConfiguration.configId,
}));
export const versionsOutputText = versions.then(versions => versions.outputText);
export const versionsLatest = versions.then(versions => versions.latestVersion);
const specificVersion = specificConfiguration.then(specificConfiguration => akamai.getAppSecConfigurationVersion({
    configId: specificConfiguration.configId,
    version: 42,
}));
export const specificVersionVersion = specificVersion.then(specificVersion => specificVersion.version);
export const specificVersionStaging = specificVersion.then(specificVersion => specificVersion.stagingStatus);
export const specificVersionProduction = specificVersion.then(specificVersion => specificVersion.productionStatus);

Using getAppSecConfigurationVersion

function getAppSecConfigurationVersion(args: GetAppSecConfigurationVersionArgs, opts?: InvokeOptions): Promise<GetAppSecConfigurationVersionResult>
def get_app_sec_configuration_version(config_id: Optional[int] = None,
                                      version: Optional[int] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetAppSecConfigurationVersionResult
func GetAppSecConfigurationVersion(ctx *Context, args *GetAppSecConfigurationVersionArgs, opts ...InvokeOption) (*GetAppSecConfigurationVersionResult, error)

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

public static class GetAppSecConfigurationVersion {
    public static Task<GetAppSecConfigurationVersionResult> InvokeAsync(GetAppSecConfigurationVersionArgs 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. If not supplied, information about all versions of the specified security configuration is returned.
ConfigId int
The ID of the security configuration to use.
Version int
The version number of the security configuration to use. If not supplied, information about all versions of the specified security configuration is returned.
configId number
The ID of the security configuration to use.
version number
The version number of the security configuration to use. If not supplied, information about all versions of the specified security configuration is returned.
config_id int
The ID of the security configuration to use.
version int
The version number of the security configuration to use. If not supplied, information about all versions of the specified security configuration is returned.

getAppSecConfigurationVersion Result

The following output properties are available:

ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
LatestVersion int
The last version of the security configuration created.
OutputText string
A tabular display showing the following information about all versions of the security configuration: version number, staging status, and production status.
ProductionStatus string
The status of the specified version in production: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
StagingStatus string
The status of the specified version in staging: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
Version int
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
LatestVersion int
The last version of the security configuration created.
OutputText string
A tabular display showing the following information about all versions of the security configuration: version number, staging status, and production status.
ProductionStatus string
The status of the specified version in production: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
StagingStatus string
The status of the specified version in staging: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
Version int
configId number
id string
The provider-assigned unique ID for this managed resource.
latestVersion number
The last version of the security configuration created.
outputText string
A tabular display showing the following information about all versions of the security configuration: version number, staging status, and production status.
productionStatus string
The status of the specified version in production: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
stagingStatus string
The status of the specified version in staging: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
version number
config_id int
id str
The provider-assigned unique ID for this managed resource.
latest_version int
The last version of the security configuration created.
output_text str
A tabular display showing the following information about all versions of the security configuration: version number, staging status, and production status.
production_status str
The status of the specified version in production: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
staging_status str
The status of the specified version in staging: “Active”, “Inactive”, or “Deactivated”. Returned only if version was specified.
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.