Avamar:如何使用 REST api 重置数据移动应用程序托管策略
Summary: 本文介绍如何使用 DDOS REST API 在具有 DDOS 6.0 的 Avamar 上重置数据移动“应用程序托管”策略。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
如何使用 REST API 在具有 DDOS 6.0 的 Avamar 上重置数据移动应用程序托管策略:
环境:
-
Avamar 7.4.1-58
-
Data Domain:6.0
问题:
已在 Avamar 上启用 Cloud Tier 功能。遇到问题后,未在 Avamar UI 中为该 Data Domain (DD) 开启 Cloud Tier 功能,但在 DD 端,它显示 mtree 具有应用程序托管策略。
示例:
data-movement policy show
Mtree Target(Tier/Unit Name) Policy Value
------------------------------- ---------------------- ------------- -------
/data/col1/avamar-1234567891 Cloud/cloudunit1 app-managed enabled
管理控制台服务器 (MCS) 现在无法启用 Cloud Tier。
MCS 中显示错误:
WARNING: com.avamar.asn.service.ServiceException: Failed with HTTP error code : 400 additional information : {"details": "**** Data Movement Policy exists for the mtree.", "code": 5437}
解决方案:
必须使用 DDOS REST API 重置数据移动策略,因为重置功能仅在 DDOS 6.0 中使用 REST API 可用。
DDOS REST API 可用于删除现有策略,然后重新启用 Cloud Tier。
下面提供了调用 DD REST API 的一些示例:
提醒:在 Avamar 中运行 rest 调用,否则可能会出现一些握手失败。
host=[your dd host]
ddr_username=[your username]
ddr_password=[your password]
token=`curl --insecure -H "Content-Type: application/json" -X POST -d "{\"auth_info\":{\"username\":\"$ddr_username\",\"password\":\"$ddr_password\"}}" -w '\n' -i -s https://$host:3009/rest/v1.0/auth |grep 'X-DD-AUTH-TOKEN:'`
echo $token
#### 列出数据移动策略:
curl --insecure -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "$token" -w '\n' "https://$host:3009/rest/v1.0/dd-systems/0/data-movement-policies"
#### 在删除之前设置 id:
#### 此处的 ID 是上面列出的数据移动之一:通过以下方式查找 ID: mtree_name.
id="" [root@localhost text]
curl --insecure -X DELETE --header 'Content-Type: application/json' --header 'Accept: application/json' --header "$token" -w '\n' https://$host:3009/rest/v1.0/dd-systems/0/data-movement-policies/$id
Additional Information
MCS UI 中的“Enable Cloud Tier”选项:

Affected Products
Data DomainProducts
Avamar Server, Data Domain, Cloud Disaster RecoveryArticle Properties
Article Number: 000014126
Article Type: How To
Last Modified: 13 Aug 2025
Version: 8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.