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

post__alert_copy_agent_{agent_id}

Code samples

POST /alert/copy/agent/{agent_id}

Copies agent level alert to another agent.

Body parameter

[
  {
    "type": "string",
    "agent_id": 0,
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
X-Auth-TokenheaderstringtrueToken of authorization
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}

Copies server-level alert to another server.

Body parameter

[
  {
    "type": "string",
    "server_id": 0,
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
X-Auth-TokenheaderstringtrueToken of authorization
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}

Copies database-level alert to another database.

Body parameter

[
  {
    "type": "string",
    "server_id": 0,
    "database_name": "string",
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase name
X-Auth-TokenheaderstringtrueToken of authorization
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}

Copies schema-level alert to another schema.

Body parameter

[
  {
    "type": "string",
    "server_id": 0,
    "database_name": "string",
    "schema_name": "string",
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization
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}

Copies table-level alert to another table.

Body parameter

[
  {
    "type": "string",
    "server_id": 0,
    "database_name": "string",
    "schema_name": "string",
    "table_name": "string",
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
table_namepathstringtrueTable name
X-Auth-TokenheaderstringtrueToken of authorization
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}

Copies index-level alert to another index.

Body parameter

[
  {
    "type": "string",
    "server_id": 0,
    "database_name": "string",
    "schema_name": "string",
    "index_name": "string",
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
index_namepathstringtrueIndex name
X-Auth-TokenheaderstringtrueToken of authorization
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}

Copies 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",
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
function_namepathstringtrueFunction name
function_argumentspathstringtrueComma-separated list of function arguments.
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyCopyAlertFunctionDatatruenone
Detailed descriptions

function_arguments: Comma-separated list of function arguments.

Note: Provide space if no function argument

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}

Copies sequence-level alert to another sequence.

Body parameter

[
  {
    "type": "string",
    "server_id": 0,
    "database_name": "string",
    "schema_name": "string",
    "sequence_name": "string",
    "existing_alert_options": "I"
  }
]

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
sequence_namepathstringtrueSequence name
X-Auth-TokenheaderstringtrueToken of authorization
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