getGroups

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

Basic usage

Return groups associated with the EdgeGrid API client token you’re using:

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

export const propertyMatch = data.akamai_groups["my-example"];
import pulumi

pulumi.export("propertyMatch", data["akamai_groups"]["my-example"])
using Pulumi;

class MyStack : Stack
{
    public MyStack()
    {
        this.PropertyMatch = data.Akamai_groups.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_groups.My-example)
		return nil
	})
}

Argument reference

There are no arguments available for this data source.

Attributes reference

This data source returns these attributes:

  • groups - A list of supported groups, with the following attributes:
    • group_id - A group’s unique ID, including the grp_ prefix.
    • group_name - The name of the group.
    • parent_group_id - The ID of the parent group, if applicable.
    • contract_ids - An array of strings listing the contract IDs for each group.

Using getGroups

function getGroups(opts?: InvokeOptions): Promise<GetGroupsResult>
def get_groups(opts: Optional[InvokeOptions] = None) -> GetGroupsResult
func GetGroups(ctx *Context, opts ...InvokeOption) (*GetGroupsResult, error)

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

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

getGroups Result

The following output properties are available:

Groups List<GetGroupsGroup>
Id string
The provider-assigned unique ID for this managed resource.
Groups []GetGroupsGroup
Id string
The provider-assigned unique ID for this managed resource.
groups GetGroupsGroup[]
id string
The provider-assigned unique ID for this managed resource.
groups Sequence[GetGroupsGroup]
id str
The provider-assigned unique ID for this managed resource.

Supporting Types

GetGroupsGroup

ContractIds List<string>
GroupId string
GroupName string
ParentGroupId string
ContractIds []string
GroupId string
GroupName string
ParentGroupId string
contractIds string[]
groupId string
groupName string
parentGroupId string

Package Details

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