Remediations - List Deployments At Resource Group

取得資源群組範圍補救的所有部署。

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 參數

名稱 位於 必要 類型 Description
remediationName
path True

string

補救的名稱。

resourceGroupName
path True

string

資源群組名稱。

subscriptionId
path True

string

Microsoft Azure 訂用帳戶標識碼。

api-version
query True

string

用戶端 API 版本。

$top
query

integer

int32

要傳回的記錄數目上限。

回應

名稱 類型 Description
200 OK

RemediationDeploymentsListResult

擷取的補救部署。

Other Status Codes

ErrorResponse

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

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

定義

名稱 Description
ErrorDefinition

錯誤定義。

ErrorResponse

錯誤回應。

RemediationDeployment

補救所建立之單一部署的詳細數據。

RemediationDeploymentsListResult

補救的部署清單。

TypedErrorInfo

案例特定的錯誤詳細數據。

ErrorDefinition

錯誤定義。

名稱 類型 Description
additionalInfo

TypedErrorInfo[]

其他案例特定的錯誤詳細數據。

code

string

服務特定的錯誤碼,可作為 HTTP 錯誤碼的子狀態。

details

ErrorDefinition[]

內部錯誤詳細數據。

message

string

錯誤的描述。

target

string

錯誤的目標。

ErrorResponse

錯誤回應。

名稱 類型 Description
error

ErrorDefinition

錯誤詳細資料。

RemediationDeployment

補救所建立之單一部署的詳細數據。

名稱 類型 Description
createdOn

string

建立補救的時間。

deploymentId

string

將補救資源的範本部署資源標識碼。

error

ErrorDefinition

補救資源時發生錯誤。

lastUpdatedOn

string

上次更新補救部署的時間。

remediatedResourceId

string

部署所修復之資源的資源標識碼。

resourceLocation

string

正在補救之資源的位置。

status

string

補救部署的狀態。

RemediationDeploymentsListResult

補救的部署清單。

名稱 類型 Description
nextLink

string

要取得下一組結果的URL。

value

RemediationDeployment[]

補救的部署陣列。

TypedErrorInfo

案例特定的錯誤詳細數據。

名稱 類型 Description
info

案例特定的錯誤詳細數據。

type

string

包含的錯誤詳細數據類型。