Delen via


Remediations - List Deployments At Resource

Hiermee haalt u alle implementaties op voor een herstel binnen het resourcebereik.

POST https://management.azure.com/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments?api-version=2021-10-01
POST https://management.azure.com/{resourceId}/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.

resourceId
path True

string

Resource-id.

api-version
query True

string

Client-API-versie.

$top
query

integer

int32

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
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

List deployments for a remediation at individual resource scope

Sample Request

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

Sample Response

{
  "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"
    }
  ]
}

Definities

Name Description
ErrorDefinition

Foutdefinitie.

ErrorResponse

Foutreactie.

RemediationDeployment

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

RemediationDeploymentsListResult

Lijst met implementaties voor 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[]

Details van interne fouten.

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

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

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 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 specifieke foutdetails van het scenario.

type

string

Het type opgenomen foutdetails.