4.2. 获取特定备份位置的状态
使用 GET 请求检索备份位置的状态。
GET /rest/v2/caches/{cacheName}/x-site/backups/{siteName}
GET /rest/v2/caches/{cacheName}/x-site/backups/{siteName}
Data Grid 以 JSON 格式使用每个节点的状态进行响应,如下例所示:
{
"NodeA":"offline",
"NodeB":"online"
}
{
"NodeA":"offline",
"NodeB":"online"
}
| 值 | 描述 |
|---|---|
|
| 节点在线。 |
|
| 节点离线。 |
|
| 无法检索状态。远程缓存可能会关闭,或者在请求过程中发生网络错误。 |