useFetchEnvironments()
useFetchEnvironments(
Fetches environments from the Boomi API using classification (PROD/TEST/ALL)
or a specific environment ID. When available, enriches environments with Atom
attachments and computes an isActive flag (true if all attached Atoms are ONLINE).
Throws
If required context (Boomi SDK, apiAccountId) or parameters are missing.
Parameters
The ID of the integration pack for which environments are being fetched.
Optional environment classification filter ("PROD", "TEST", "ALL").
null | string
Returns
{ environments: any[]; isLoading: boolean; error: null | string; }
An object containing the fetched environments with metadata, loading state, and any error.
Was this topic helpful?