akamai logo
Akamai v4.1.0, Jan 25 23

akamai.getCpsWarnings

Use the akamai.getCpsWarnings data source to return a map of all possible pre- and post-verification warnings. The map includes both the ID needed to acknowledge a warning and a brief description of the issue.

CPS produces warnings during enrollment creation or after a client uploads the certificate. CPS won’t process a change until you acknowledge all warnings.

You can use the warning IDs returned by this data source to acknowledge or auto-approve warnings. The akamai.CpsThirdPartyEnrollment and akamai.CpsUploadCertificate resources include arguments to help you do this.

Basic usage

This example shows how to return a map of verification warnings:

import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = akamai.getCpsWarnings({});
import pulumi
import pulumi_akamai as akamai

example = akamai.get_cps_warnings()
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;

return await Deployment.RunAsync(() => 
{
    var example = Akamai.GetCpsWarnings.Invoke();

});
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.GetCpsWarnings(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = AkamaiFunctions.getCpsWarnings();

    }
}
variables:
  example:
    fn::invoke:
      Function: akamai:getCpsWarnings
      Arguments: {}

Attributes reference

This data source returns this attribute:

  • warnings - Validation warnings for the current change you’re making. Warnings display with an ID and a short description. Unless you auto-approve warnings, you need the ID to acknowledge the change. CPS won’t process the change until you acknowledge these warnings.

Using getCpsWarnings

function getCpsWarnings(opts?: InvokeOptions): Promise<GetCpsWarningsResult>
def get_cps_warnings(opts: Optional[InvokeOptions] = None) -> GetCpsWarningsResult
func GetCpsWarnings(ctx *Context, opts ...InvokeOption) (*GetCpsWarningsResult, error)

> Note: This function is named GetCpsWarnings in the Go SDK.

public static class GetCpsWarnings 
{
    public static Task<GetCpsWarningsResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetCpsWarningsResult> getCpsWarnings(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getCpsWarnings:getCpsWarnings
  arguments:
    # arguments dictionary

getCpsWarnings Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Warnings Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

Warnings map[string]string
id String

The provider-assigned unique ID for this managed resource.

warnings Map<String,String>
id string

The provider-assigned unique ID for this managed resource.

warnings {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

warnings Mapping[str, str]
id String

The provider-assigned unique ID for this managed resource.

warnings Map<String>

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.