Share via


Environment Managed Governance - Disable Managed Environment

Disables managed governance for the specified environment (Preview).
Disables managed governance for an environment. PRIVATE PREVIEW https://aka.ms/PowerPlatform/RBAC .

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
environmentId
path True

string

The ID of the environment.

api-version
query True

string

The API version.

ValidateOnly
query

boolean

The value which indicates whether the operation is a validated only request. Examples:

validateOnly=true with validateProperties non-empty: Validate only the listed properties, ignoring others even if present in the body.

validateOnly=true with empty/absent validateProperties: Validate the entire body (equivalent to full validation).

validateOnly=false or omitted: Process the full request(validate and execute).
ValidateProperties
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

OperationExecutionResult

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
ErrorInfo
JobStatus
OperationExecutionResult
OperationStatus

The operation status.

UserIdentity

Environment

Name Type Description
environmentId

string

The environment ID.

ErrorInfo

Name Type Description
code

string

The error code.

fieldErrors

object

JobStatus

Name Type Description
endTime

string (date-time)

The job end time.

name

string

The job name.

startTime

string (date-time)

The job start time.

status

string

The job status.

OperationExecutionResult

Name Type Description
endTime

string (date-time)

The end time.

errorDetail

ErrorInfo

jobStatuses

JobStatus[]

name

string

The result name.

operationId

string

The operation ID.

requestedBy

UserIdentity

startTime

string (date-time)

The start time.

status

OperationStatus

The operation status.

updatedEnvironment

Environment

OperationStatus

The operation status.

Value Description
Queued
InProgress
Succeeded
ValidationError
Failed
NoOperation
Validated

UserIdentity

Name Type Description
displayName

string

The display name.

tenantId

string

The tenant ID.

userId

string

The user ID.