1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. OrgGroup
Viewing docs for Datadog v5.4.0
published on Tuesday, Jun 2, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.4.0
published on Tuesday, Jun 2, 2026 by Pulumi

    Provides a Datadog Org Group resource. This can be used to create and manage Datadog organization groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const example = new datadog.OrgGroup("example", {name: "Production Environments"});
    
    import pulumi
    import pulumi_datadog as datadog
    
    example = datadog.OrgGroup("example", name="Production Environments")
    
    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 {
    		_, err := datadog.NewOrgGroup(ctx, "example", &datadog.OrgGroupArgs{
    			Name: pulumi.String("Production Environments"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Datadog.OrgGroup("example", new()
        {
            Name = "Production Environments",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.OrgGroup;
    import com.pulumi.datadog.OrgGroupArgs;
    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) {
            var example = new OrgGroup("example", OrgGroupArgs.builder()
                .name("Production Environments")
                .build());
    
        }
    }
    
    resources:
      example:
        type: datadog:OrgGroup
        properties:
          name: Production Environments
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    resource "datadog_orggroup" "example" {
      name = "Production Environments"
    }
    

    Create OrgGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OrgGroup(name: string, args: OrgGroupArgs, opts?: CustomResourceOptions);
    @overload
    def OrgGroup(resource_name: str,
                 args: OrgGroupArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrgGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 name: Optional[str] = None)
    func NewOrgGroup(ctx *Context, name string, args OrgGroupArgs, opts ...ResourceOption) (*OrgGroup, error)
    public OrgGroup(string name, OrgGroupArgs args, CustomResourceOptions? opts = null)
    public OrgGroup(String name, OrgGroupArgs args)
    public OrgGroup(String name, OrgGroupArgs args, CustomResourceOptions options)
    
    type: datadog:OrgGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datadog_orggroup" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OrgGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OrgGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OrgGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrgGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrgGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var orgGroupResource = new Datadog.OrgGroup("orgGroupResource", new()
    {
        Name = "string",
    });
    
    example, err := datadog.NewOrgGroup(ctx, "orgGroupResource", &datadog.OrgGroupArgs{
    	Name: pulumi.String("string"),
    })
    
    resource "datadog_orggroup" "orgGroupResource" {
      name = "string"
    }
    
    var orgGroupResource = new OrgGroup("orgGroupResource", OrgGroupArgs.builder()
        .name("string")
        .build());
    
    org_group_resource = datadog.OrgGroup("orgGroupResource", name="string")
    
    const orgGroupResource = new datadog.OrgGroup("orgGroupResource", {name: "string"});
    
    type: datadog:OrgGroup
    properties:
        name: string
    

    OrgGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OrgGroup resource accepts the following input properties:

    Name string
    The name of the org group. String length must be at least 1.
    Name string
    The name of the org group. String length must be at least 1.
    name string
    The name of the org group. String length must be at least 1.
    name String
    The name of the org group. String length must be at least 1.
    name string
    The name of the org group. String length must be at least 1.
    name str
    The name of the org group. String length must be at least 1.
    name String
    The name of the org group. String length must be at least 1.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OrgGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerOrgSite string
    The site of the organization that owns this org group.
    OwnerOrgUuid string
    The UUID of the organization that owns this org group.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerOrgSite string
    The site of the organization that owns this org group.
    OwnerOrgUuid string
    The UUID of the organization that owns this org group.
    id string
    The provider-assigned unique ID for this managed resource.
    owner_org_site string
    The site of the organization that owns this org group.
    owner_org_uuid string
    The UUID of the organization that owns this org group.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerOrgSite String
    The site of the organization that owns this org group.
    ownerOrgUuid String
    The UUID of the organization that owns this org group.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerOrgSite string
    The site of the organization that owns this org group.
    ownerOrgUuid string
    The UUID of the organization that owns this org group.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_org_site str
    The site of the organization that owns this org group.
    owner_org_uuid str
    The UUID of the organization that owns this org group.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerOrgSite String
    The site of the organization that owns this org group.
    ownerOrgUuid String
    The UUID of the organization that owns this org group.

    Look up Existing OrgGroup Resource

    Get an existing OrgGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OrgGroupState, opts?: CustomResourceOptions): OrgGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            owner_org_site: Optional[str] = None,
            owner_org_uuid: Optional[str] = None) -> OrgGroup
    func GetOrgGroup(ctx *Context, name string, id IDInput, state *OrgGroupState, opts ...ResourceOption) (*OrgGroup, error)
    public static OrgGroup Get(string name, Input<string> id, OrgGroupState? state, CustomResourceOptions? opts = null)
    public static OrgGroup get(String name, Output<String> id, OrgGroupState state, CustomResourceOptions options)
    resources:  _:    type: datadog:OrgGroup    get:      id: ${id}
    import {
      to = datadog_orggroup.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Name string
    The name of the org group. String length must be at least 1.
    OwnerOrgSite string
    The site of the organization that owns this org group.
    OwnerOrgUuid string
    The UUID of the organization that owns this org group.
    Name string
    The name of the org group. String length must be at least 1.
    OwnerOrgSite string
    The site of the organization that owns this org group.
    OwnerOrgUuid string
    The UUID of the organization that owns this org group.
    name string
    The name of the org group. String length must be at least 1.
    owner_org_site string
    The site of the organization that owns this org group.
    owner_org_uuid string
    The UUID of the organization that owns this org group.
    name String
    The name of the org group. String length must be at least 1.
    ownerOrgSite String
    The site of the organization that owns this org group.
    ownerOrgUuid String
    The UUID of the organization that owns this org group.
    name string
    The name of the org group. String length must be at least 1.
    ownerOrgSite string
    The site of the organization that owns this org group.
    ownerOrgUuid string
    The UUID of the organization that owns this org group.
    name str
    The name of the org group. String length must be at least 1.
    owner_org_site str
    The site of the organization that owns this org group.
    owner_org_uuid str
    The UUID of the organization that owns this org group.
    name String
    The name of the org group. String length must be at least 1.
    ownerOrgSite String
    The site of the organization that owns this org group.
    ownerOrgUuid String
    The UUID of the organization that owns this org group.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:index/orgGroup:OrgGroup example <org_group_uuid>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.4.0
    published on Tuesday, Jun 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial