Find an environment ID
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
Certain actions, such as updating or deleting an environment using the Snyk API, require the environment ID.
To find the ID of an environment, you can use the following methods:
To find an environment ID using the Web UI:
Navigate to your Organization Settings > Cloud environments.
In the Actions column, select the ...
icon for the desired environment.
Select Update.
In the Environment ID section, select Copy to copy the environment ID.
To find an environment ID using the API, send a request to the /cloud/environments
endpoint in the following format:
In the output, look for the data.id
property of the desired environment. In the shortened example that follows, the ID is 3b7ccff9-8900-4e54-0000-1234abcd1234
:
You can filter the list of environments using query parameters to make it easier to find a particular environment. For example, you can add kind=google
to the API request to return only Google Cloud environments: