Boomi Platform API Reference (1.0.0) - EnvironmentRole
The Environment Role object represents the linkage between an environment, an account where there is a defined environment, and a defined role for the environment.
Required Privileges
Write access
- API — Use the Boomi Platform API to access account data.
- ENV_MANAGEMENT — Management of all environments and associated access.
Read access
- API — Use the Boomi Platform API to access account data.
- ATOM_MANAGEMENT — Configure and administer integration runtimes.
- ATOM_MANAGEMENT_READ_ONLY — Read only access to runtime configuration and administration.
Creates an EnvironmentRole object
Associates a role with an environment. You must have the Runtime Management privilege to perform the CREATE operation.
Authorizations:
Request Body schema: optional
| environmentId | string The environment ID. |
| id | string The object’s conceptual ID, which is synthesized from the role and environment IDs. |
| roleId | string The ID of the role. |
Responses
Response Schema:
| environmentId | string The environment ID. |
| id | string The object’s conceptual ID, which is synthesized from the role and environment IDs. |
| roleId | string The ID of the role. |
Request samples
- Payload
{- "environmentId": "myEnvironment",
- "roleId": "userRole"
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "Environment",
- "id": "456789ab-cdef-0123-4567-89abcdef0123",
- "name": "My Production Environment",
- "classification": "PROD"
}Retrieves an instance of an EnvironmentRole object
Returns a single Environment Role object based on the supplied environment role ID.
Authorizations:
path Parameters
| id required | string The Environment Role object you are attempting to get. |
Responses
Response Schema:
| environmentId | string The environment ID. |
| id | string The object’s conceptual ID, which is synthesized from the role and environment IDs. |
| roleId | string The ID of the role. |
Response samples
- 200
- 403
- 410
- 503
{- "@type": "EnvironmentRole",
- "environmentId": "myEnvironment",
- "roleId": "userRole"
}Deletes an EnvironmentRole object
Removes the association between a role and an environment.
You must have the Runtime Management privilege to perform the DELETE operation. If you have the Runtime Management privilege, you cannot delete associations between roles and environments.
Authorizations:
path Parameters
| id required | string The Environment Role object you are attempting to delete. |
Responses
Response samples
- 403
- 410
- 503
{- "message": "Access denied due to insufficient permissions."
}Retrieves multiple EnvironmentRole objects by identifier
To learn more about bulk, refer to the topic Bulk GET operations.
Authorizations:
Request Body schema: optional
Array of objects (BulkId) | |
| type | string Enum: "GET" "DELETE" "UPDATE" "CREATE" |
Responses
Response Schema:
Array of objects | |||||||||||
Array
| |||||||||||
Request samples
- Payload
{- "request": [
- {
- "id": "56789abc-def0-1234-5678-9abcdef01234"
}
], - "type": "GET"
}Response samples
- 200
- 403
- 410
- 503
{- "response": [
- {
- "Result": {
- "environmentId": "myEnvironment",
- "id": "string",
- "roleId": "userRole"
}, - "index": 0,
- "id": "string",
- "statusCode": 0,
- "errorMessage": "string"
}
]
}Queries for an EnvironmentRole object(s)
For general information about the structure of QUERY filters, their sample payloads, and how to handle the paged results, refer to Query filters and Query paging.
Authorizations:
Request Body schema: optional
Possible properties include: environmentId, roleId
required | object | ||||||||||
| |||||||||||
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (EnvironmentRole) |
Request samples
- Payload
{- "QueryFilter": {
- "expression": {
- "operator": "and",
- "nestedExpression": [
- {
- "argument": [
- "myEnvironment"
], - "operator": "EQUALS",
- "property": "environmentId"
}, - {
- "argument": [
- "userRole"
], - "operator": "EQUALS",
- "property": "roleId"
}
]
}
}
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "QueryResult",
- "result": [
- {
- "@type": "EnvironmentRole",
- "id": "RU5WX1JPTEVkYjg4MTZhZi0xNmMxLTQ1MmEtYjQwNS1lMzZmNGEwMTQ1NjU6MThjZmRjZDctNTUyMS00MWUxLTkzZTItYjgzMTdlMzFkZTY0",
- "environmentId": "myEnvironment",
- "roleId": "userRole"
}
], - "numberOfResults": 1
}Retrieves additional results for an EnvironmentRole query
To learn about using queryMore, refer to the topic Query paging.
Authorizations:
Request Body schema: text/plainrequired
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (EnvironmentRole) |
Response samples
- 200
- 403
- 410
- 503
{- "@type": "QueryResult",
- "result": [
- {
- "@type": "EnvironmentRole",
- "id": "RU5WX1JPTEVkYjg4MTZhZi0xNmMxLTQ1MmEtYjQwNS1lMzZmNGEwMTQ1NjU6MThjZmRjZDctNTUyMS00MWUxLTkzZTItYjgzMTdlMzFkZTY0",
- "environmentId": "myEnvironment",
- "roleId": "userRole"
}
], - "numberOfResults": 1
}