Returns a list of Resource Groups present in the Project scope.
Resource Groups List response body
[- {
- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "allowed_scope_levels": [
- "account"
], - "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false,
- "harness_managed": true,
- "created": 1234567890,
- "updated": 1234567890
}
]
Creates a custom Resource Group in the Project scope.
Resource Group request body
Resource Group response body
{- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false
}
{- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "allowed_scope_levels": [
- "account"
], - "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false,
- "harness_managed": true,
- "created": 1234567890,
- "updated": 1234567890
}
Retrieves a Resource Group from Project scope.
Resource Group response body
{- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "allowed_scope_levels": [
- "account"
], - "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false,
- "harness_managed": true,
- "created": 1234567890,
- "updated": 1234567890
}
Updates a Resource Group from Project scope.
Resource Group request body
Resource Group response body
{- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false
}
{- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "allowed_scope_levels": [
- "account"
], - "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false,
- "harness_managed": true,
- "created": 1234567890,
- "updated": 1234567890
}
Deletes a custom Resource Group from Project scope.
Resource Group response body
{- "identifier": "example_resource_group",
- "name": "Example Resource Group",
- "color": "#0063F7",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "description": "This is an Example Resource Group",
- "allowed_scope_levels": [
- "account"
], - "included_scope": [
- {
- "filter": "EXCLUDING_CHILD_SCOPES",
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}
], - "resource_filter": [
- {
- "resource_type": "resource",
- "identifiers": [
- "example_resource"
], - "attribute_name": "resource_attribute",
- "attribute_values": [
- "example_resource_attribute"
]
}
], - "include_all_resources": false,
- "harness_managed": true,
- "created": 1234567890,
- "updated": 1234567890
}