getAppSecReputationProfiles

Use the akamai.getAppSecReputationProfiles data source to retrieve details about all reputation profiles, or a specific reputation profiles.

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 reputationProfiles = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecReputationProfiles.InvokeAsync(new Akamai.GetAppSecReputationProfilesArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.ReputationProfilesOutput = reputationProfiles.Apply(reputationProfiles => reputationProfiles.OutputText);
        this.ReputationProfilesJson = reputationProfiles.Apply(reputationProfiles => reputationProfiles.Json);
        var reputationProfile = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecReputationProfiles.InvokeAsync(new Akamai.GetAppSecReputationProfilesArgs
        {
            ConfigId = configuration.ConfigId,
            ReputationProfileId = @var.Reputation_profile_id,
        })));
        this.ReputationProfileJson = reputationProfile.Apply(reputationProfile => reputationProfile.Json);
        this.ReputationProfileOutput = reputationProfile.Apply(reputationProfile => reputationProfile.OutputText);
    }

    [Output("reputationProfilesOutput")]
    public Output<string> ReputationProfilesOutput { get; set; }
    [Output("reputationProfilesJson")]
    public Output<string> ReputationProfilesJson { get; set; }
    [Output("reputationProfileJson")]
    public Output<string> ReputationProfileJson { get; set; }
    [Output("reputationProfileOutput")]
    public Output<string> ReputationProfileOutput { 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
		}
		reputationProfiles, err := akamai.GetAppSecReputationProfiles(ctx, &akamai.GetAppSecReputationProfilesArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("reputationProfilesOutput", reputationProfiles.OutputText)
		ctx.Export("reputationProfilesJson", reputationProfiles.Json)
		opt1 := _var.Reputation_profile_id
		reputationProfile, err := akamai.GetAppSecReputationProfiles(ctx, &akamai.GetAppSecReputationProfilesArgs{
			ConfigId:            configuration.ConfigId,
			ReputationProfileId: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("reputationProfileJson", reputationProfile.Json)
		ctx.Export("reputationProfileOutput", reputationProfile.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
reputation_profiles = akamai.get_app_sec_reputation_profiles(config_id=configuration.config_id)
pulumi.export("reputationProfilesOutput", reputation_profiles.output_text)
pulumi.export("reputationProfilesJson", reputation_profiles.json)
reputation_profile = akamai.get_app_sec_reputation_profiles(config_id=configuration.config_id,
    reputation_profile_id=var["reputation_profile_id"])
pulumi.export("reputationProfileJson", reputation_profile.json)
pulumi.export("reputationProfileOutput", reputation_profile.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const reputationProfiles = configuration.then(configuration => akamai.getAppSecReputationProfiles({
    configId: configuration.configId,
}));
export const reputationProfilesOutput = reputationProfiles.then(reputationProfiles => reputationProfiles.outputText);
export const reputationProfilesJson = reputationProfiles.then(reputationProfiles => reputationProfiles.json);
const reputationProfile = configuration.then(configuration => akamai.getAppSecReputationProfiles({
    configId: configuration.configId,
    reputationProfileId: _var.reputation_profile_id,
}));
export const reputationProfileJson = reputationProfile.then(reputationProfile => reputationProfile.json);
export const reputationProfileOutput = reputationProfile.then(reputationProfile => reputationProfile.outputText);

Using getAppSecReputationProfiles

function getAppSecReputationProfiles(args: GetAppSecReputationProfilesArgs, opts?: InvokeOptions): Promise<GetAppSecReputationProfilesResult>
def get_app_sec_reputation_profiles(config_id: Optional[int] = None,
                                    reputation_profile_id: Optional[int] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAppSecReputationProfilesResult
func GetAppSecReputationProfiles(ctx *Context, args *GetAppSecReputationProfilesArgs, opts ...InvokeOption) (*GetAppSecReputationProfilesResult, error)

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

public static class GetAppSecReputationProfiles {
    public static Task<GetAppSecReputationProfilesResult> InvokeAsync(GetAppSecReputationProfilesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The ID of the security configuration to use.
ReputationProfileId int
The ID of a given reputation profile. If not supplied, information about all reputation profiles is returned.
ConfigId int
The ID of the security configuration to use.
ReputationProfileId int
The ID of a given reputation profile. If not supplied, information about all reputation profiles is returned.
configId number
The ID of the security configuration to use.
reputationProfileId number
The ID of a given reputation profile. If not supplied, information about all reputation profiles is returned.
config_id int
The ID of the security configuration to use.
reputation_profile_id int
The ID of a given reputation profile. If not supplied, information about all reputation profiles is returned.

getAppSecReputationProfiles 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 display of the details about the indicated reputation profile or profiles.
OutputText string
A tabular display of the details about the indicated reputation profile or profiles.
ReputationProfileId int
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted display of the details about the indicated reputation profile or profiles.
OutputText string
A tabular display of the details about the indicated reputation profile or profiles.
ReputationProfileId int
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted display of the details about the indicated reputation profile or profiles.
outputText string
A tabular display of the details about the indicated reputation profile or profiles.
reputationProfileId number
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted display of the details about the indicated reputation profile or profiles.
output_text str
A tabular display of the details about the indicated reputation profile or profiles.
reputation_profile_id 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.