Document toolboxDocument toolbox

Domain operations

Overview

Check the list of available endpoints and methods to modify and update domains (both common and multitenant domains) using the Provisioning API:

Endpoints and methods

Description

Endpoints and methods

Description

1

GET /domain see below

Get a list of all the domains in a multitenant structure.

2

GET /domain/{domainName} see below

Get basic information about a given domain in a multitenant structure.

3

GET /domains/{domainName} see below

Returns a list of all the children domains a root domain has in a multitenant structure.

4

GET /domain/{domainName}/retention see below

Get the price plan retention values of the given multitenant domain.

5

GET /domain/{domainName}/roles see below

Get details of all the roles in the given domain.

6

GET /domain/{domainName}/roles/{roleName} see below

Get details of a specific role in a given domain.

7

GET /domain/{domainName}/policies see below

Get the list of role policies available in a given domain.

8

GET /domain/{domainName}/applications see below

Get the list of applications available in a given domain.

9

GET /domain/{domainName}/resources see below

Get the list of role resources available in a given domain.

10

GET /domain/{domainName}/roles/vaults see below

Get the list of role vaults available in a given domain.

11

GET /domain/{domainName}/preferences see below

Retrieve the subset of preferences of the given domain.

12

GET /domain/{domainName}/preferences/limits see below

Retrieve the limits in the preferences of the given domain.

13

GET /domain/{domainName}/visibility see below

Returns a list of all the domains from which a root domain can access data in a multitenant structure.

14

GET /domain/{domainName}/auth see below

Returns the configuration info of a multitenant domain.

15

GET /domain/{domainName}/keys see below

Returns a list of all the API keys associated to the given domain.

16

GET /domain/{domainName}/keys/{key} see below

Returns info of a specific API key.

17

POST /domain see below

Create a new domain in a multitenant structure.

18

POST /domain/{domainName}/disable see below

Disable a multitenant domain.

19

POST /domain/{domainName}/enable see below

Enable a multitenant domain.

20

POST /domain/{domainName}/visibility see below

Creates a new domain visibility configuration (i.e., custom data access) for a given domain.

21

POST /domain/{domainName}/roles see below

Create a new role in a given domain.

22

POST /domain/{domainName}/keys see below

Generate a new API key/secret pair in the domain.

23

PUT /domain/{domainName}/plan see below

Change the current plan of a multitenant domain.

24

PUT /domain/{domainName}/retention see below

Update the given domain plan retention configuration.

25

PUT /domain/{domainName}/roles see below

Update a role in a given domain.

26

PUT /domain/{domainName}/roles/{roleName} see below

Update a role.

27

PUT /domain/{domainName}/preferences see below

Update the subset of preferences of a given domain.

28

PUT /domain/{domainName}/preferences/limits see below

Update the limits in the preferences of a given domain.

29

PUT /domain/{domainName}/certificates/download see below

Download a certificate.

30

PUT /domain/{domainName}/auth see below

Update the configuration of a multitenant domain.

31

Put /domain/{domainName}/visibility see below

Updates a domain visibility configuration (i.e., custom data access) for a given domain.

32

DELETe /domain/{domainName} see below

Delete a domain.

33

DELETe /domain/{domainName}/roles/{roleName} see below

Delete a role in a given domain.

34

DELETe /domain/{domainName}/keys/{key} see below

Delete a specific API key.

35

delete /domain/{domainName}/visibility see below

Deletes a domain visibility configuration (i.e., custom data access) for a given domain.

Endpoints and methods

GET /domain

Get a list of all the domains in a multitenant structure. By default, only active domains are retrieved.

Note that this endpoint requires multitenant API credentials. Common domain API key/secret pairs won’t work.

Query string parameters

Query string parameters are optionally added after the path parameters, preceded by a question mark (?) and separated by an ampersand (&)

Parameter

Type

Description

Parameter

Type

Description

all

boolean

Set this parameter to true if you want to get all the domains, including disabled ones. The default value is false.

Find below a request example:

https://api-us.devo.com/probio/domain

Code

Description and sample body

Code

Description and sample body

200

Successful response. List of domains retrieved.

[ { "name": "domain_1@demo", "plan": "default", "time": 36.0, "volume": 10.0, "status": "Active" }, { "name": "domain_2@demo", "plan": "default", "time": 60.0, "volume": 1.3, "status": "Active" } ]

4xx

Bad request.

{ "error": { "code": 4xx, "message": "string" } }

GET /domain/{domainName}

Get basic information about a given domain in a multitenant structure.

Note that this endpoint requires multitenant API credentials. Common domain API key/secret pairs won’t work.

Path parameters

Add the following path parameters as part of the endpoint:

Parameter

Type

Description

Parameter

Type

Description

domainName required

string

Enter the name of the required domain. Using the format {domainName}@{multitenantName} is optional.

Find below a request example:

Code

Description and sample body

Code

Description and sample body

200

Successful response. Domain details retrieved.

4xx

Bad request.

GET /domains/{domainName}

Returns a list of all the domains a root domain has in a multitenant structure.

Path parameters

Add the following path parameters as part of the endpoint:

Parameter

Type

Description

Parameter

Type

Description

domainName required

string

Enter the name of the required domain. You must enter the full domain name using the format {domainName}@{multitenantName}

Find below a request example:

GET /domain/{domainName}/retention

Get the price plan retention values of the given multitenant domain.

Note that this endpoint requires multitenant API credentials. Common domain API key/secret pairs won’t work.

GET /domain/{domainName}/roles

Get details of all the roles in the given domain, including the default ones.

GET /domain/{domainName}/roles/{roleName}

Get details of a specific role in a given domain, either a default or a custom role.

GET /domain/{domainName}/policies

Get the list of role policies (or permissions) available in a given domain.

GET /domain/{domainName}/applications

Get the list of applications available in a given domain, both installed and not installed.

GET /domain/{domainName}/resources

Get the list of role resources available in a given domain. Resources refer to lookups and activeboards created in the domain.

GET /domain/{domainName}/roles/vaults

Get the list of role vaults available in a given domain.

GET /domain/{domainName}/preferences

Retrieves the subset of preferences of the given domain.

GET /domain/{domainName}/preferences/limits

Retrieve the limits in the preferences of the given domain.

GET /domain/{domainName}/visibility

Returns a list of all the domains from which a root domain can access data in a multitenant structure.

GET /domain/{domainName}/auth

Returns the configuration info of a multitenant domain.

GET /domain/{domainName}/keys

Returns a list of all the API keys associated to the given multitenant domain.

GET /domain/{domainName}/keys/{key}

Returns information of a specific API key.

POST /domain

Create a new domain in a multitenant structure.

POST /domain/{domainName}/disable

Disable a multitenant domain.

POST /domain/{domainName}/enable

Enable a multitenant domain.

Domains with the status pending cannot be activated. Also, when you try to disable or enable an already disabled or enabled domain, you will get an error response.

POST /domain/{domainName}/visibility

Creates a new domain visibility configuration (i.e., custom data access) for a given domain.

POST /domain/{domainName}/roles

Create a new role in a given domain.

POST /domain/{domainName}/keys

Creates a new API key/secret pair for the domain. The autogenerated credentials are returned in the response. The request body of this request must be empty.

PUT /domain/{domainName}/plan

Change the current plan of a multitenant domain. The new plan must be valid for the multitenant structure and different from the current one.

PUT /domain/{domainName}/retention

Update the price plan configuration (retention & volume) of a given domain. Partial updates are permitted.

PUT /domain/{domainName}/roles

Updates a domain custom role in a given domain.

PUT /domain/{domainName}/roles/{roleName}

Updates a domain custom role.

PUT /domain/{domainName}/preferences

Update the subset of preferences of a given domain.

PUT /domain/{domainName}/preferences/limits

Update the limits in the preferences of a given domain.

PUT /domain/{domainName}/certificates/download

Download the certificates of a given domain.

PUT /domain/{domainName}/auth

Updates the configuration info of a multitenant domain.

PUT /domain/{domainName}/visibility

Updates a domain visibility configuration (i.e., custom data access) for a given domain.

DELETE /domain/{domainName}

Delete a multitenant domain. This will additionally delete all user domains belonging to the multitenant domain. Any user that ends up without at least one user domain will be deleted as well.

DELETE /domain/{domainName}/roles/{roleName}

Delete a role in a given domain. Note that a role cannot be deleted while it is assigned to a user.

DELETE /domain/{domainName}/keys/{key}

Delete a specific API key from the given domain.

DELETE /domain/{domainName}/visibility

Deletes a domain visibility configuration (i.e., custom data access) for a given domain.