Delen via


Remediations - List Deployments At Resource Group

Hiermee haalt u alle implementaties op voor een herstel binnen het bereik van de resourcegroep.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments?api-version=2021-10-01
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments?$top={$top}&api-version=2021-10-01

URI-parameters

Name In Vereist Type Description
remediationName
path True

string

De naam van het herstel.

resourceGroupName
path True

string

Naam van resourcegroep.

subscriptionId
path True

string

Microsoft Azure-abonnements-id.

api-version
query True

string

Client-API-versie.

$top
query

integer (int32)

minimum: 0

Maximum aantal records dat moet worden geretourneerd.

Antwoorden

Name Type Description
200 OK

RemediationDeploymentsListResult

De opgehaalde herstelimplementaties.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

List deployments for a remediation at resource group scope

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/providers/Microsoft.PolicyInsights/remediations/myRemediation/listDeployments?api-version=2021-10-01

Voorbeeldrespons

{
  "value": [
    {
      "remediatedResourceId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/storAc1",
      "deploymentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.resources/deployments/a088e8fd-8600-4126-8d74-fc7ead0e9ae4",
      "status": "Succeeded",
      "resourceLocation": "eastus",
      "createdOn": "2018-09-13T21:51:09.075918Z",
      "lastUpdatedOn": "2018-09-13T21:52:09.8919106Z"
    },
    {
      "remediatedResourceId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/stor2",
      "deploymentId": "/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourcegroups/myResourceGroup/providers/microsoft.resources/deployments/6b8898c0-18a2-449e-987a-8d4d4f634f56",
      "status": "Succeeded",
      "resourceLocation": "westus",
      "createdOn": "2018-09-13T21:51:09.075918Z",
      "lastUpdatedOn": "2018-09-13T21:52:09.8761679Z"
    }
  ]
}

Definities

Name Description
ErrorDefinition

Foutdefinitie.

ErrorResponse

Foutreactie.

RemediationDeployment

Details van één implementatie die is gemaakt door het herstel.

RemediationDeploymentsListResult

Lijst met implementaties voor een herstel.

TypedErrorInfo

Scenariospecifieke foutdetails.

ErrorDefinition

Foutdefinitie.

Name Type Description
additionalInfo

TypedErrorInfo[]

Aanvullende scenariospecifieke foutdetails.

code

string

Servicespecifieke foutcode die fungeert als de substatus voor de HTTP-foutcode.

details

ErrorDefinition[]

Interne foutdetails.

message

string

Beschrijving van de fout.

target

string

Het doel van de fout.

ErrorResponse

Foutreactie.

Name Type Description
error

ErrorDefinition

De foutdetails.

RemediationDeployment

Details van één implementatie die is gemaakt door het herstel.

Name Type Description
createdOn

string (date-time)

Het tijdstip waarop het herstel is gemaakt.

deploymentId

string

Resource-id van de sjabloonimplementatie waarmee de resource wordt hersteld.

error

ErrorDefinition

Er is een fout opgetreden tijdens het herstellen van de resource.

lastUpdatedOn

string (date-time)

Het tijdstip waarop de herstelimplementatie voor het laatst is bijgewerkt.

remediatedResourceId

string

Resource-id van de resource die wordt hersteld door de implementatie.

resourceLocation

string

Locatie van de resource die wordt hersteld.

status

string

Status van de herstelimplementatie.

RemediationDeploymentsListResult

Lijst met implementaties voor een herstel.

Name Type Description
nextLink

string

De URL voor het ophalen van de volgende set resultaten.

value

RemediationDeployment[]

Matrix van implementaties voor het herstel.

TypedErrorInfo

Scenariospecifieke foutdetails.

Name Type Description
info

De details van de scenariospecifieke fout.

type

string

Het type opgenomen foutdetails.