Skip to main content

getEnvironment

client.environments.getEnvironment(id: string): Promise<Environment>

Retrieves a specific environment by its ID.

Returns the full details of a single environment including its current state, provider, and configuration.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the environment

Returns

Promise<Environment> — A promise that resolves to the

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.environments.getEnvironment('id');
console.log(result);