Skip to main content

startProvider

client.environments.startProvider(id: string, data?: Record<string, unknown>): Promise<unknown>

Starts the underlying provider for an environment.

Boots up the provider process that backs the environment, making it ready to accept operations. This is distinct from starting the environment itself.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the environment
dataRecord<string, unknown>NoOptional start configuration

Returns

Promise<unknown> — A promise that resolves when the provider has started

Example

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

const client = new CodeBoltClient();

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