Skip to main content
Feedback

Get the list of environments for an account

This query retrieves the list of available environments along with their corresponding Integration Pack attachment details for the authorizing account.

Code samples

Input syntax

query env {
environments {
id
name
classification
integrationPackEnvironmentAttachment {
environmentId
id
integrationPackInstanceId
}
atoms {
id
name
}
}
}

FieldTypeDescriptionRequired/Optional
idIDThe environment IDResponse-only field
nameStringThe environment nameResponse-only field
classificationClassificationThe classification of the environment. Input value - PRODTEST
integrationPackEnvironmentAttachmentIntegrationPackEnvironmentAttachmentThe Integration Pack attachment dataResponse-only field
atomsbasic runtimeThe runtimes data.Response-only field

IntegrationPackEnvironmentAttachment

FieldTypeDescriptionRequired/Optional
idIDThe Integration Pack instance environment attachment ID.Response-only field
integrationPackInstanceIdStringThe Integration Pack instance ID.Response-only field
environmentIdStringThe environment ID.Response-only field
FieldTypeDescriptionRequired/Optional
idIDThe unique basic runtime ID.Response-only field
nameStringThe name of the basic runtime.Response-only field

Return syntax

The available environments for the account are returned in the response of a QUERY operation performed on the Environment object. Then, to get the Integration Pack attachment status of each of the environments that are available to the account, a QUERY operation is performed on the Integration Pack Environment Attachment object.

{
"data": {
"environments": [
{
"id": "ID",
"name": "String",
"classification": "Classification",
"integrationPackEnvironmentAttachment": [
{
"environmentId": "String",
"id": "ID",
"integrationPackInstanceId": "String"
}
],
"atoms": [
{
"id": "ID",
"name": "String"
},
{
"id": "ID",
"name": "String"
},
{
"id": "ID",
"name": "String"
}
]
}
]
}
}

Implementation

To get the available environments for an account, send the query to platform.boomi.com/graphqlwith the following headers:

KeyValue
SPACE_GUID<The Space guid\>
AuthorizationBearer <Token\>
Acceptapplication/json

Sample request

query env {
environments {
id
name
classification
integrationPackEnvironmentAttachment {
environmentId
id
integrationPackInstanceId
}
atoms {
id
name
}
}
}

Sample response

{
"data": {
"environments": [
{
"id": "aec9a3ba-2a9a-43da-998d-1466de6eba23",
"name": "TestEnvPr",
"classification": "PROD",
"integrationPackEnvironmentAttachment": [
{
"environmentId": "aec9a3ba-2a9a-43da-998d-1466de6eba23",
"id": "QVRUQUNIX0lQQUNLX0VOVlNXNTBaV2R5WVhScGIyNVFZV05yU1c1emRHRnVZMlV5TnprM01nOmFlYzlhM2JhLTJhOWEtNDNkYS05OThkLTE0NjZkZTZlYmEyMw",
"integrationPackInstanceId": "SW50ZWdyYXRpb25QYWNrSW5zdGFuY2UyNzk3Mg"
}
],
"atoms": [
{
"id": "5578ce86-0963-4f26-ad74-5f510789b022",
"name": "Test_atom1"
},
{
"id": "b27c0697-a989-4b53-9fee-724abd301f46",
"name": "Test_atom2"
},
{
"id": "b57535c3-b650-4ef2-9430-171b9bd4c287",
"name": "Test_atom"
}
]
}
]
}
}


On this Page