Akamai
Pulumi Official

Package maintained by Pulumiv2.9.0 published on Wednesday, Apr 6, 2022 by Pulumi
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";
import * as akamai from "@pulumi/akamai";
const my-example = akamai.getGroups({});
export const propertyMatch = my_example;
import pulumi
import pulumi_akamai as akamai
my_example = akamai.get_groups()
pulumi.export("propertyMatch", my_example)
using Pulumi;
using Akamai = Pulumi.Akamai;
class MyStack : Stack
{
public MyStack()
{
var my_example = Output.Create(Akamai.GetGroups.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.GetGroups(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("propertyMatch", my_example)
return nil
})
}
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 thegrp_
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)
}
public static CompletableFuture<GetGroupsResult> getGroups(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: akamai:index/getGroups:getGroups
Arguments:
# Arguments dictionary
getGroups Result
The following output properties are available:
- Groups
List<Get
Groups Group> - Id string
The provider-assigned unique ID for this managed resource.
- Groups
[]Get
Groups Group - Id string
The provider-assigned unique ID for this managed resource.
- groups
List
Groups Group> - id String
The provider-assigned unique ID for this managed resource.
- groups
Get
Groups Group[] - id string
The provider-assigned unique ID for this managed resource.
- groups
Sequence[Get
Groups Group] - id str
The provider-assigned unique ID for this managed resource.
Supporting Types
GetGroupsGroup
- Contract
Ids List<string> - Group
Id string - Group
Name string - Parent
Group stringId
- Contract
Ids []string - Group
Id string - Group
Name string - Parent
Group stringId
- contract
Ids List - group
Id String - group
Name String - parent
Group StringId
- contract
Ids string[] - group
Id string - group
Name string - parent
Group stringId
- contract_
ids Sequence[str] - group_
id str - group_
name str - parent_
group_ strid
- contract
Ids List - group
Id String - group
Name String - parent
Group StringId
Package Details
- Repository
- https://github.com/pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.