1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. ResourceGroup
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.11.8
published on Friday, Mar 27, 2026 by Pulumi

    A Resource Group defines the set of Harness resources that fall within an RBAC boundary (for example, all pipelines, selected connectors, or specific secrets), along with the scopes (account, organization, or project) where the group applies.

    When configuring a resource group, you typically control access using two dimensions:

    • Scopes – where the resource group applies (included_scopes)
    • Resources – what resources are included (resource_filter)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.ResourceGroup("example", {
        identifier: "identifier",
        name: "name",
        description: "test",
        tags: ["foo:bar"],
        accountId: "account_id",
        allowedScopeLevels: ["account"],
        includedScopes: [{
            filter: "EXCLUDING_CHILD_SCOPES",
            accountId: "account_id",
        }],
        resourceFilters: [{
            includeAllResources: false,
            resources: [{
                resourceType: "CONNECTOR",
                attributeFilters: [{
                    attributeName: "category",
                    attributeValues: ["CLOUD_COST"],
                }],
            }],
        }],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.ResourceGroup("example",
        identifier="identifier",
        name="name",
        description="test",
        tags=["foo:bar"],
        account_id="account_id",
        allowed_scope_levels=["account"],
        included_scopes=[{
            "filter": "EXCLUDING_CHILD_SCOPES",
            "account_id": "account_id",
        }],
        resource_filters=[{
            "include_all_resources": False,
            "resources": [{
                "resource_type": "CONNECTOR",
                "attribute_filters": [{
                    "attribute_name": "category",
                    "attribute_values": ["CLOUD_COST"],
                }],
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewResourceGroup(ctx, "example", &platform.ResourceGroupArgs{
    			Identifier:  pulumi.String("identifier"),
    			Name:        pulumi.String("name"),
    			Description: pulumi.String("test"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			AccountId: pulumi.String("account_id"),
    			AllowedScopeLevels: pulumi.StringArray{
    				pulumi.String("account"),
    			},
    			IncludedScopes: platform.ResourceGroupIncludedScopeArray{
    				&platform.ResourceGroupIncludedScopeArgs{
    					Filter:    pulumi.String("EXCLUDING_CHILD_SCOPES"),
    					AccountId: pulumi.String("account_id"),
    				},
    			},
    			ResourceFilters: platform.ResourceGroupResourceFilterArray{
    				&platform.ResourceGroupResourceFilterArgs{
    					IncludeAllResources: pulumi.Bool(false),
    					Resources: platform.ResourceGroupResourceFilterResourceArray{
    						&platform.ResourceGroupResourceFilterResourceArgs{
    							ResourceType: pulumi.String("CONNECTOR"),
    							AttributeFilters: platform.ResourceGroupResourceFilterResourceAttributeFilterArray{
    								&platform.ResourceGroupResourceFilterResourceAttributeFilterArgs{
    									AttributeName: pulumi.String("category"),
    									AttributeValues: pulumi.StringArray{
    										pulumi.String("CLOUD_COST"),
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.ResourceGroup("example", new()
        {
            Identifier = "identifier",
            Name = "name",
            Description = "test",
            Tags = new[]
            {
                "foo:bar",
            },
            AccountId = "account_id",
            AllowedScopeLevels = new[]
            {
                "account",
            },
            IncludedScopes = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupIncludedScopeArgs
                {
                    Filter = "EXCLUDING_CHILD_SCOPES",
                    AccountId = "account_id",
                },
            },
            ResourceFilters = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupResourceFilterArgs
                {
                    IncludeAllResources = false,
                    Resources = new[]
                    {
                        new Harness.Platform.Inputs.ResourceGroupResourceFilterResourceArgs
                        {
                            ResourceType = "CONNECTOR",
                            AttributeFilters = new[]
                            {
                                new Harness.Platform.Inputs.ResourceGroupResourceFilterResourceAttributeFilterArgs
                                {
                                    AttributeName = "category",
                                    AttributeValues = new[]
                                    {
                                        "CLOUD_COST",
                                    },
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ResourceGroup;
    import com.pulumi.harness.platform.ResourceGroupArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupIncludedScopeArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupResourceFilterArgs;
    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) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .identifier("identifier")
                .name("name")
                .description("test")
                .tags("foo:bar")
                .accountId("account_id")
                .allowedScopeLevels("account")
                .includedScopes(ResourceGroupIncludedScopeArgs.builder()
                    .filter("EXCLUDING_CHILD_SCOPES")
                    .accountId("account_id")
                    .build())
                .resourceFilters(ResourceGroupResourceFilterArgs.builder()
                    .includeAllResources(false)
                    .resources(ResourceGroupResourceFilterResourceArgs.builder()
                        .resourceType("CONNECTOR")
                        .attributeFilters(ResourceGroupResourceFilterResourceAttributeFilterArgs.builder()
                            .attributeName("category")
                            .attributeValues("CLOUD_COST")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:ResourceGroup
        properties:
          identifier: identifier
          name: name
          description: test
          tags:
            - foo:bar
          accountId: account_id
          allowedScopeLevels:
            - account
          includedScopes:
            - filter: EXCLUDING_CHILD_SCOPES
              accountId: account_id
          resourceFilters:
            - includeAllResources: false
              resources:
                - resourceType: CONNECTOR
                  attributeFilters:
                    - attributeName: category
                      attributeValues:
                        - CLOUD_COST
    

    Scopes: included_scopes

    The included_scopes block defines the scope boundaries covered by this resource group.

    You can define scope using:

    • account_id → Account-level scope
    • account_id + org_id → Organization-level scope
    • account_id + org_id + project_id → Project-level scope

    included_scopes.filter (Required)

    Controls whether child scopes are included automatically:

    • EXCLUDING_CHILD_SCOPES Includes only the explicitly specified scope. Example: Account only (does not automatically include its organizations or projects).

    • INCLUDING_CHILD_SCOPES Includes the specified scope and all nested child scopes. Example: Account plus all organizations and projects under it.


    Resources: resource_filter

    The resource_filter block determines which resources within the included scopes are part of the resource group.

    include_all_resources

    • true – Includes all resources within the defined scopes.
    • false – Includes only the resources explicitly defined under resources.

    resources

    Each resources block selects a set of resources using:

    • resource_type (required)

    • attribute_filter (optional rule-based filtering)

    • identifiers (optional explicit allowlist):

      1. You can only use identifiers when the resource group operates in static scope. This happens when:
        • included_scopes points to that same scope
        • filter = EXCLUDING_CHILD_SCOPES
      In this case, the set of resources is fixed, so you can select specific resources such as:
        * `"pipeline_a"`
        * `"connector_x"`
      
      1. You cannot use identifiers when the resource group is in dynamic scope. This happens when:
        • filter = INCLUDING_CHILD_SCOPES
        • included_scopes points to a child scope.
      In dynamic scope, the matching resources can change over time as child scopes are added or removed. Because of this, you can only select resources by `resource_type` (and optionally `attribute_filter`), not by specific identifiers.
      
      If you attempt to use `identifiers` in this case, you will receive:
        ```
        Cannot provide specific identifiers in resource filter for a dynamic scope
        ``` 
      

    Supported resource_type Values

    The following values are supported for resource_type:

    CategoryResource Types
    Core PlatformACCOUNT, ORGANIZATION, PROJECT, USER, USERGROUP, ROLE, RESOURCEGROUP, SERVICEACCOUNT, LICENSE, SETTING, AUTHSETTING, ACCESS_POLICIES, BANNER
    Pipelines & DeliveryPIPELINE, INPUT_SET, SERVICE, ENVIRONMENT, ENVIRONMENT_GROUP, DEPLOYMENTFREEZE, TEMPLATE, FILE, VARIABLE, ARTIFACT_REGISTRY, PROVIDER
    Connectors & InfrastructureCONNECTOR, DELEGATE, DELEGATECONFIGURATION, CERTIFICATE, CODE_REPOSITORY, NETWORK_MAP
    Secrets & SecuritySECRET, FEATUREFLAG, FF_PROXYAPIKEY, SSCA_REMEDIATION_TRACKER, SSCA_ENFORCEMENT_EXEMPTION, STO_TESTTARGET, STO_EXEMPTION, STO_ISSUE, STO_SCAN
    Governance & PolicyGOVERNANCEPOLICY, GOVERNANCEPOLICYSETS, AUDIT
    Monitoring & ReliabilityMONITOREDSERVICE, SLO, DOWNTIME, MONITORING_AGENT, METRIC_SOURCE, NOTIFICATION, NOTIFICATION_CHANNEL, NOTIFICATION_RULE
    GitOpsGITOPS_AGENT, GITOPS_APP, GITOPS_REPOSITORY, GITOPS_CLUSTER, GITOPS_GPGKEY, GITOPS_CERT
    Chaos EngineeringCHAOS_IMAGE_REGISTRY, CHAOS_HUB, CHAOS_INFRASTRUCTURE, CHAOS_EXPERIMENT, CHAOS_GAMEDAY, CHAOS_PROBE, CHAOS_SECURITY_GOVERNANCE
    Cloud Cost Management (CCM)CCM_OVERVIEW, CCM_PERSPECTIVE, CCM_DATA_SCOPE, CCM_FOLDER, CCM_BUDGET, CCM_COSTCATEGORY, CCM_AUTOSTOPPINGRULE, CCM_LOADBALANCER, CCM_CURRENCYPREFERENCE, CCM_CLOUD_ASSET_GOVERNANCE_RULE, CCM_CLOUD_ASSET_GOVERNANCE_RULE_SET, CCM_CLOUD_ASSET_GOVERNANCE_RULE_ENFORCEMENT, CCM_ANOMALIES, CCM_RECOMMENDATIONS, CCM_COMMITMENT_ORCHESTRATOR
    Internal Developer Portal (IDP)IDP_CATALOG, IDP_WORKFLOW, IDP_PLUGIN, IDP_SCORECARD, IDP_LAYOUT, IDP_CATALOG_ACCESS_POLICY, IDP_INTEGRATION, IDP_ADVANCED_CONFIGURATION
    Incident Response (IRO)IRO_MANAGER, IRO_ALERT, IRO_ALERT_RULE, IRO_INCIDENT, IRO_CONNECT_WORKSPACE, IRO_RUNBOOK
    Continuous Engineering Tools (CET)CET_AGENT, CET_TOKEN, CET_CRITICAL_EVENT
    Infrastructure as Code (IAC)IAC_WORKSPACE, IAC_REGISTRY, IAC_VARIABLE_SET
    Software Engineering Insights (SEI)SEI_CONFIGURATION_SETTINGS, SEI_COLLECTIONS, SEI_INSIGHTS, SEI_PANORAMA
    Feature Management & Experimentation (FME)FME_ENVIRONMENT, FME_TRAFFIC_TYPE, FME_FEATURE_FLAG, FME_SEGMENT, FME_LARGE_SEGMENT, FME_METRIC, FME_EXPERIMENT
    DatabasesDB_SCHEMA, DB_INSTANCE
    Targets & DeploymentTARGET, TARGETGROUP, TICKET, SMTP, STREAMING_DESTINATION
    Dashboards & ReportingDASHBOARDS

    Attribute Filtering (attribute_filter)

    Use attribute_filter to include resources dynamically based on defined rules instead of explicit identifiers.

    Valid attribute_name Values

    • category
    • type
    • labels
    • tag or tags

    attribute_values Constraints

    • For category, supported values include: ARTIFACTORY, CLOUD_COST, CLOUD_PROVIDER, CODE_REPO, MONITORING, SECRET_MANAGER, TICKETING

    • For type, supported values include: Production, PreProduction

    • For labels, use the format: label:value

    • For tag or tags, any string value is supported.


    Common Configuration Patterns

    Common Configuration Examples

    1. Add Specific Resources at the Current Scope (Static Scope)

    Use this when you want to allow only certain resources (for example, specific pipelines or connectors) in the same scope where the resource group is created.

    This works because the scope is static (EXCLUDING_CHILD_SCOPES).

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const staticExample = new harness.platform.ResourceGroup("static_example", {
        identifier: "static_rg",
        name: "Static Resource Group",
        accountId: "account_id",
        allowedScopeLevels: ["account"],
        includedScopes: [{
            filter: "EXCLUDING_CHILD_SCOPES",
            accountId: "account_id",
        }],
        resourceFilters: [{
            includeAllResources: false,
            resources: [{
                resourceType: "PIPELINE",
                identifiers: [
                    "pipeline_a",
                    "pipeline_b",
                ],
            }],
        }],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    static_example = harness.platform.ResourceGroup("static_example",
        identifier="static_rg",
        name="Static Resource Group",
        account_id="account_id",
        allowed_scope_levels=["account"],
        included_scopes=[{
            "filter": "EXCLUDING_CHILD_SCOPES",
            "account_id": "account_id",
        }],
        resource_filters=[{
            "include_all_resources": False,
            "resources": [{
                "resource_type": "PIPELINE",
                "identifiers": [
                    "pipeline_a",
                    "pipeline_b",
                ],
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewResourceGroup(ctx, "static_example", &platform.ResourceGroupArgs{
    			Identifier: pulumi.String("static_rg"),
    			Name:       pulumi.String("Static Resource Group"),
    			AccountId:  pulumi.String("account_id"),
    			AllowedScopeLevels: pulumi.StringArray{
    				pulumi.String("account"),
    			},
    			IncludedScopes: platform.ResourceGroupIncludedScopeArray{
    				&platform.ResourceGroupIncludedScopeArgs{
    					Filter:    pulumi.String("EXCLUDING_CHILD_SCOPES"),
    					AccountId: pulumi.String("account_id"),
    				},
    			},
    			ResourceFilters: platform.ResourceGroupResourceFilterArray{
    				&platform.ResourceGroupResourceFilterArgs{
    					IncludeAllResources: pulumi.Bool(false),
    					Resources: platform.ResourceGroupResourceFilterResourceArray{
    						&platform.ResourceGroupResourceFilterResourceArgs{
    							ResourceType: pulumi.String("PIPELINE"),
    							Identifiers: pulumi.StringArray{
    								pulumi.String("pipeline_a"),
    								pulumi.String("pipeline_b"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var staticExample = new Harness.Platform.ResourceGroup("static_example", new()
        {
            Identifier = "static_rg",
            Name = "Static Resource Group",
            AccountId = "account_id",
            AllowedScopeLevels = new[]
            {
                "account",
            },
            IncludedScopes = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupIncludedScopeArgs
                {
                    Filter = "EXCLUDING_CHILD_SCOPES",
                    AccountId = "account_id",
                },
            },
            ResourceFilters = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupResourceFilterArgs
                {
                    IncludeAllResources = false,
                    Resources = new[]
                    {
                        new Harness.Platform.Inputs.ResourceGroupResourceFilterResourceArgs
                        {
                            ResourceType = "PIPELINE",
                            Identifiers = new[]
                            {
                                "pipeline_a",
                                "pipeline_b",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ResourceGroup;
    import com.pulumi.harness.platform.ResourceGroupArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupIncludedScopeArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupResourceFilterArgs;
    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) {
            var staticExample = new ResourceGroup("staticExample", ResourceGroupArgs.builder()
                .identifier("static_rg")
                .name("Static Resource Group")
                .accountId("account_id")
                .allowedScopeLevels("account")
                .includedScopes(ResourceGroupIncludedScopeArgs.builder()
                    .filter("EXCLUDING_CHILD_SCOPES")
                    .accountId("account_id")
                    .build())
                .resourceFilters(ResourceGroupResourceFilterArgs.builder()
                    .includeAllResources(false)
                    .resources(ResourceGroupResourceFilterResourceArgs.builder()
                        .resourceType("PIPELINE")
                        .identifiers(                    
                            "pipeline_a",
                            "pipeline_b")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      staticExample:
        type: harness:platform:ResourceGroup
        name: static_example
        properties:
          identifier: static_rg
          name: Static Resource Group
          accountId: account_id
          allowedScopeLevels:
            - account
          includedScopes:
            - filter: EXCLUDING_CHILD_SCOPES
              accountId: account_id
          resourceFilters:
            - includeAllResources: false
              resources:
                - resourceType: PIPELINE
                  identifiers:
                    - pipeline_a
                    - pipeline_b
    
    1. Add All Resources at the Current Scope

    This includes all resources within the defined included_scopes. If you want to include everything at a specific scope:

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const allResourcesAccount = new harness.platform.ResourceGroup("all_resources_account", {
        identifier: "all_resources_account",
        name: "All Resources - Account Level",
        description: "Includes all resources at the account scope",
        accountId: "account_id",
        allowedScopeLevels: ["account"],
        includedScopes: [{
            filter: "EXCLUDING_CHILD_SCOPES",
            accountId: "account_id",
        }],
        resourceFilters: [{
            includeAllResources: true,
        }],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    all_resources_account = harness.platform.ResourceGroup("all_resources_account",
        identifier="all_resources_account",
        name="All Resources - Account Level",
        description="Includes all resources at the account scope",
        account_id="account_id",
        allowed_scope_levels=["account"],
        included_scopes=[{
            "filter": "EXCLUDING_CHILD_SCOPES",
            "account_id": "account_id",
        }],
        resource_filters=[{
            "include_all_resources": True,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewResourceGroup(ctx, "all_resources_account", &platform.ResourceGroupArgs{
    			Identifier:  pulumi.String("all_resources_account"),
    			Name:        pulumi.String("All Resources - Account Level"),
    			Description: pulumi.String("Includes all resources at the account scope"),
    			AccountId:   pulumi.String("account_id"),
    			AllowedScopeLevels: pulumi.StringArray{
    				pulumi.String("account"),
    			},
    			IncludedScopes: platform.ResourceGroupIncludedScopeArray{
    				&platform.ResourceGroupIncludedScopeArgs{
    					Filter:    pulumi.String("EXCLUDING_CHILD_SCOPES"),
    					AccountId: pulumi.String("account_id"),
    				},
    			},
    			ResourceFilters: platform.ResourceGroupResourceFilterArray{
    				&platform.ResourceGroupResourceFilterArgs{
    					IncludeAllResources: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var allResourcesAccount = new Harness.Platform.ResourceGroup("all_resources_account", new()
        {
            Identifier = "all_resources_account",
            Name = "All Resources - Account Level",
            Description = "Includes all resources at the account scope",
            AccountId = "account_id",
            AllowedScopeLevels = new[]
            {
                "account",
            },
            IncludedScopes = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupIncludedScopeArgs
                {
                    Filter = "EXCLUDING_CHILD_SCOPES",
                    AccountId = "account_id",
                },
            },
            ResourceFilters = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupResourceFilterArgs
                {
                    IncludeAllResources = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ResourceGroup;
    import com.pulumi.harness.platform.ResourceGroupArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupIncludedScopeArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupResourceFilterArgs;
    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) {
            var allResourcesAccount = new ResourceGroup("allResourcesAccount", ResourceGroupArgs.builder()
                .identifier("all_resources_account")
                .name("All Resources - Account Level")
                .description("Includes all resources at the account scope")
                .accountId("account_id")
                .allowedScopeLevels("account")
                .includedScopes(ResourceGroupIncludedScopeArgs.builder()
                    .filter("EXCLUDING_CHILD_SCOPES")
                    .accountId("account_id")
                    .build())
                .resourceFilters(ResourceGroupResourceFilterArgs.builder()
                    .includeAllResources(true)
                    .build())
                .build());
    
        }
    }
    
    resources:
      allResourcesAccount:
        type: harness:platform:ResourceGroup
        name: all_resources_account
        properties:
          identifier: all_resources_account
          name: All Resources - Account Level
          description: Includes all resources at the account scope
          accountId: account_id
          allowedScopeLevels:
            - account
          includedScopes:
            - filter: EXCLUDING_CHILD_SCOPES
              accountId: account_id
          resourceFilters:
            - includeAllResources: true
    
    1. Add All Resources Across Child Scopes (Dynamic Scope)

    Use this when you want all resources across an account and its child orgs/projects.

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const dynamicExample = new harness.platform.ResourceGroup("dynamic_example", {
        identifier: "dynamic_rg",
        name: "Dynamic Resource Group",
        accountId: "account_id",
        allowedScopeLevels: ["account"],
        includedScopes: [{
            filter: "INCLUDING_CHILD_SCOPES",
            accountId: "account_id",
        }],
        resourceFilters: [{
            includeAllResources: false,
            resources: [{
                resourceType: "PIPELINE",
            }],
        }],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    dynamic_example = harness.platform.ResourceGroup("dynamic_example",
        identifier="dynamic_rg",
        name="Dynamic Resource Group",
        account_id="account_id",
        allowed_scope_levels=["account"],
        included_scopes=[{
            "filter": "INCLUDING_CHILD_SCOPES",
            "account_id": "account_id",
        }],
        resource_filters=[{
            "include_all_resources": False,
            "resources": [{
                "resource_type": "PIPELINE",
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewResourceGroup(ctx, "dynamic_example", &platform.ResourceGroupArgs{
    			Identifier: pulumi.String("dynamic_rg"),
    			Name:       pulumi.String("Dynamic Resource Group"),
    			AccountId:  pulumi.String("account_id"),
    			AllowedScopeLevels: pulumi.StringArray{
    				pulumi.String("account"),
    			},
    			IncludedScopes: platform.ResourceGroupIncludedScopeArray{
    				&platform.ResourceGroupIncludedScopeArgs{
    					Filter:    pulumi.String("INCLUDING_CHILD_SCOPES"),
    					AccountId: pulumi.String("account_id"),
    				},
    			},
    			ResourceFilters: platform.ResourceGroupResourceFilterArray{
    				&platform.ResourceGroupResourceFilterArgs{
    					IncludeAllResources: pulumi.Bool(false),
    					Resources: platform.ResourceGroupResourceFilterResourceArray{
    						&platform.ResourceGroupResourceFilterResourceArgs{
    							ResourceType: pulumi.String("PIPELINE"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var dynamicExample = new Harness.Platform.ResourceGroup("dynamic_example", new()
        {
            Identifier = "dynamic_rg",
            Name = "Dynamic Resource Group",
            AccountId = "account_id",
            AllowedScopeLevels = new[]
            {
                "account",
            },
            IncludedScopes = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupIncludedScopeArgs
                {
                    Filter = "INCLUDING_CHILD_SCOPES",
                    AccountId = "account_id",
                },
            },
            ResourceFilters = new[]
            {
                new Harness.Platform.Inputs.ResourceGroupResourceFilterArgs
                {
                    IncludeAllResources = false,
                    Resources = new[]
                    {
                        new Harness.Platform.Inputs.ResourceGroupResourceFilterResourceArgs
                        {
                            ResourceType = "PIPELINE",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.ResourceGroup;
    import com.pulumi.harness.platform.ResourceGroupArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupIncludedScopeArgs;
    import com.pulumi.harness.platform.inputs.ResourceGroupResourceFilterArgs;
    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) {
            var dynamicExample = new ResourceGroup("dynamicExample", ResourceGroupArgs.builder()
                .identifier("dynamic_rg")
                .name("Dynamic Resource Group")
                .accountId("account_id")
                .allowedScopeLevels("account")
                .includedScopes(ResourceGroupIncludedScopeArgs.builder()
                    .filter("INCLUDING_CHILD_SCOPES")
                    .accountId("account_id")
                    .build())
                .resourceFilters(ResourceGroupResourceFilterArgs.builder()
                    .includeAllResources(false)
                    .resources(ResourceGroupResourceFilterResourceArgs.builder()
                        .resourceType("PIPELINE")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      dynamicExample:
        type: harness:platform:ResourceGroup
        name: dynamic_example
        properties:
          identifier: dynamic_rg
          name: Dynamic Resource Group
          accountId: account_id
          allowedScopeLevels:
            - account
          includedScopes:
            - filter: INCLUDING_CHILD_SCOPES
              accountId: account_id
          resourceFilters:
            - includeAllResources: false
              resources:
                - resourceType: PIPELINE
    

    Create ResourceGroup Resource

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

    Constructor syntax

    new ResourceGroup(name: string, args: ResourceGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceGroup(resource_name: str,
                      args: ResourceGroupArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourceGroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      account_id: Optional[str] = None,
                      identifier: Optional[str] = None,
                      allowed_scope_levels: Optional[Sequence[str]] = None,
                      color: Optional[str] = None,
                      description: Optional[str] = None,
                      included_scopes: Optional[Sequence[ResourceGroupIncludedScopeArgs]] = None,
                      name: Optional[str] = None,
                      org_id: Optional[str] = None,
                      project_id: Optional[str] = None,
                      resource_filters: Optional[Sequence[ResourceGroupResourceFilterArgs]] = None,
                      tags: Optional[Sequence[str]] = None)
    func NewResourceGroup(ctx *Context, name string, args ResourceGroupArgs, opts ...ResourceOption) (*ResourceGroup, error)
    public ResourceGroup(string name, ResourceGroupArgs args, CustomResourceOptions? opts = null)
    public ResourceGroup(String name, ResourceGroupArgs args)
    public ResourceGroup(String name, ResourceGroupArgs args, CustomResourceOptions options)
    
    type: harness:platform:ResourceGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ResourceGroupArgs
    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 ResourceGroupArgs
    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 ResourceGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourceGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourceGroupArgs
    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 resourceGroupResource = new Harness.Platform.ResourceGroup("resourceGroupResource", new()
    {
        AccountId = "string",
        Identifier = "string",
        AllowedScopeLevels = new[]
        {
            "string",
        },
        Color = "string",
        Description = "string",
        IncludedScopes = new[]
        {
            new Harness.Platform.Inputs.ResourceGroupIncludedScopeArgs
            {
                Filter = "string",
                AccountId = "string",
                OrgId = "string",
                ProjectId = "string",
            },
        },
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        ResourceFilters = new[]
        {
            new Harness.Platform.Inputs.ResourceGroupResourceFilterArgs
            {
                IncludeAllResources = false,
                Resources = new[]
                {
                    new Harness.Platform.Inputs.ResourceGroupResourceFilterResourceArgs
                    {
                        ResourceType = "string",
                        AttributeFilters = new[]
                        {
                            new Harness.Platform.Inputs.ResourceGroupResourceFilterResourceAttributeFilterArgs
                            {
                                AttributeName = "string",
                                AttributeValues = new[]
                                {
                                    "string",
                                },
                            },
                        },
                        Identifiers = new[]
                        {
                            "string",
                        },
                    },
                },
            },
        },
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := platform.NewResourceGroup(ctx, "resourceGroupResource", &platform.ResourceGroupArgs{
    	AccountId:  pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	AllowedScopeLevels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Color:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	IncludedScopes: platform.ResourceGroupIncludedScopeArray{
    		&platform.ResourceGroupIncludedScopeArgs{
    			Filter:    pulumi.String("string"),
    			AccountId: pulumi.String("string"),
    			OrgId:     pulumi.String("string"),
    			ProjectId: pulumi.String("string"),
    		},
    	},
    	Name:      pulumi.String("string"),
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	ResourceFilters: platform.ResourceGroupResourceFilterArray{
    		&platform.ResourceGroupResourceFilterArgs{
    			IncludeAllResources: pulumi.Bool(false),
    			Resources: platform.ResourceGroupResourceFilterResourceArray{
    				&platform.ResourceGroupResourceFilterResourceArgs{
    					ResourceType: pulumi.String("string"),
    					AttributeFilters: platform.ResourceGroupResourceFilterResourceAttributeFilterArray{
    						&platform.ResourceGroupResourceFilterResourceAttributeFilterArgs{
    							AttributeName: pulumi.String("string"),
    							AttributeValues: pulumi.StringArray{
    								pulumi.String("string"),
    							},
    						},
    					},
    					Identifiers: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var resourceGroupResource = new ResourceGroup("resourceGroupResource", ResourceGroupArgs.builder()
        .accountId("string")
        .identifier("string")
        .allowedScopeLevels("string")
        .color("string")
        .description("string")
        .includedScopes(ResourceGroupIncludedScopeArgs.builder()
            .filter("string")
            .accountId("string")
            .orgId("string")
            .projectId("string")
            .build())
        .name("string")
        .orgId("string")
        .projectId("string")
        .resourceFilters(ResourceGroupResourceFilterArgs.builder()
            .includeAllResources(false)
            .resources(ResourceGroupResourceFilterResourceArgs.builder()
                .resourceType("string")
                .attributeFilters(ResourceGroupResourceFilterResourceAttributeFilterArgs.builder()
                    .attributeName("string")
                    .attributeValues("string")
                    .build())
                .identifiers("string")
                .build())
            .build())
        .tags("string")
        .build());
    
    resource_group_resource = harness.platform.ResourceGroup("resourceGroupResource",
        account_id="string",
        identifier="string",
        allowed_scope_levels=["string"],
        color="string",
        description="string",
        included_scopes=[{
            "filter": "string",
            "account_id": "string",
            "org_id": "string",
            "project_id": "string",
        }],
        name="string",
        org_id="string",
        project_id="string",
        resource_filters=[{
            "include_all_resources": False,
            "resources": [{
                "resource_type": "string",
                "attribute_filters": [{
                    "attribute_name": "string",
                    "attribute_values": ["string"],
                }],
                "identifiers": ["string"],
            }],
        }],
        tags=["string"])
    
    const resourceGroupResource = new harness.platform.ResourceGroup("resourceGroupResource", {
        accountId: "string",
        identifier: "string",
        allowedScopeLevels: ["string"],
        color: "string",
        description: "string",
        includedScopes: [{
            filter: "string",
            accountId: "string",
            orgId: "string",
            projectId: "string",
        }],
        name: "string",
        orgId: "string",
        projectId: "string",
        resourceFilters: [{
            includeAllResources: false,
            resources: [{
                resourceType: "string",
                attributeFilters: [{
                    attributeName: "string",
                    attributeValues: ["string"],
                }],
                identifiers: ["string"],
            }],
        }],
        tags: ["string"],
    });
    
    type: harness:platform:ResourceGroup
    properties:
        accountId: string
        allowedScopeLevels:
            - string
        color: string
        description: string
        identifier: string
        includedScopes:
            - accountId: string
              filter: string
              orgId: string
              projectId: string
        name: string
        orgId: string
        projectId: string
        resourceFilters:
            - includeAllResources: false
              resources:
                - attributeFilters:
                    - attributeName: string
                      attributeValues:
                        - string
                  identifiers:
                    - string
                  resourceType: string
        tags:
            - string
    

    ResourceGroup 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 ResourceGroup resource accepts the following input properties:

    AccountId string
    Account Identifier of the account
    Identifier string
    Unique identifier of the resource.
    AllowedScopeLevels List<string>
    The scope levels at which this resource group can be used
    Color string
    Color of the environment.
    Description string
    Description of the resource.
    IncludedScopes List<ResourceGroupIncludedScope>
    Included scopes; default selected based on resource group scope if not specified.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ResourceFilters List<ResourceGroupResourceFilter>
    Contains resource filter for a resource group
    Tags List<string>
    Tags to associate with the resource.
    AccountId string
    Account Identifier of the account
    Identifier string
    Unique identifier of the resource.
    AllowedScopeLevels []string
    The scope levels at which this resource group can be used
    Color string
    Color of the environment.
    Description string
    Description of the resource.
    IncludedScopes []ResourceGroupIncludedScopeArgs
    Included scopes; default selected based on resource group scope if not specified.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ResourceFilters []ResourceGroupResourceFilterArgs
    Contains resource filter for a resource group
    Tags []string
    Tags to associate with the resource.
    accountId String
    Account Identifier of the account
    identifier String
    Unique identifier of the resource.
    allowedScopeLevels List<String>
    The scope levels at which this resource group can be used
    color String
    Color of the environment.
    description String
    Description of the resource.
    includedScopes List<ResourceGroupIncludedScope>
    Included scopes; default selected based on resource group scope if not specified.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    resourceFilters List<ResourceGroupResourceFilter>
    Contains resource filter for a resource group
    tags List<String>
    Tags to associate with the resource.
    accountId string
    Account Identifier of the account
    identifier string
    Unique identifier of the resource.
    allowedScopeLevels string[]
    The scope levels at which this resource group can be used
    color string
    Color of the environment.
    description string
    Description of the resource.
    includedScopes ResourceGroupIncludedScope[]
    Included scopes; default selected based on resource group scope if not specified.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    resourceFilters ResourceGroupResourceFilter[]
    Contains resource filter for a resource group
    tags string[]
    Tags to associate with the resource.
    account_id str
    Account Identifier of the account
    identifier str
    Unique identifier of the resource.
    allowed_scope_levels Sequence[str]
    The scope levels at which this resource group can be used
    color str
    Color of the environment.
    description str
    Description of the resource.
    included_scopes Sequence[ResourceGroupIncludedScopeArgs]
    Included scopes; default selected based on resource group scope if not specified.
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    resource_filters Sequence[ResourceGroupResourceFilterArgs]
    Contains resource filter for a resource group
    tags Sequence[str]
    Tags to associate with the resource.
    accountId String
    Account Identifier of the account
    identifier String
    Unique identifier of the resource.
    allowedScopeLevels List<String>
    The scope levels at which this resource group can be used
    color String
    Color of the environment.
    description String
    Description of the resource.
    includedScopes List<Property Map>
    Included scopes; default selected based on resource group scope if not specified.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    resourceFilters List<Property Map>
    Contains resource filter for a resource group
    tags List<String>
    Tags to associate with the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ResourceGroup Resource

    Get an existing ResourceGroup 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?: ResourceGroupState, opts?: CustomResourceOptions): ResourceGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            allowed_scope_levels: Optional[Sequence[str]] = None,
            color: Optional[str] = None,
            description: Optional[str] = None,
            identifier: Optional[str] = None,
            included_scopes: Optional[Sequence[ResourceGroupIncludedScopeArgs]] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            resource_filters: Optional[Sequence[ResourceGroupResourceFilterArgs]] = None,
            tags: Optional[Sequence[str]] = None) -> ResourceGroup
    func GetResourceGroup(ctx *Context, name string, id IDInput, state *ResourceGroupState, opts ...ResourceOption) (*ResourceGroup, error)
    public static ResourceGroup Get(string name, Input<string> id, ResourceGroupState? state, CustomResourceOptions? opts = null)
    public static ResourceGroup get(String name, Output<String> id, ResourceGroupState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:ResourceGroup    get:      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:
    AccountId string
    Account Identifier of the account
    AllowedScopeLevels List<string>
    The scope levels at which this resource group can be used
    Color string
    Color of the environment.
    Description string
    Description of the resource.
    Identifier string
    Unique identifier of the resource.
    IncludedScopes List<ResourceGroupIncludedScope>
    Included scopes; default selected based on resource group scope if not specified.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ResourceFilters List<ResourceGroupResourceFilter>
    Contains resource filter for a resource group
    Tags List<string>
    Tags to associate with the resource.
    AccountId string
    Account Identifier of the account
    AllowedScopeLevels []string
    The scope levels at which this resource group can be used
    Color string
    Color of the environment.
    Description string
    Description of the resource.
    Identifier string
    Unique identifier of the resource.
    IncludedScopes []ResourceGroupIncludedScopeArgs
    Included scopes; default selected based on resource group scope if not specified.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ResourceFilters []ResourceGroupResourceFilterArgs
    Contains resource filter for a resource group
    Tags []string
    Tags to associate with the resource.
    accountId String
    Account Identifier of the account
    allowedScopeLevels List<String>
    The scope levels at which this resource group can be used
    color String
    Color of the environment.
    description String
    Description of the resource.
    identifier String
    Unique identifier of the resource.
    includedScopes List<ResourceGroupIncludedScope>
    Included scopes; default selected based on resource group scope if not specified.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    resourceFilters List<ResourceGroupResourceFilter>
    Contains resource filter for a resource group
    tags List<String>
    Tags to associate with the resource.
    accountId string
    Account Identifier of the account
    allowedScopeLevels string[]
    The scope levels at which this resource group can be used
    color string
    Color of the environment.
    description string
    Description of the resource.
    identifier string
    Unique identifier of the resource.
    includedScopes ResourceGroupIncludedScope[]
    Included scopes; default selected based on resource group scope if not specified.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    resourceFilters ResourceGroupResourceFilter[]
    Contains resource filter for a resource group
    tags string[]
    Tags to associate with the resource.
    account_id str
    Account Identifier of the account
    allowed_scope_levels Sequence[str]
    The scope levels at which this resource group can be used
    color str
    Color of the environment.
    description str
    Description of the resource.
    identifier str
    Unique identifier of the resource.
    included_scopes Sequence[ResourceGroupIncludedScopeArgs]
    Included scopes; default selected based on resource group scope if not specified.
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    resource_filters Sequence[ResourceGroupResourceFilterArgs]
    Contains resource filter for a resource group
    tags Sequence[str]
    Tags to associate with the resource.
    accountId String
    Account Identifier of the account
    allowedScopeLevels List<String>
    The scope levels at which this resource group can be used
    color String
    Color of the environment.
    description String
    Description of the resource.
    identifier String
    Unique identifier of the resource.
    includedScopes List<Property Map>
    Included scopes; default selected based on resource group scope if not specified.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    resourceFilters List<Property Map>
    Contains resource filter for a resource group
    tags List<String>
    Tags to associate with the resource.

    Supporting Types

    ResourceGroupIncludedScope, ResourceGroupIncludedScopeArgs

    Filter string
    Can be one of these 2 EXCLUDING_CHILD_SCOPES or INCLUDING_CHILD_SCOPES
    AccountId string
    Account Identifier of the account
    OrgId string
    Organization Identifier
    ProjectId string
    Project Identifier
    Filter string
    Can be one of these 2 EXCLUDING_CHILD_SCOPES or INCLUDING_CHILD_SCOPES
    AccountId string
    Account Identifier of the account
    OrgId string
    Organization Identifier
    ProjectId string
    Project Identifier
    filter String
    Can be one of these 2 EXCLUDING_CHILD_SCOPES or INCLUDING_CHILD_SCOPES
    accountId String
    Account Identifier of the account
    orgId String
    Organization Identifier
    projectId String
    Project Identifier
    filter string
    Can be one of these 2 EXCLUDING_CHILD_SCOPES or INCLUDING_CHILD_SCOPES
    accountId string
    Account Identifier of the account
    orgId string
    Organization Identifier
    projectId string
    Project Identifier
    filter str
    Can be one of these 2 EXCLUDING_CHILD_SCOPES or INCLUDING_CHILD_SCOPES
    account_id str
    Account Identifier of the account
    org_id str
    Organization Identifier
    project_id str
    Project Identifier
    filter String
    Can be one of these 2 EXCLUDING_CHILD_SCOPES or INCLUDING_CHILD_SCOPES
    accountId String
    Account Identifier of the account
    orgId String
    Organization Identifier
    projectId String
    Project Identifier

    ResourceGroupResourceFilter, ResourceGroupResourceFilterArgs

    IncludeAllResources bool
    Include all resource or not
    Resources List<ResourceGroupResourceFilterResource>
    Resources for a resource group
    IncludeAllResources bool
    Include all resource or not
    Resources []ResourceGroupResourceFilterResource
    Resources for a resource group
    includeAllResources Boolean
    Include all resource or not
    resources List<ResourceGroupResourceFilterResource>
    Resources for a resource group
    includeAllResources boolean
    Include all resource or not
    resources ResourceGroupResourceFilterResource[]
    Resources for a resource group
    include_all_resources bool
    Include all resource or not
    resources Sequence[ResourceGroupResourceFilterResource]
    Resources for a resource group
    includeAllResources Boolean
    Include all resource or not
    resources List<Property Map>
    Resources for a resource group

    ResourceGroupResourceFilterResource, ResourceGroupResourceFilterResourceArgs

    ResourceType string
    Type of the resource
    AttributeFilters List<ResourceGroupResourceFilterResourceAttributeFilter>
    Used to filter resources on their attributes
    Identifiers List<string>
    List of the identifiers
    ResourceType string
    Type of the resource
    AttributeFilters []ResourceGroupResourceFilterResourceAttributeFilter
    Used to filter resources on their attributes
    Identifiers []string
    List of the identifiers
    resourceType String
    Type of the resource
    attributeFilters List<ResourceGroupResourceFilterResourceAttributeFilter>
    Used to filter resources on their attributes
    identifiers List<String>
    List of the identifiers
    resourceType string
    Type of the resource
    attributeFilters ResourceGroupResourceFilterResourceAttributeFilter[]
    Used to filter resources on their attributes
    identifiers string[]
    List of the identifiers
    resource_type str
    Type of the resource
    attribute_filters Sequence[ResourceGroupResourceFilterResourceAttributeFilter]
    Used to filter resources on their attributes
    identifiers Sequence[str]
    List of the identifiers
    resourceType String
    Type of the resource
    attributeFilters List<Property Map>
    Used to filter resources on their attributes
    identifiers List<String>
    List of the identifiers

    ResourceGroupResourceFilterResourceAttributeFilter, ResourceGroupResourceFilterResourceAttributeFilterArgs

    AttributeName string
    Name of the attribute. Valid values are category, type, labels, tag or tags.
    AttributeValues List<string>
    Value of the attributes.Valid values for category are [ARTIFACTORY,CLOUD_COST,CLOUD_PROVIDER,CODE_REPO,MONITORING,SECRET_MANAGER,TICKETING], for type are [Production,PreProduction], for labels, it can be using the syntax 'label:value', for tag or tags it can be any string.
    AttributeName string
    Name of the attribute. Valid values are category, type, labels, tag or tags.
    AttributeValues []string
    Value of the attributes.Valid values for category are [ARTIFACTORY,CLOUD_COST,CLOUD_PROVIDER,CODE_REPO,MONITORING,SECRET_MANAGER,TICKETING], for type are [Production,PreProduction], for labels, it can be using the syntax 'label:value', for tag or tags it can be any string.
    attributeName String
    Name of the attribute. Valid values are category, type, labels, tag or tags.
    attributeValues List<String>
    Value of the attributes.Valid values for category are [ARTIFACTORY,CLOUD_COST,CLOUD_PROVIDER,CODE_REPO,MONITORING,SECRET_MANAGER,TICKETING], for type are [Production,PreProduction], for labels, it can be using the syntax 'label:value', for tag or tags it can be any string.
    attributeName string
    Name of the attribute. Valid values are category, type, labels, tag or tags.
    attributeValues string[]
    Value of the attributes.Valid values for category are [ARTIFACTORY,CLOUD_COST,CLOUD_PROVIDER,CODE_REPO,MONITORING,SECRET_MANAGER,TICKETING], for type are [Production,PreProduction], for labels, it can be using the syntax 'label:value', for tag or tags it can be any string.
    attribute_name str
    Name of the attribute. Valid values are category, type, labels, tag or tags.
    attribute_values Sequence[str]
    Value of the attributes.Valid values for category are [ARTIFACTORY,CLOUD_COST,CLOUD_PROVIDER,CODE_REPO,MONITORING,SECRET_MANAGER,TICKETING], for type are [Production,PreProduction], for labels, it can be using the syntax 'label:value', for tag or tags it can be any string.
    attributeName String
    Name of the attribute. Valid values are category, type, labels, tag or tags.
    attributeValues List<String>
    Value of the attributes.Valid values for category are [ARTIFACTORY,CLOUD_COST,CLOUD_PROVIDER,CODE_REPO,MONITORING,SECRET_MANAGER,TICKETING], for type are [Production,PreProduction], for labels, it can be using the syntax 'label:value', for tag or tags it can be any string.

    Import

    The pulumi import command can be used, for example:

    Import account level resource group

    $ pulumi import harness:platform/resourceGroup:ResourceGroup example <resource_group_id>
    

    Import org level resource group

    $ pulumi import harness:platform/resourceGroup:ResourceGroup example <ord_id>/<resource_group_id>
    

    Import project level resource group

    $ pulumi import harness:platform/resourceGroup:ResourceGroup example <org_id>/<project_id>/<resource_group_id>
    

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

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.11.8
    published on Friday, Mar 27, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.