getContracts

Use the akamai.getContracts data source to list contracts associated with the EdgeGrid API client token you’re using.

Argument reference

There are no arguments available for this data source.

Attributes reference

This data source returns these attributes:

  • contracts - A list of supported contracts, with the following properties:
    • contract_id - The contract’s unique ID, including the ctr_ prefix.
    • contract_type_name - The type of contract, either DIRECT_CUSTOMER, INDIRECT_CUSTOMER, PARENT_CUSTOMER, REFERRAL_PARTNER, TIER_1_RESELLER, VAR_CUSTOMER, VALUE_ADDED_RESELLER, PARTNER, PORTAL_PARTNER, STREAMING_RESELLER, AKAMAI_INTERNAL, or UNKNOWN.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var my_example = Output.Create(Akamai.GetContracts.InvokeAsync());
        this.PropertyMatch = my_example;
    }

    [Output("propertyMatch")]
    public Output<string> PropertyMatch { 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 {
		my_example, err := akamai.GetContracts(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("propertyMatch", my_example)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

my_example = akamai.get_contracts()
pulumi.export("propertyMatch", my_example)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const my-example = akamai.getContracts({});
export const propertyMatch = my_example;

Using getContracts

function getContracts(opts?: InvokeOptions): Promise<GetContractsResult>
def get_contracts(opts: Optional[InvokeOptions] = None) -> GetContractsResult
func GetContracts(ctx *Context, opts ...InvokeOption) (*GetContractsResult, error)

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

public static class GetContracts 
{
    public static Task<GetContractsResult> InvokeAsync(InvokeOptions? opts = null)
}

getContracts Result

The following output properties are available:

Contracts List<GetContractsContract>
Id string
The provider-assigned unique ID for this managed resource.
Contracts []GetContractsContract
Id string
The provider-assigned unique ID for this managed resource.
contracts GetContractsContract[]
id string
The provider-assigned unique ID for this managed resource.
contracts Sequence[GetContractsContract]
id str
The provider-assigned unique ID for this managed resource.

Supporting Types

GetContractsContract

Package Details

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