調(diào)用DestroyResourceDirectory關(guān)閉資源目錄。此操作不可恢復(fù),請(qǐng)您慎重操作。
關(guān)閉資源目錄前,請(qǐng)確認(rèn)已完成以下操作:
- 資源目錄內(nèi)所有成員已被移除。關(guān)于如何移除成員,請(qǐng)參見(jiàn)RemoveCloudAccount。
- 資源目錄內(nèi)除Root資源夾外的資源夾已全部刪除。關(guān)于如何刪除資源夾,請(qǐng)參見(jiàn)DeleteFolder。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
請(qǐng)求參數(shù)
名稱(chēng) | 類(lèi)型 | 是否必選 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DestroyResourceDirectory |
要執(zhí)行的操作。取值:DestroyResourceDirectory。 |
返回?cái)?shù)據(jù)
名稱(chēng) | 類(lèi)型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 9B34724D-54B0-4A51-B34D-4512372FE1BE |
請(qǐng)求ID。 |
示例
請(qǐng)求示例
https://resourcemanager.aliyuncs.com/?Action=DestroyResourceDirectory
&<公共請(qǐng)求參數(shù)>
正常返回示例
XML
格式
<DestroyResourceDirectoryResponse>
<RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
</DestroyResourceDirectoryResponse>
JSON
格式
{
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
錯(cuò)誤碼
HttpCode | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
---|---|---|---|
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 當(dāng)前賬號(hào)未啟用資源目錄,請(qǐng)先啟用資源目錄。 |
409 | DeleteConflict.ResourceDirectory.Account | Failed to delete the resource directory because one or more member accounts exist. We recommend that you first remove these member accounts. | 資源目錄內(nèi)存在成員,請(qǐng)先移除成員。 |
訪問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。