Remediations - List Deployments At Resource Group

Lekéri a szervizeléshez szükséges összes üzembe helyezést az erőforráscsoport hatókörében.

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-paraméterek

Name In Kötelező Típus Description
remediationName
path True

string

A szervizelés neve.

resourceGroupName
path True

string

Az erőforráscsoport neve.

subscriptionId
path True

string

Microsoft Azure-előfizetés azonosítója.

api-version
query True

string

Ügyfél API-verziója.

$top
query

integer

int32

A visszaadandó rekordok maximális száma.

Válaszok

Name Típus Description
200 OK

RemediationDeploymentsListResult

A lekért szervizelési üzemelő példányok.

Other Status Codes

ErrorResponse

Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg.

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation felhasználói fiók megszemélyesítése

Példák

List deployments for a remediation at resource group scope

Sample Request

POST https://management.azure.com/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myResourceGroup/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"
    },
    {
      "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"
    }
  ]
}

Definíciók

Name Description
ErrorDefinition

Hibadefiníció.

ErrorResponse

Hibaválasz.

RemediationDeployment

A szervizelés által létrehozott egyetlen üzembe helyezés részletei.

RemediationDeploymentsListResult

A szervizeléshez szükséges üzemelő példányok listája.

TypedErrorInfo

Esetspecifikus hiba részletei.

ErrorDefinition

Hibadefiníció.

Name Típus Description
additionalInfo

TypedErrorInfo[]

További forgatókönyvspecifikus hibaadatok.

code

string

Szolgáltatásspecifikus hibakód, amely a HTTP-hibakód alállapotaként szolgál.

details

ErrorDefinition[]

Belső hiba részletei.

message

string

A hiba leírása.

target

string

A hiba célja.

ErrorResponse

Hibaválasz.

Name Típus Description
error

ErrorDefinition

A hiba részletei.

RemediationDeployment

A szervizelés által létrehozott egyetlen üzembe helyezés részletei.

Name Típus Description
createdOn

string

A szervizelés létrehozásának időpontja.

deploymentId

string

Az erőforrást javító sablontelepítés erőforrás-azonosítója.

error

ErrorDefinition

Hiba történt az erőforrás szervizelése közben.

lastUpdatedOn

string

A szervizelési üzembe helyezés utolsó frissítésének időpontja.

remediatedResourceId

string

Az üzembe helyezés által szervizelt erőforrás erőforrás-azonosítója.

resourceLocation

string

A szervizelendő erőforrás helye.

status

string

A szervizelési üzembe helyezés állapota.

RemediationDeploymentsListResult

A szervizeléshez szükséges üzemelő példányok listája.

Name Típus Description
nextLink

string

A következő eredményhalmaz lekéréséhez tartozó URL-cím.

value

RemediationDeployment[]

Üzembe helyezések tömbje a szervizeléshez.

TypedErrorInfo

Esetspecifikus hiba részletei.

Name Típus Description
info

A forgatókönyv konkrét hibaadatai.

type

string

A hiba részleteinek típusa.