Skip to main content

GET /api/sam/admin/config/backup

Get a full backup of the SAM Manager system configuration as a JSON object

Description

This method generates a full backup of the SAM Manager system configuration and exports that configuration as a JSON object. This JSON object can be used to import the system configuration into another SAM deployment using the SAM web portal or using a PUT /api/sam/admin/config/backup API request.

To use this endpoint, you must log in as a user with access to the %SAM.Admin resource.

Request Example

GET http://localhost:8080/api/sam/admin/config/backup

Response Example

{
    "clusters": [
        {
            "name": "local",
            "description": "my local cluster",
            "targets": [
                {
                    "instance": "172.16.6.6:52775",
                    "name": "IRIS3",
                    "description": "IRIS3",
                    "urlPrefix": "",
                    "dashboardId": "2"
                }
            ],
            "alertrules": [
                {
                    "alert": "test",
                    "annotations": {
                        "description": "iris_system_alerts is {{ $value }}"
                    },
                    "expr": "iris_system_alerts{cluster=\"local\"} > 50",
                    "labels": {
                        "severity": "critical"
                    }
                }
            ]
        }
    ],
    "KeepDays": 2,
    "grafanadb": "base64 encoded sqlite3 .dump content"
}
FeedbackOpens in a new tab