getContract

Use the akamai.getContract data source to find a contract ID.

Argument reference

This data source requires one of these group arguments to return contract information:

  • group_name - The name of the group containing the contract.
  • group_id - The unique ID of the group containing the contract, including the grp_ prefix.
  • group - (Deprecated) Either the group ID or the group name that includes the contract. You can’t use this argument with group_id and group_name.

Attributes reference

  • id - The contract’s unique ID, including the ctr_ prefix.

Example Usage

Coming soon!

Coming soon!

Coming soon!

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

const exampleContract = pulumi.output(akamai.getContract({
    groupName: "example group name",
}));
const exampleProperty = new akamai.Property("example", {
    contractId: "",
    "data.akamai_contract.example.id": [{}],
});

Using getContract

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 getContract(args: GetContractArgs, opts?: InvokeOptions): Promise<GetContractResult>
function getContractOutput(args: GetContractOutputArgs, opts?: InvokeOptions): Output<GetContractResult>
def get_contract(group: Optional[str] = None,
                 group_id: Optional[str] = None,
                 group_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetContractResult
def get_contract_output(group: Optional[pulumi.Input[str]] = None,
                 group_id: Optional[pulumi.Input[str]] = None,
                 group_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetContractResult]
func GetContract(ctx *Context, args *GetContractArgs, opts ...InvokeOption) (*GetContractResult, error)
func GetContractOutput(ctx *Context, args *GetContractOutputArgs, opts ...InvokeOption) GetContractResultOutput

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

public static class GetContract 
{
    public static Task<GetContractResult> InvokeAsync(GetContractArgs args, InvokeOptions? opts = null)
    public static Output<GetContractResult> Invoke(GetContractInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Group string

Deprecated: The setting "group" has been deprecated.

GroupId string
GroupName string
Group string

Deprecated: The setting "group" has been deprecated.

GroupId string
GroupName string
group string

Deprecated: The setting "group" has been deprecated.

groupId string
groupName string
group str

Deprecated: The setting "group" has been deprecated.

group_id str
group_name str

getContract Result

The following output properties are available:

GroupId string
GroupName string
Id string
The provider-assigned unique ID for this managed resource.
Group string

Deprecated: The setting "group" has been deprecated.

GroupId string
GroupName string
Id string
The provider-assigned unique ID for this managed resource.
Group string

Deprecated: The setting "group" has been deprecated.

groupId string
groupName string
id string
The provider-assigned unique ID for this managed resource.
group string

Deprecated: The setting "group" has been deprecated.

group_id str
group_name str
id str
The provider-assigned unique ID for this managed resource.
group str

Deprecated: The setting "group" has been deprecated.

Package Details

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