Environment State - Enable Environment
Enables the specified environment (Preview).
POST https://api.powerplatform.com/environmentmanagement/environments/{environmentId}/Enable?api-version=2022-03-01-preview
POST https://api.powerplatform.com/environmentmanagement/environments/{environmentId}/Enable?ValidateOnly={ValidateOnly}&ValidateProperties={ValidateProperties}&api-version=2022-03-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
environment
|
path | True |
string |
The ID of the environment. |
|
api-version
|
query | True |
string |
The API version. |
|
Validate
|
query |
boolean |
The value which indicates whether the operation is a validated only request. Examples:
|
|
|
Validate
|
query |
string |
The value which indicates what properties should be validated. Need to work together with ValidateOnly. Properties should be separated by ','. Example: "property1,property2,property3". |
Request Body
Media Types: "application/json", "text/json", "application/*+json"
| Name | Type | Description |
|---|---|---|
| reason |
string |
The reason of this state change. |
Responses
| Name | Type | Description |
|---|---|---|
| 202 Accepted |
Accepted Media Types: "text/plain", "application/json", "text/json" |
|
| 400 Bad Request |
Bad Request Media Types: "text/plain", "application/json", "text/json" |
Security
oauth2
Microsoft Entra ID OAuth2
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize?resource=https://api.powerplatform.com
Scopes
| Name | Description |
|---|---|
| .default | .default |
Definitions
| Name | Description |
|---|---|
|
Error |
Represents error information for an operation. |
|
State |
Represents a request to change the state of an environment. |
|
Validation |
Represents the response for validation of an operation. |
ErrorInfo
Represents error information for an operation.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error Code. |
| fieldErrors |
object |
The detailed error. |
StateChangeRequest
Represents a request to change the state of an environment.
| Name | Type | Description |
|---|---|---|
| reason |
string |
The reason of this state change. |
ValidationResponse
Represents the response for validation of an operation.
| Name | Type | Description |
|---|---|---|
| errorDetail |
Represents error information for an operation. |