useFetchEnvironmentStatus()
useFetchEnvironmentStatus(
Fetches an environment's Atom attachments, resolves each Atom's status,
and sets status to true only if all attached Atoms are ONLINE.
Throws
If the Boomi client or envId is missing when fetching.
Parameters
Fields: envId: string.
Returns
{ status: boolean; name: null | string; fetchEnvironmentStatus: () => Promise<void>; isLoading: boolean; error: null | string; }
Hook API with the online status, environment name, a refetch function, and state flags.
fetchEnvironmentStatus()
fetchEnvironmentStatus: () => Promise<void>
Returns
Was this topic helpful?