Create a ticket
Sign in Sign up
Locker support Locker support
Results

No results found.

Home Locker Secrets Manager Developer tools Secrets - SDK NodeJS Usages Create new environment
Vietnamese English
Create new environment

Methods:

  • createEnvironment: create a new environment with name, external url, and description (optional). You cannot create environments with the same name. Returns the new environment

createEnvironment: (data: { name: string; externalUrl: string; description?: string }) => Promise<Environment>

Example:

// Create a new environment
const env1 = await locker.createEnvironment({
  name: 'prod',
  externalUrl: 'product.prod',
	description: 'testing'
})

// This will throw an error
const env2 = await locker.createEnvironment({
  name: 'prod',
  externalUrl: 'product.prod.example'
})
Was this page helpful?
No
Yes
Join Our Community