EDB Postgres Enterprise Manager REST APIs v1.0: Copy Alert v10.2

post__alert_copy_agent_{agent_id}

Code samples

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

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
bodybodyCopyAlertAgentDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'agent'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

post__alert_copy_server_{server_id}

Code samples

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
bodybodyCopyAlertServerDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'server'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

post__alert_copy_server_{server_id}_database_{database_name}

Code samples

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
bodybodyCopyAlertDatabaseDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'database'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

post__alert_copy_server_{server_id}_database_{database_name}_schema_{schema_name}

Code samples

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
bodybodyCopyAlertSchemaDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'schema'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

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

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
table_namepathstringtrueTable Name
bodybodyCopyAlertTableDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'table'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

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

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
index_namepathstringtrueIndex Name
bodybodyCopyAlertIndexDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'index'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

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

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
function_namepathstringtrueFunction Name
function_argumentspathstringtrueFunction arguments comma separated
bodybodyCopyAlertFunctionDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'function'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

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

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

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
sequence_namepathstringtrueSequence Name
bodybodyCopyAlertSequenceDatatruenone
Detailed descriptions

body: NOTE:

  • type value must be 'sequence'

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication