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;

class MyStack : Stack
{
    public MyStack()
    {
        this.PropertyMatch = data.Akamai_contracts.My_example;
    }

    [Output("propertyMatch")]
    public Output<string> PropertyMatch { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("propertyMatch", data.Akamai_contracts.My-example)
		return nil
	})
}
import pulumi

pulumi.export("propertyMatch", data["akamai_contracts"]["my-example"])
import * as pulumi from "@pulumi/pulumi";

export const propertyMatch = data.akamai_contracts["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.