Environment Managed Governance - Disable Managed Environment
Disables managed governance for the specified environment (Preview).
POST https://api.powerplatform.com/environmentmanagement/environments/{environmentId}/governancesetting/disablemanaged?api-version=2022-03-01-preview
POST https://api.powerplatform.com/environmentmanagement/environments/{environmentId}/governancesetting/disablemanaged?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". |
Responses
| Name | Type | Description |
|---|---|---|
| 201 Created |
Created 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 |
|---|---|
| Environment |
Power platform Environment |
|
Error |
Represents error information for an operation. |
|
Operation |
Represents the result of an operation execution. |
|
Operation |
The status of operation. |
|
Stage |
The stage status of an operation. |
|
User |
Represents the identity of a user. |
|
Validation |
Represents the response for validation of an operation. |
Environment
Power platform Environment
| Name | Type | Description |
|---|---|---|
| dataverseOrganizationUrl |
string |
Dataverse organization URL of the environment. |
| displayName |
string |
Display name of the environment. |
| environmentId |
string |
The environment ID. |
ErrorInfo
Represents error information for an operation.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error Code. |
| fieldErrors |
object |
The detailed error. |
OperationExecutionResult
Represents the result of an operation execution.
| Name | Type | Description |
|---|---|---|
| endTime |
string (date-time) |
The end time of the operation. |
| errorDetail |
Represents error information for an operation. |
|
| name |
string |
The name of the operation. |
| operationId |
string |
The ID of the operation. |
| requestedBy |
Represents the identity of a user. |
|
| stageStatuses |
The list of State statuses associated with the operation. |
|
| startTime |
string (date-time) |
The start time of the operation. |
| status |
The status of operation. |
|
| updatedEnvironment |
Power platform Environment |
OperationStatus
The status of operation.
| Value | Description |
|---|---|
| Queued | |
| InProgress | |
| Succeeded | |
| ValidationFailed | |
| Failed | |
| NoOperation | |
| ValidationPassed |
StageStatus
The stage status of an operation.
| Name | Type | Description |
|---|---|---|
| endTime |
string (date-time) |
The end time of the stage. |
| errorDetail |
Represents error information for an operation. |
|
| name |
string |
The name of the stage. |
| startTime |
string (date-time) |
The start time of the stage. |
| status |
string |
The status of the stage. |
UserIdentity
Represents the identity of a user.
| Name | Type | Description |
|---|---|---|
| displayName |
string |
The display name of the user. |
| tenantId |
string |
The tenant ID of the user. |
| userId |
string |
The ID of the user. |
ValidationResponse
Represents the response for validation of an operation.
| Name | Type | Description |
|---|---|---|
| errorDetail |
Represents error information for an operation. |