Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

getAuthoritiesSet

Use the akamai.getAuthoritiesSet data source to retrieve a contract’s authorities set. You use the authorities set when creating new zones.

Attributes reference

This data source supports this attribute:

  • authorities - A list of authorities.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Akamai.GetAuthoritiesSet.InvokeAsync(new Akamai.GetAuthoritiesSetArgs
        {
            Contract = "ctr_1-AB123",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.GetAuthoritiesSet(ctx, &GetAuthoritiesSetArgs{
			Contract: "ctr_1-AB123",
		}, 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 com.pulumi.akamai.edgedns.inputs.GetAuthoritiesSetArgs;
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.getAuthoritiesSet(GetAuthoritiesSetArgs.builder()
            .contract("ctr_1-AB123")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

example = akamai.get_authorities_set(contract="ctr_1-AB123")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = pulumi.output(akamai.getAuthoritiesSet({
    contract: "ctr_1-AB123",
}));
variables:
  example:
    Fn::Invoke:
      Function: akamai:getAuthoritiesSet
      Arguments:
        contract: ctr_1-AB123

Using getAuthoritiesSet

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAuthoritiesSet(args: GetAuthoritiesSetArgs, opts?: InvokeOptions): Promise<GetAuthoritiesSetResult>
function getAuthoritiesSetOutput(args: GetAuthoritiesSetOutputArgs, opts?: InvokeOptions): Output<GetAuthoritiesSetResult>
def get_authorities_set(contract: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAuthoritiesSetResult
def get_authorities_set_output(contract: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAuthoritiesSetResult]
func GetAuthoritiesSet(ctx *Context, args *GetAuthoritiesSetArgs, opts ...InvokeOption) (*GetAuthoritiesSetResult, error)
func GetAuthoritiesSetOutput(ctx *Context, args *GetAuthoritiesSetOutputArgs, opts ...InvokeOption) GetAuthoritiesSetResultOutput

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

public static class GetAuthoritiesSet 
{
    public static Task<GetAuthoritiesSetResult> InvokeAsync(GetAuthoritiesSetArgs args, InvokeOptions? opts = null)
    public static Output<GetAuthoritiesSetResult> Invoke(GetAuthoritiesSetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthoritiesSetResult> getAuthoritiesSet(GetAuthoritiesSetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getAuthoritiesSet:getAuthoritiesSet
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Contract string

The contract ID.

Contract string

The contract ID.

contract String

The contract ID.

contract string

The contract ID.

contract str

The contract ID.

contract String

The contract ID.

getAuthoritiesSet Result

The following output properties are available:

Authorities List<string>
Contract string
Id string

The provider-assigned unique ID for this managed resource.

Authorities []string
Contract string
Id string

The provider-assigned unique ID for this managed resource.

authorities List<String>
contract String
id String

The provider-assigned unique ID for this managed resource.

authorities string[]
contract string
id string

The provider-assigned unique ID for this managed resource.

authorities Sequence[str]
contract str
id str

The provider-assigned unique ID for this managed resource.

authorities List<String>
contract String
id String

The provider-assigned unique ID for this managed resource.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.