Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

getAppSecVersionNotes

Use the akamai.AppSecVersionNodes data source to retrieve the most recent version notes for a configuration.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        var versionNotes = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecVersionNotes.InvokeAsync(new Akamai.GetAppSecVersionNotesArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.VersionNotesText = versionNotes.Apply(versionNotes => versionNotes.OutputText);
        this.VersionNotesJson = versionNotes.Apply(versionNotes => versionNotes.Json);
    }

    [Output("versionNotesText")]
    public Output<string> VersionNotesText { get; set; }
    [Output("versionNotesJson")]
    public Output<string> VersionNotesJson { 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 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		versionNotes, err := akamai.GetAppSecVersionNotes(ctx, &akamai.GetAppSecVersionNotesArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("versionNotesText", versionNotes.OutputText)
		ctx.Export("versionNotesJson", versionNotes.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
version_notes = akamai.get_app_sec_version_notes(config_id=configuration.config_id)
pulumi.export("versionNotesText", version_notes.output_text)
pulumi.export("versionNotesJson", version_notes.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const versionNotes = configuration.then(configuration => akamai.getAppSecVersionNotes({
    configId: configuration.configId,
}));
export const versionNotesText = versionNotes.then(versionNotes => versionNotes.outputText);
export const versionNotesJson = versionNotes.then(versionNotes => versionNotes.json);

Using getAppSecVersionNotes

function getAppSecVersionNotes(args: GetAppSecVersionNotesArgs, opts?: InvokeOptions): Promise<GetAppSecVersionNotesResult>
def get_app_sec_version_notes(config_id: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAppSecVersionNotesResult
func GetAppSecVersionNotes(ctx *Context, args *GetAppSecVersionNotesArgs, opts ...InvokeOption) (*GetAppSecVersionNotesResult, error)

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

public static class GetAppSecVersionNotes {
    public static Task<GetAppSecVersionNotesResult> InvokeAsync(GetAppSecVersionNotesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The configuration ID to use.
ConfigId int
The configuration ID to use.
configId number
The configuration ID to use.
config_id int
The configuration ID to use.

getAppSecVersionNotes Result

The following output properties are available:

ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list showing the version notes.
OutputText string
A tabular display showing the version notes.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list showing the version notes.
OutputText string
A tabular display showing the version notes.
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list showing the version notes.
outputText string
A tabular display showing the version notes.
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list showing the version notes.
output_text str
A tabular display showing the version notes.

Package Details

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