Skip to content

Instantly share code, notes, and snippets.

@vipulsabhaya
Last active August 29, 2015 14:01
Show Gist options
  • Save vipulsabhaya/c5191159612179b685a3 to your computer and use it in GitHub Desktop.
Save vipulsabhaya/c5191159612179b685a3 to your computer and use it in GitHub Desktop.
### List all logs available to save per datastore
GET /datastores/mysql/logs
{
"logs" : [
{
"name" : "slow_query_log",
"description": "MySQL slow query log"
},
{
"name" : "err_log",
"description": "MySQL error log"
}
}
### Save a Log for a given instance
POST /instance/{id}/logs
{
"log": "slow_query_log"
}
### Get logs saved for a given instance
GET /instance/{id}/logs
{
"logs" : {
"log" : {
"name": "slow_query_log"
"location" : "https://swift_endpoint/tenant_id/dblogcontainername/{instance_id}/slow_query.log.2014-05-05T00:00:00Z"
"created" : "2014-05-05T00:00:00"
},
"log" : {
"name": "err_log"
"location" : "https://swift_endpoint/tenant_id/dblogcontainername/{instance_id}/mysql_err_log.log.2014-05-05T03:00:00Z"
"created" : "2014-05-05T03:00:00"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment