getAppSecRuleUpgradeDetails

Use the akamai.getAppSecRuleUpgradeDetails data source to retrieve information on changes to the KRS rule sets.

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 upgradeDetails = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecRuleUpgradeDetails.InvokeAsync(new Akamai.GetAppSecRuleUpgradeDetailsArgs
        {
            ConfigId = configuration.ConfigId,
            SecurityPolicyId = @var.Security_policy_id,
        })));
        this.UpgradeDetailsText = upgradeDetails.Apply(upgradeDetails => upgradeDetails.OutputText);
        this.UpgradeDetailsJson = upgradeDetails.Apply(upgradeDetails => upgradeDetails.Json);
    }

    [Output("upgradeDetailsText")]
    public Output<string> UpgradeDetailsText { get; set; }
    [Output("upgradeDetailsJson")]
    public Output<string> UpgradeDetailsJson { 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
		}
		upgradeDetails, err := akamai.GetAppSecRuleUpgradeDetails(ctx, &akamai.GetAppSecRuleUpgradeDetailsArgs{
			ConfigId:         configuration.ConfigId,
			SecurityPolicyId: _var.Security_policy_id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("upgradeDetailsText", upgradeDetails.OutputText)
		ctx.Export("upgradeDetailsJson", upgradeDetails.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
upgrade_details = akamai.get_app_sec_rule_upgrade_details(config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"])
pulumi.export("upgradeDetailsText", upgrade_details.output_text)
pulumi.export("upgradeDetailsJson", upgrade_details.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const upgradeDetails = configuration.then(configuration => akamai.getAppSecRuleUpgradeDetails({
    configId: configuration.configId,
    securityPolicyId: _var.security_policy_id,
}));
export const upgradeDetailsText = upgradeDetails.then(upgradeDetails => upgradeDetails.outputText);
export const upgradeDetailsJson = upgradeDetails.then(upgradeDetails => upgradeDetails.json);

Using getAppSecRuleUpgradeDetails

function getAppSecRuleUpgradeDetails(args: GetAppSecRuleUpgradeDetailsArgs, opts?: InvokeOptions): Promise<GetAppSecRuleUpgradeDetailsResult>
def get_app_sec_rule_upgrade_details(config_id: Optional[int] = None,
                                     security_policy_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAppSecRuleUpgradeDetailsResult
func GetAppSecRuleUpgradeDetails(ctx *Context, args *GetAppSecRuleUpgradeDetailsArgs, opts ...InvokeOption) (*GetAppSecRuleUpgradeDetailsResult, error)

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

public static class GetAppSecRuleUpgradeDetails {
    public static Task<GetAppSecRuleUpgradeDetailsResult> InvokeAsync(GetAppSecRuleUpgradeDetailsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
configId number
The ID of the security configuration to use.
securityPolicyId string
The ID of the security policy to use.
config_id int
The ID of the security configuration to use.
security_policy_id str
The ID of the security policy to use.

getAppSecRuleUpgradeDetails 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 of the changes (additions and deletions) to the rules for the specified security policy.
OutputText string
A tabular display showing changes (additions and deletions) to the rules for the specified security policy.
SecurityPolicyId string
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of the changes (additions and deletions) to the rules for the specified security policy.
OutputText string
A tabular display showing changes (additions and deletions) to the rules for the specified security policy.
SecurityPolicyId string
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of the changes (additions and deletions) to the rules for the specified security policy.
outputText string
A tabular display showing changes (additions and deletions) to the rules for the specified security policy.
securityPolicyId string
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of the changes (additions and deletions) to the rules for the specified security policy.
output_text str
A tabular display showing changes (additions and deletions) to the rules for the specified security policy.
security_policy_id 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.