Websites - Get Affected Sites
Lists the websites affected by an exception scenario for a tenant.
Lists the websites in the tenant affected by an exception scenario, with each site's existing grant state, so an admin can review and select sites before granting.
GET https://api.powerplatform.com/powerpages/environments/{environmentId}/exceptions/affectedSites?exceptionType=WebApiStarRetirement&api-version=2024-10-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
environment
|
path | True |
string |
The environment ID. |
|
api-version
|
query | True |
string |
The API version. |
|
exception
|
query | True |
string |
The exception scenario discriminator, e.g. "WebApiStarRetirement". |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| 400 Bad Request |
Bad Request |
|
| 401 Unauthorized |
Unauthorized |
|
| 403 Forbidden |
Forbidden |
|
| 404 Not Found |
Not Found |
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 |
|---|---|
|
Affected |
|
|
Affected |
|
| Details | |
| Error | |
|
Error |
|
|
Exception |
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets. |
AffectedSite
| Name | Type | Description |
|---|---|---|
| detail |
string |
Scenario-specific detail of why the website is affected. |
| expirationDate |
string (date-time) |
Expiry of the existing grant, when one exists (null otherwise). |
| grantStatus |
string |
Existing grant state for this website and exception type ("None" when no grant exists, otherwise the derived lifecycle status). |
| portalId |
string |
Website unique identifier (ID). |
| portalName |
string |
Friendly website name (may be null when not resolvable). |
| portalUrl |
string |
Website URL (may be null when not resolvable). |
| ppacUrl |
string |
Deep link to this website's settings page in the Power Platform admin center (may be null when the base URL is not configured). |
| siteType |
string |
Site type ("Production" or "Trial"). |
AffectedSitesResult
| Name | Type | Description |
|---|---|---|
| exceptionType |
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets. |
|
| sites |
The affected websites. |
|
| totalCount |
integer (int32) |
Number of affected sites. |
Details
| Name | Type | Description |
|---|---|---|
| code |
string |
Error code |
| message |
string |
Error message |
| target |
string |
Target parameter |
Error
| Name | Type | Description |
|---|---|---|
| code |
string |
Error code |
| details |
Details[] |
|
| message |
string |
Error message |
| target |
string |
Target parameter |
ErrorMessage
| Name | Type | Description |
|---|---|---|
| error |
ExceptionType
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets.
| Value | Description |
|---|---|
| WebApiStarRetirement |