Resources

Override Environment

Manually sets a resource's environment, overriding auto-classification.

You can revert to auto-classification of environment by calling Remove Environment Override for the same resource.

patch/v1/projects/{projectId}/resources/{id}/environments

Request

  • Base URL: https://%7Baccount-domain%7D.console.eon.io/api
  • URL: https://%7Baccount-domain%7D.console.eon.io/api/v1/projects/{projectId}/resources/{id}/environments
  • Auth: HTTP bearer

Path parameters

projectIdstring uuid required

ID of the project the resource is in. You can get your project ID from the API Credentials page in your global management console.

idstring uuid required

Eon-assigned ID of the resource to override.

Request body

environment'PROD' | 'PROD_INTERNAL' | 'STAGE' | 'ENVIRONMENT_UNSPECIFIED'

The resource's environment: production, internal production, or staging. ENVIRONMENT_UNSPECIFIED is supported only in responses.

Response

Environment overridden.

environment'PROD' | 'PROD_INTERNAL' | 'STAGE' | 'ENVIRONMENT_UNSPECIFIED'

The resource's environment: production, internal production, or staging. ENVIRONMENT_UNSPECIFIED is supported only in responses.

Changes

No recorded changes to this operation across all 1 revision of this API.