Domains API Reference Guide
Private preview: This feature is in preview and available to select accounts. Reach out to your Immuta representative for details.
The collections object represents a domain you've created that contains data sources and assigned permissions. Currently, the only collection type available is a domain, so collections and domains are referred to interchangeably throughout this page.
Domain object attributes
Attribute | Description |
---|---|
id | The unique identifier of the domain. |
name | The name of the domain. |
description | The description of the domain that will be displayed for users. |
createdBy | The unique identifier of the user who created the domain. |
profile.name | The name of the user who created the domain. |
createdAt | The date and time the domain was created. |
updatedAt | The date and time the domain was updated. |
type | The type of collection. Value is |
Endpoints and methods
Method | Endpoint | Description |
---|---|---|
POST | Creates a new domain | |
GET | Retrieves all domains | |
GET | Retrieves a specific domain | |
GET | Retrieves a specific domain by name | |
PUT | Updates a domain name or description | |
DELETE | Deletes a domain | |
POST | Adds data sources to a domain | |
GET | Retrieves the data sources in the domain | |
DELETE | Deletes a data source from a domain | |
POST | Assigns a domain permission to a user | |
GET | Retrieves user permissions assigned in the domain | |
DELETE | Removes a domain permission from a user |
POST
/collection
POST
/collection
Create a new domain. You must have the global GOVERNANCE
permission to create a domain. You can add data sources to the domain after creating the domain.
Body parameters
Parameter | Description | Required or Optional | Default values | Accepted values |
---|---|---|---|---|
id | The unique identifier of the domain. | Required | - | - |
name | The name of the domain. | Required | - | - |
description | The description of the domain that will be displayed for users. | Optional | - | - |
type | The type of collection. | Required |
|
|
Response
Returns a domains object.
GET
/collection
GET
/collection
Retrieve domains created in Immuta. These results can be filtered by permission or by name.
Query parameters
The following table describes optional query parameters for retrieving domains.
Parameter | Description | Accepted values |
---|---|---|
type | The type of collection. |
|
offset | The number of items from the beginning of the response to exclude. You can combine the | Minimum value is |
size | The number of domains to return. | Minimum value is |
searchText | The text to search for in domain names. This will return domains with a name that contains this search text. | - |
withPermissions | Only returns domains that the querying user has been granted the permission in. |
|
Response
Returns a data property that contains an array of up to size
domain objects. If no domains exist, the array will be empty.
GET
/collection/{collectionId}
GET
/collection/{collectionId}
Retrieve a domain with the given collectionId
to view the data sources, description, and assigned permissions associated with the domain.
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
Response
Returns a domains object.
GET
/collection/{collectionType}/{collectionName}
GET
/collection/{collectionType}/{collectionName}
Retrieve a domain with the given collectionName
to view the data sources, description, and assigned permissions associated with the domain.
Path parameter
Parameter | Description |
---|---|
collectionType | The type of collection. The accepted value is |
collectionName | The name of the domain. |
Response
Returns a domains object.
PUT
/collection/{collectionId}
PUT
/collection/{collectionId}
Change the domain name or description. You must have the global GOVERNANCE
permission to update the domain.
Parameters
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
Body parameters
Parameter | Description | Required or Optional | Default values | Accepted values |
---|---|---|---|---|
name | The name of the domain. | Optional | - | - |
description | The description of the domain that will be displayed for users. | Optional | - | - |
Response
Returns a domains object with the new name or description.
DELETE
/collection/{collectionId}
DELETE
/collection/{collectionId}
Delete a domain. The domain must have zero data sources for a user with the global GOVERNANCE
permission to delete the domain.
Parameters
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
Query parameter
Parameter | Description |
---|---|
dryRun | If |
Response
Returns a 204 code when the domain is successfully deleted. Additional responses are provided below:
400: An invalid ID was provided.
404: The domain was not found.
POST
/collection/{collectionId}/datasources
POST
/collection/{collectionId}/datasources
Add existing data sources to a domain. You must have the GOVERNANCE
permission.
The request will fail if any data source IDs that have already been assigned to a domain are included in the payload.
Parameters
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
Body parameter
Parameter | Description | Required or Optional | Default values | Accepted values |
---|---|---|---|---|
dataSourceId | The unique identifier of the data source in Immuta. | Required | - | - |
Response
Returns a unique identifier of the background job that adds the data sources to the domain.
GET
/collection/{collectionId}/datasources
GET
/collection/{collectionId}/datasources
Retrieve the data sources within a domain.
Parameters
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
Query parameters
Parameter | Description | Accepted values |
---|---|---|
offset | The number of items from the beginning of the response to exclude. You can combine the | Minimum value is |
size | The number of data sources to return. | Minimum value is |
Response
Returns a data property that contains an array of up to size
data sources. Each entry in the array is a separate data source. If there are no data sources in the domain, the array will be empty.
DELETE
/collection/{collectionId}/datasources/{dataSourceId}
DELETE
/collection/{collectionId}/datasources/{dataSourceId}
Remove data sources from a domain. To remove data sources from a domain, you must have the global CREATE_DATA_SOURCE
permission.
Path parameters
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain from which to remove the data source. |
dataSourceId | The unique identifier of the data source to remove. |
Response
Returns a 204 code when the data source is successfully removed from the domain. Additional responses are included below:
403: Requesting user does not have permission to remove the data source.
404: The specified collection or data source was not found.
POST
/collection/{collectionId}/permissions
POST
/collection/{collectionId}/permissions
Assign domain permissions to a specific user. You must have the global USER_ADMIN
permission to assign domain permissions to users.
Domains permissions object attributes
Attribute | Description |
---|---|
id | The unique identifier of the permissions object. |
profileId | The unique identifier of the user the permission is assigned to. |
groupId | The unique identifier of the group the permission is assigned to. |
collectionId | The unique identifier of the domain. |
permission | The permission assigned to the user. Accepted value is |
createdAt | The date and time the permission object was created. |
source | Indicates whether the permission was assigned as a user permission or a group permission. |
Parameters
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
Body parameters
Parameter | Description | Required or Optional | Default values | Accepted values |
---|---|---|---|---|
groupId | The unique identifier of the group the permission is assigned to. | Optional |
| - |
profileId | The unique identifier of the user in the identity manager. | Optional |
| - |
permission | The domain permission assigned to the user. | Required | - |
|
Response
Returns an array of domain permission objects that represent a permission in a domain assigned to a specific user. If the permission had already been assigned to the user for that domain, the response will include an error for the permissions that were not assigned to that user because the permission already existed.
GET
/collection/{collectionId}/permissions/{memberType}
GET
/collection/{collectionId}/permissions/{memberType}
Retrieve a list of permissions associated with the domain.
Parameters
Path parameter
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
memberType | The type of member to get a list of permissions for. Possible values include |
Query parameters
Parameter | Description | Accepted values |
---|---|---|
type | The permission to return. |
|
offset | The number of items from the beginning of the response to exclude. You can combine the | Minimum value is |
size | The number of users to return. | Minimum value is |
searchText | A string used to filter the results returned by the | - |
sortField | Specifies the field to sort the results by. |
|
sortOrder | Specifies how to sort the results of the request. |
|
Response
Returns a data property that contains an array of users or groups who have been assigned that permission in the domain.
DELETE
/collection/{collectionId}/permissions/{permissionsId}
DELETE
/collection/{collectionId}/permissions/{permissionsId}
Remove a domain permission from a specific user or group. You must have the global USER_ADMIN
permission to remove domain permissions from users and groups.
Path parameters
Parameter | Description |
---|---|
collectionId | The unique identifier of the domain. |
permissionsId | The unique identifier of the assigned permission. |
Response
Returns a 204 code when the permission is successfully removed from the user. Additional responses are provided below:
400: Invalid permission
404: Collection or permission not found
Last updated