Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi
Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi
Use this data source to retrieve all org groups in the organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// List every org group in the organization.
const all = datadog.getOrgGroups({});
import pulumi
import pulumi_datadog as datadog
# List every org group in the organization.
all = datadog.get_org_groups()
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// List every org group in the organization.
_, err := datadog.GetOrgGroups(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// List every org group in the organization.
var all = Datadog.GetOrgGroups.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import java.util.ArrayList;
import java.util.Arrays;
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) {
// List every org group in the organization.
final var all = DatadogFunctions.getOrgGroups(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
variables:
# List every org group in the organization.
all:
fn::invoke:
function: datadog:getOrgGroups
arguments: {}
pulumi {
required_providers {
datadog = {
source = "pulumi/datadog"
}
}
}
data "datadog_getorggroups" "all" {
}
# List every org group in the organization.
Using getOrgGroups
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 getOrgGroups(opts?: InvokeOptions): Promise<GetOrgGroupsResult>
function getOrgGroupsOutput(opts?: InvokeOptions): Output<GetOrgGroupsResult>def get_org_groups(opts: Optional[InvokeOptions] = None) -> GetOrgGroupsResult
def get_org_groups_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrgGroupsResult]func GetOrgGroups(ctx *Context, opts ...InvokeOption) (*GetOrgGroupsResult, error)
func GetOrgGroupsOutput(ctx *Context, opts ...InvokeOption) GetOrgGroupsResultOutput> Note: This function is named GetOrgGroups in the Go SDK.
public static class GetOrgGroups
{
public static Task<GetOrgGroupsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetOrgGroupsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetOrgGroupsResult> getOrgGroups(InvokeOptions options)
public static Output<GetOrgGroupsResult> getOrgGroups(InvokeOptions options)
fn::invoke:
function: datadog:index/getOrgGroups:getOrgGroups
arguments:
# arguments dictionarydata "datadog_getorggroups" "name" {
# arguments
}getOrgGroups Result
The following output properties are available:
- Groups
List<Get
Org Groups Group> - The list of org groups.
- Id string
- The ID of this resource.
- Groups
[]Get
Org Groups Group - The list of org groups.
- Id string
- The ID of this resource.
- groups list(object)
- The list of org groups.
- id string
- The ID of this resource.
- groups
List<Get
Org Groups Group> - The list of org groups.
- id String
- The ID of this resource.
- groups
Get
Org Groups Group[] - The list of org groups.
- id string
- The ID of this resource.
- groups
Sequence[Get
Org Groups Group] - The list of org groups.
- id str
- The ID of this resource.
- groups List<Property Map>
- The list of org groups.
- id String
- The ID of this resource.
Supporting Types
GetOrgGroupsGroup
- Id string
- Name string
- Owner
Org stringSite - Owner
Org stringUuid
- Id string
- Name string
- Owner
Org stringSite - Owner
Org stringUuid
- id string
- name string
- owner_
org_ stringsite - owner_
org_ stringuuid
- id String
- name String
- owner
Org StringSite - owner
Org StringUuid
- id string
- name string
- owner
Org stringSite - owner
Org stringUuid
- id str
- name str
- owner_
org_ strsite - owner_
org_ struuid
- id String
- name String
- owner
Org StringSite - owner
Org StringUuid
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi