Viewing docs for Datadog v5.4.0
published on Tuesday, Jun 2, 2026 by Pulumi
published on Tuesday, Jun 2, 2026 by Pulumi
Viewing docs for Datadog v5.4.0
published on Tuesday, Jun 2, 2026 by Pulumi
published on Tuesday, Jun 2, 2026 by Pulumi
Use this data source to retrieve the policies attached to an org group, optionally filtered by policy name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// List every policy attached to the given org group.
const all = datadog.getOrgGroupPolicies({
orgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
});
// Or look up a specific policy by name to reference its ID elsewhere.
const widgetCopyPaste = datadog.getOrgGroupPolicies({
orgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
policyName: "is_widget_copy_paste_enabled",
});
import pulumi
import pulumi_datadog as datadog
# List every policy attached to the given org group.
all = datadog.get_org_group_policies(org_group_id="019d97e8-74d4-7060-806e-e731c8f1d005")
# Or look up a specific policy by name to reference its ID elsewhere.
widget_copy_paste = datadog.get_org_group_policies(org_group_id="019d97e8-74d4-7060-806e-e731c8f1d005",
policy_name="is_widget_copy_paste_enabled")
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 policy attached to the given org group.
_, err := datadog.GetOrgGroupPolicies(ctx, &datadog.GetOrgGroupPoliciesArgs{
OrgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
}, nil)
if err != nil {
return err
}
// Or look up a specific policy by name to reference its ID elsewhere.
_, err = datadog.GetOrgGroupPolicies(ctx, &datadog.GetOrgGroupPoliciesArgs{
OrgGroupId: "019d97e8-74d4-7060-806e-e731c8f1d005",
PolicyName: pulumi.StringRef("is_widget_copy_paste_enabled"),
}, 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 policy attached to the given org group.
var all = Datadog.GetOrgGroupPolicies.Invoke(new()
{
OrgGroupId = "019d97e8-74d4-7060-806e-e731c8f1d005",
});
// Or look up a specific policy by name to reference its ID elsewhere.
var widgetCopyPaste = Datadog.GetOrgGroupPolicies.Invoke(new()
{
OrgGroupId = "019d97e8-74d4-7060-806e-e731c8f1d005",
PolicyName = "is_widget_copy_paste_enabled",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import com.pulumi.datadog.inputs.GetOrgGroupPoliciesArgs;
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 policy attached to the given org group.
final var all = DatadogFunctions.getOrgGroupPolicies(GetOrgGroupPoliciesArgs.builder()
.orgGroupId("019d97e8-74d4-7060-806e-e731c8f1d005")
.build());
// Or look up a specific policy by name to reference its ID elsewhere.
final var widgetCopyPaste = DatadogFunctions.getOrgGroupPolicies(GetOrgGroupPoliciesArgs.builder()
.orgGroupId("019d97e8-74d4-7060-806e-e731c8f1d005")
.policyName("is_widget_copy_paste_enabled")
.build());
}
}
variables:
# List every policy attached to the given org group.
all:
fn::invoke:
function: datadog:getOrgGroupPolicies
arguments:
orgGroupId: 019d97e8-74d4-7060-806e-e731c8f1d005
# Or look up a specific policy by name to reference its ID elsewhere.
widgetCopyPaste:
fn::invoke:
function: datadog:getOrgGroupPolicies
arguments:
orgGroupId: 019d97e8-74d4-7060-806e-e731c8f1d005
policyName: is_widget_copy_paste_enabled
pulumi {
required_providers {
datadog = {
source = "pulumi/datadog"
}
}
}
data "datadog_getorggrouppolicies" "all" {
org_group_id = "019d97e8-74d4-7060-806e-e731c8f1d005"
}
data "datadog_getorggrouppolicies" "widgetCopyPaste" {
org_group_id = "019d97e8-74d4-7060-806e-e731c8f1d005"
policy_name = "is_widget_copy_paste_enabled"
}
# List every policy attached to the given org group.
# Or look up a specific policy by name to reference its ID elsewhere.
Using getOrgGroupPolicies
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 getOrgGroupPolicies(args: GetOrgGroupPoliciesArgs, opts?: InvokeOptions): Promise<GetOrgGroupPoliciesResult>
function getOrgGroupPoliciesOutput(args: GetOrgGroupPoliciesOutputArgs, opts?: InvokeOptions): Output<GetOrgGroupPoliciesResult>def get_org_group_policies(org_group_id: Optional[str] = None,
policy_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgGroupPoliciesResult
def get_org_group_policies_output(org_group_id: pulumi.Input[Optional[str]] = None,
policy_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrgGroupPoliciesResult]func GetOrgGroupPolicies(ctx *Context, args *GetOrgGroupPoliciesArgs, opts ...InvokeOption) (*GetOrgGroupPoliciesResult, error)
func GetOrgGroupPoliciesOutput(ctx *Context, args *GetOrgGroupPoliciesOutputArgs, opts ...InvokeOption) GetOrgGroupPoliciesResultOutput> Note: This function is named GetOrgGroupPolicies in the Go SDK.
public static class GetOrgGroupPolicies
{
public static Task<GetOrgGroupPoliciesResult> InvokeAsync(GetOrgGroupPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetOrgGroupPoliciesResult> Invoke(GetOrgGroupPoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrgGroupPoliciesResult> getOrgGroupPolicies(GetOrgGroupPoliciesArgs args, InvokeOptions options)
public static Output<GetOrgGroupPoliciesResult> getOrgGroupPolicies(GetOrgGroupPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getOrgGroupPolicies:getOrgGroupPolicies
arguments:
# arguments dictionarydata "datadog_getorggrouppolicies" "name" {
# arguments
}The following arguments are supported:
- Org
Group stringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- Policy
Name string - Filter policies by name.
- Org
Group stringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- Policy
Name string - Filter policies by name.
- org_
group_ stringid - The UUID of the org group whose policies to list. Must be a valid UUID.
- policy_
name string - Filter policies by name.
- org
Group StringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- policy
Name String - Filter policies by name.
- org
Group stringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- policy
Name string - Filter policies by name.
- org_
group_ strid - The UUID of the org group whose policies to list. Must be a valid UUID.
- policy_
name str - Filter policies by name.
- org
Group StringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- policy
Name String - Filter policies by name.
getOrgGroupPolicies Result
The following output properties are available:
- Id string
- The ID of this resource.
- Org
Group stringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- Policies
List<Get
Org Group Policies Policy> - The list of policies.
- Policy
Name string - Filter policies by name.
- Id string
- The ID of this resource.
- Org
Group stringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- Policies
[]Get
Org Group Policies Policy - The list of policies.
- Policy
Name string - Filter policies by name.
- id string
- The ID of this resource.
- org_
group_ stringid - The UUID of the org group whose policies to list. Must be a valid UUID.
- policies list(object)
- The list of policies.
- policy_
name string - Filter policies by name.
- id String
- The ID of this resource.
- org
Group StringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- policies
List<Get
Org Group Policies Policy> - The list of policies.
- policy
Name String - Filter policies by name.
- id string
- The ID of this resource.
- org
Group stringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- policies
Get
Org Group Policies Policy[] - The list of policies.
- policy
Name string - Filter policies by name.
- id str
- The ID of this resource.
- org_
group_ strid - The UUID of the org group whose policies to list. Must be a valid UUID.
- policies
Sequence[Get
Org Group Policies Policy] - The list of policies.
- policy_
name str - Filter policies by name.
- id String
- The ID of this resource.
- org
Group StringId - The UUID of the org group whose policies to list. Must be a valid UUID.
- policies List<Property Map>
- The list of policies.
- policy
Name String - Filter policies by name.
Supporting Types
GetOrgGroupPoliciesPolicy
- Content string
- Enforcement
Tier string - Id string
- Org
Group stringId - Policy
Name string - Policy
Type string
- Content string
- Enforcement
Tier string - Id string
- Org
Group stringId - Policy
Name string - Policy
Type string
- content string
- enforcement_
tier string - id string
- org_
group_ stringid - policy_
name string - policy_
type string
- content String
- enforcement
Tier String - id String
- org
Group StringId - policy
Name String - policy
Type String
- content string
- enforcement
Tier string - id string
- org
Group stringId - policy
Name string - policy
Type string
- content str
- enforcement_
tier str - id str
- org_
group_ strid - policy_
name str - policy_
type str
- content String
- enforcement
Tier String - id String
- org
Group StringId - policy
Name String - policy
Type String
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.4.0
published on Tuesday, Jun 2, 2026 by Pulumi
published on Tuesday, Jun 2, 2026 by Pulumi