Commit 5420f271 by Adrian Garza Committed by GitHub

added CloudWatch data source API documentation

access and secret keys are base64-encoded gibberish
parent b716a259
...@@ -137,7 +137,7 @@ parent = "http_api" ...@@ -137,7 +137,7 @@ parent = "http_api"
`POST /api/datasources` `POST /api/datasources`
**Example Request**: **Example Graphite Request**:
POST /api/datasources HTTP/1.1 POST /api/datasources HTTP/1.1
Accept: application/json Accept: application/json
...@@ -152,6 +152,28 @@ parent = "http_api" ...@@ -152,6 +152,28 @@ parent = "http_api"
"basicAuth":false "basicAuth":false
} }
**Example CloudWatch Request**:
```
POST /api/datasources HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
{
"name": "test_datasource",
"type": "cloudwatch",
"url": "http://monitoring.us-west-1.amazonaws.com",
"access": "proxy",
"jsonData": {
"authType": "keys",
"defaultRegion": "us-west-1"
},
"secureJsonData": {
"accessKey": "Ol4pIDpeKSA6XikgOl4p",
"secretKey": "dGVzdCBrZXkgYmxlYXNlIGRvbid0IHN0ZWFs"
}
}
```
**Example Response**: **Example Response**:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment