Returns a list of Roles present in the Organization scope.
Roles List Response body
[- {
- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_resource_view"
], - "allowed_scope_levels": [
- "account"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "scope": {
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
]
Creates a custom Role in the Organization scope.
Role Request body
Role Response body
{- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_view"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}
{- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_resource_view"
], - "allowed_scope_levels": [
- "account"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "scope": {
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
Retrieves a Role from Organization scope.
Role Response body
{- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_resource_view"
], - "allowed_scope_levels": [
- "account"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "scope": {
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
Updates a Role from Organization scope.
Role Request body
Role Response body
{- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_view"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}
}
{- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_resource_view"
], - "allowed_scope_levels": [
- "account"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "scope": {
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}
Deletes a custom Role from Organization scope.
Role Response body
{- "identifier": "example_role",
- "name": "Example_Role",
- "permissions": [
- "core_resource_view"
], - "allowed_scope_levels": [
- "account"
], - "description": "This is an Example Role",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "scope": {
- "account": "sample_account",
- "org": "sample_organization",
- "project": "sample_project"
}, - "created": 1234567890,
- "updated": 1234567890,
- "harness_managed": true
}