EDB Postgres Enterprise Manager REST APIs v5.0: Copy Alert v10.2
post__alert_copy_agent_{agent_id}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/agent/{agent_id} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/agent/{agent_id}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "agent_id": 0, "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/agent/{agent_id}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/agent/{agent_id}
Copy agent level alert to another agent
Body parameter
[ { "type": "string", "agent_id": 0, "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
agent_id | path | integer | true | Agent ID |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertAgentData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'agent'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}
Copy server level alert to another server
Body parameter
[ { "type": "string", "server_id": 0, "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertServerData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'server'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}_database_{database_name}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string", "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}/database/{database_name}
Copy database level alert to another database
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertDatabaseData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'database'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}
Copy schema level alert to another schema
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
schema_name | path | string | true | Schema Name |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertSchemaData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'schema'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "table_name": "string", "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}
Copy table level alert to another table
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "table_name": "string", "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
schema_name | path | string | true | Schema Name |
table_name | path | string | true | Table Name |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertTableData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'table'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "index_name": "string", "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}
Copy index level alert to another index
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "index_name": "string", "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
schema_name | path | string | true | Schema Name |
index_name | path | string | true | Index Name |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertIndexData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'index'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "function_name": "string", "function_arguments": "string", "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}
Copy function level alert to another function
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "function_name": "string", "function_arguments": "string", "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
schema_name | path | string | true | Schema Name |
function_name | path | string | true | Function Name |
function_arguments | path | string | false | Comma-separated list of function arguments. |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertFunctionData | true | none |
Detailed descriptions
function_arguments: Comma-separated list of function arguments.
Eg: ag_id integer,srv_id integer
body: NOTE:
- type value must be 'function'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name} \ -H 'Content-Type: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Content-Type': 'application/json', 'X-Auth-Token': 'string' } r = requests.post('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "sequence_name": "string", "ignore_duplicate_alerts": true } ]'; const headers = { 'Content-Type':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v5/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}', { method: 'POST', body: inputBody, headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
POST /alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}
Copy sequence level alert to another sequence
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string", "sequence_name": "string", "ignore_duplicate_alerts": true } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
schema_name | path | string | true | Schema Name |
sequence_name | path | string | true | Sequence Name |
X-Auth-Token | header | string | true | Token of authorization |
body | body | CopyAlertSequenceData | true | none |
Detailed descriptions
body: NOTE:
- type value must be 'sequence'
Example responses
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Status 200 | None |
Response Schema
Info
This operation does not require authentication
- On this page
- post__alert_copy_agent_{agent_id}
- post__alert_copy_server_{server_id}
- post__alert_copy_server_{server_id}_database_{database_name}
- post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}
- post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}
- post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}
- post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}
- post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}