[id='rest_v2_cache_manager_site_status_{context}']
= Getting status of backup locations
Retrieve the status of all backup locations with `GET`
requests.

[source,options="nowrap",subs=attributes+]
----
GET /rest/v2/container/x-site/backups/
----

{brandname} responds with status in JSON format, as in the following example:

[source,json,options="nowrap",subs=attributes+]
----
include::json/xsite_backup_status.json[]
----

.Returned status

|===
|Value |Description

|`online`
| All nodes in the local cluster have a cross-site view with the backup location.

|`offline`
| No nodes in the local cluster have a cross-site view with the backup location.

|`mixed`
| Some nodes in the local cluster have a cross-site view with the backup location, other nodes in the local cluster do not have a cross-site view. The response indicates status for each node.
|===

[source,options="nowrap",subs=attributes+]
----
GET /rest/v2/container/x-site/backups/{site}
----

Returns the status for a single backup location.

[id='rest_v2_cache_manager_take_offline_{context}']
= Taking backup locations offline
Take backup locations offline with the `?action=take-offline` parameter.

[source,options="nowrap",subs=attributes+]
----
POST /rest/v2/container/x-site/backups/{siteName}?action=take-offline
----

[id='rest_v2_cache_manager_bring_online_{context}']
= Bringing backup locations online
Bring backup locations online with the `?action=bring-online` parameter.

[source,options="nowrap",subs=attributes+]
----
POST /rest/v2/container/x-site/backups/{siteName}?action=bring-online
----

[id='rest_v2_cache_manager_get_state_transfer_mode_{context}']
= Retrieving the state transfer mode
Check the state transfer mode with `GET` requests.

[source,options="nowrap",subs=attributes+]
----
GET /rest/v2/caches/{cacheName}/x-site/backups/{site}/state-transfer-mode
----

[id='rest_v2_cache_manager_set_state_transfer_mode_{context}']
= Setting the state transfer mode
Configure the state transfer mode with the `?action=set` parameter.

[source,options="nowrap",subs=attributes+]
----
POST /rest/v2/caches/{cacheName}/x-site/backups/{site}/state-transfer-mode?action=set&mode={mode}
----

[id='rest_v2_cache_manager_start_push_{context}']
= Starting state transfer
Push state of all caches to remote sites with the `?action=start-push-state` parameter.

[source,options="nowrap",subs=attributes+]
----
POST /rest/v2/container/x-site/backups/{siteName}?action=start-push-state
----


[id='rest_v2_cache_manager_cancel_push_{context}']
= Canceling state transfer
Cancel ongoing state transfer operations with the `?action=cancel-push-state` parameter.

[source,options="nowrap",subs=attributes+]
----
POST /rest/v2/container/x-site/backups/{siteName}?action=cancel-push-state
----
