Akamai v4.1.0, Jan 25 23
Akamai v4.1.0, Jan 25 23
akamai.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 System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var my_example = Akamai.GetGroups.Invoke();
return new Dictionary<string, object?>
{
["propertyMatch"] = my_example.Apply(getGroupsResult => getGroupsResult),
};
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-example = AkamaiFunctions.getGroups();
ctx.export("propertyMatch", my_example);
}
}
variables:
my-example:
fn::invoke:
Function: akamai:getGroups
Arguments: {}
outputs:
propertyMatch: ${["my-example"]}
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<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
Sequence[Get
Groups Group] - id str
The provider-assigned unique ID for this managed resource.
- groups List<Property Map>
- id String
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<String> - 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<String> - group
Id String - group
Name String - parent
Group StringId
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.