EDB Postgres Enterprise Manager REST APIs v11.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/v11/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/v11/server/exclude_database/{sid}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v11/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

NameInTypeRequiredDescription
sidpathstringtrueServer ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "server_id": 0,
 "name": "string",
 "exclude_databases": [
 "string"
 ]
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200ExcludeDatabases
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/v11/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/v11/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/v11/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

NameInTypeRequiredDescription
sidpathstringtrueServer ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyExcludeDatabasesPutData truenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Email group updated successfullyNone

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/v11/server/exclude_database/{sid} \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'X-Auth-Token': 'string'
}
r = requests.delete('https://PEM-SERVER-IP/api/v11/server/exclude_database/{sid}', headers = headers)
print(r.json())
const headers = {
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v11/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

NameInTypeRequiredDescription
sidpathstringtrueServer ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Excluded databases deleted successfullyNone

Response Schema

Info

This operation does not require authentication