/api/sam API Reference
- GET /api/sam/version – Get SAM Manager version
- GET /api/sam/target/state/ – Get information for all instances
- GET /api/sam/target/state/{id} – Get information for a specific instance
- GET /api/sam/alerts/ – Get alerts
- POST /api/sam/admin/cluster – Create a new cluster
- GET /api/sam/admin/cluster/ – Get information for all clusters
- GET /api/sam/admin/cluster/{id} – Get information for a specific cluster
- PUT /api/sam/admin/cluster/{id} – Update a cluster's information
- DELETE /api/sam/admin/cluster/{id} – Delete a cluster from SAM
- POST /api/sam/admin/target – Add an instance to SAM
- GET /api/sam/admin/target/ – Get clusters of all instances
- GET /api/sam/admin/target/{id} – Get cluster of a specific instance
- PUT /api/sam/admin/target/{id} – Update an instance’s information
- DELETE /api/sam/admin/target/{id} – Delete an instance from SAM
- GET /api/sam/admin/alertrule/{clusterid}/ – Get alert rules for specific cluster
- PUT /api/sam/admin/alertrule/{clusterid}/ – Replace alert rules for specific cluster
- GET /api/sam/admin/config/backup – Get a full backup of the SAM Manager system configuration as a JSON object
- PUT /api/sam/admin/config/backup – Import a full SAM Manager system configuration from a JSON object, replacing the current configuration
- GET /api/sam/admin/config/keepdays – Get the number of days that SAM stores metrics and alerts
- PUT /api/sam/admin/config/keepdays – Set number of days for SAM to store metrics and alerts