EDB Postgres Enterprise Manager REST APIs v12.0: Include/Exclude Database Monitoring v10.2
get__server_exclude_database_{sid}
Code samples
# You can also use wget curl -X GET https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid} \ -H 'Accept: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Accept': 'application/json', 'X-Auth-Token': 'string' } r = requests.get('https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid}', headers = headers) print(r.json())
const headers = { 'Accept':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid}', { method: 'GET', headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
GET /server/exclude_database/{sid}
Retrieve information for the excluded databases, identified by the server id.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
sid | path | string | true | Server ID |
X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
{ "server_id": 0, "name": "string", "exclude_databases": [ "string" ] }
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | ExcludeDatabases |
Info
This operation does not require authentication
put__server_exclude_database_{sid}
Code samples
# You can also use wget curl -X PUT https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.put('https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid}', headers = headers) print(r.json())
const inputBody = '{ "exclude_databases": [ "string" ] }'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid}', { method: 'PUT', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
PUT /server/exclude_database/{sid}
Update the excluded database information.
Body parameter
{ "exclude_databases": [ "string" ] }
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
sid | path | string | true | Server ID |
X-Auth-Token | header | string | true | Token of authorization |
body | body | ExcludeDatabasesPutData | true | none |
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Email group updated successfully | None |
Response Schema
Info
This operation does not require authentication
delete__server_exclude_database_{sid}
Code samples
# You can also use wget curl -X DELETE https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid} \ -H 'X-Auth-Token: string'
import requests headers = { 'X-Auth-Token': 'string' } r = requests.delete('https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid}', headers = headers) print(r.json())
const headers = { 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v12/server/exclude_database/{sid}', { method: 'DELETE', headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
DELETE /server/exclude_database/{sid}
Delete the excluded databases.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
sid | path | string | true | Server ID |
X-Auth-Token | header | string | true | Token of authorization |
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Excluded databases deleted successfully | None |
Response Schema
Info
This operation does not require authentication