Skip to content
Ona Docs

UnarchiveEnvironment

client.environments.unarchive(EnvironmentUnarchiveParams { environmentId } body, RequestOptionsoptions?): EnvironmentUnarchiveResponse
POST/gitpod.v1.EnvironmentService/UnarchiveEnvironment

Unarchives an environment.

Examples

  • Unarchive an environment:

    environmentId: "07e03a28-65a5-4d98-b532-8ea67b188048"
ParametersExpand Collapse
body: EnvironmentUnarchiveParams { environmentId }
environmentId?: string

environment_id specifies the environment to unarchive.

+required

formatuuid
ReturnsExpand Collapse
EnvironmentUnarchiveResponse = unknown

UnarchiveEnvironment

import Gitpod from '@gitpod/sdk';

const client = new Gitpod({
  bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});

const response = await client.environments.unarchive({
  environmentId: '07e03a28-65a5-4d98-b532-8ea67b188048',
});

console.log(response);
{}
Returns Examples
{}