Operation - Get Operations For Environment
Gets the list of environment lifecycle operations for a specific environment.
Lists the environment lifecycle operations for a specific environment.
GET https://api.powerplatform.com/environmentmanagement/environments/{environmentId}/operations?api-version=2024-10-01
GET https://api.powerplatform.com/environmentmanagement/environments/{environmentId}/operations?limit={limit}&continuationToken={continuationToken}&api-version=2024-10-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
environment
|
path | True |
string |
The ID of the environment. |
|
api-version
|
query | True |
string |
The API version. |
|
continuation
|
query |
string |
An opaque token returned by a previous response, used to fetch the next page of results. Omit to retrieve the first page. |
|
|
limit
|
query |
string |
The maximum number of records to return per request. Must be a positive integer; a server default applies if omitted. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK Media Types: "text/plain", "application/json", "text/json" |
|
| 400 Bad Request |
Bad Request Media Types: "text/plain", "application/json", "text/json" |
|
| 401 Unauthorized |
Unauthorized Media Types: "text/plain", "application/json", "text/json" |
|
| 403 Forbidden |
Forbidden Media Types: "text/plain", "application/json", "text/json" |
|
| 404 Not Found |
Not Found Media Types: "text/plain", "application/json", "text/json" |
|
| 429 Too Many Requests |
Too Many Requests 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. |
|
Field |
The error detail for a single field. |
|
Operation |
Structured error detail for a failed request. |
|
Operation |
The result of an environment lifecycle operation. |
|
Operation |
|
|
Operation |
The status of operation. |
|
Stage |
The status of a single stage of an operation. |
|
Step |
The execution status of an operation stage. |
|
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. |
FieldError
The error detail for a single field.
| Name | Type | Description |
|---|---|---|
| errorMessages |
string[] |
The error messages describing what is wrong with the field. |
| suggestedValue |
string |
A suggested or accepted value that would resolve the error. |
OperationErrorDetail
Structured error detail for a failed request.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error code. |
| fieldErrors |
<string,
Field |
Per-field error detail, keyed by field name. |
OperationExecutionResult
The result of an environment lifecycle operation.
| Name | Type | Description |
|---|---|---|
| endTime |
string (date-time) |
The end time of the operation. |
| errorDetail |
Structured error detail for a failed request. |
|
| name |
string |
The name of the operation. |
| operationId |
string |
The ID of the operation. |
| requestedBy |
Represents the identity of a user. |
|
| stageStatuses |
Per-stage progress of the operation. |
|
| startTime |
string (date-time) |
The start time of the operation. |
| status |
The status of operation. |
|
| updatedEnvironment |
Power Platform environment. |
OperationExecutionResultPagedCollection
| Name | Type | Description |
|---|---|---|
| collection |
The result of an environment lifecycle operation. |
|
| continuationToken |
string |
OperationStatus
The status of operation.
| Value | Description |
|---|---|
| Queued | |
| InProgress | |
| Succeeded | |
| ValidationFailed | |
| Failed | |
| NoOperation | |
| ValidationPassed |
StageStatus
The status of a single stage of an operation.
| Name | Type | Description |
|---|---|---|
| endTime |
string (date-time) |
The end time of the stage. |
| errorDetail |
Structured error detail for a failed request. |
|
| name |
string |
The name of the stage. |
| startTime |
string (date-time) |
The start time of the stage. |
| status |
The execution status of an operation stage. |
StepExecutionStatus
The execution status of an operation stage.
| Value | Description |
|---|---|
| Succeeded | |
| Failed | |
| Skipped | |
| Postponed | |
| InProgress | |
| NotStarted |
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. |
| type |
string |
The type of the user identity (for example, User). |
| userId |
string |
The ID of the user. |
ValidationResponse
Represents the response for validation of an operation.
| Name | Type | Description |
|---|---|---|
| errorDetail |
Structured error detail for a failed request. |