Copy Alert
==========

post\_\ *alert_copy_agent*\ {agent_id}
--------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/agent/{agent_id} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/agent/{agent_id}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "agent_id": 0,
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies agent level alert to another agent.

**Body parameter**

.. code:: json

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

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  agent_id,path,integer,true,Agent ID
  X-Auth-Token,header,string,true,Token of authorization
  body,body,:ref:`CopyAlertAgentData<CopyAlertAgentData>` ,true,none

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘agent’

**Example responses**

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication

post\_\ *alert_copy_server*\ {server_id}
----------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies server-level alert to another server.

**Body parameter**

.. code:: json

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

.. _parameters-1:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  server_id,path,integer,true,Server ID
  X-Auth-Token,header,string,true,Token of authorization
  body,body,:ref:`CopyAlertServerData<CopyAlertServerData>` ,true,none

.. _detailed-descriptions-1:

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘server’

**Example responses**

.. _responses-1:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-1:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication

post\_\ *alert_copy_server*\ {server_id}\ *database*\ {database_name}
---------------------------------------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "database_name": "string",
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies database-level alert to another database.

**Body parameter**

.. code:: json

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

.. _parameters-2:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  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,:ref:`CopyAlertDatabaseData<CopyAlertDatabaseData>` ,true,none

.. _detailed-descriptions-2:

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘database’

**Example responses**

.. _responses-2:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-2:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication

post\_\ *alert_copy_server*\ {server_id}\ *database*\ {database_name}\ *schema*\ {schema_name}
----------------------------------------------------------------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "database_name": "string",
       "schema_name": "string",
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies schema-level alert to another schema.

**Body parameter**

.. code:: json

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

.. _parameters-3:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  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,:ref:`CopyAlertSchemaData<CopyAlertSchemaData>` ,true,none

.. _detailed-descriptions-3:

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘schema’

**Example responses**

.. _responses-3:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-3:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication

post\_\ *alert_copy_server*\ {server_id}\ *database*\ {database_name}\ *schema*\ {schema_name}\ *table*\ {table_name}
---------------------------------------------------------------------------------------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "database_name": "string",
       "schema_name": "string",
       "table_name": "string",
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies table-level alert to another table.

**Body parameter**

.. code:: json

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

.. _parameters-4:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  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,:ref:`CopyAlertTableData<CopyAlertTableData>` ,true,none

.. _detailed-descriptions-4:

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘table’

**Example responses**

.. _responses-4:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-4:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication

post\_\ *alert_copy_server*\ {server_id}\ *database*\ {database_name}\ *schema*\ {schema_name}\ *index*\ {index_name}
---------------------------------------------------------------------------------------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "database_name": "string",
       "schema_name": "string",
       "index_name": "string",
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies index-level alert to another index.

**Body parameter**

.. code:: json

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

.. _parameters-5:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  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,:ref:`CopyAlertIndexData<CopyAlertIndexData>` ,true,none

.. _detailed-descriptions-5:

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘index’

**Example responses**

.. _responses-5:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-5:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   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**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/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

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "database_name": "string",
       "schema_name": "string",
       "function_name": "string",
       "function_arguments": "string",
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies function-level alert to another function.

**Body parameter**

.. code:: json

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

.. _parameters-6:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  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,true,Comma-separated list of function arguments.
  X-Auth-Token,header,string,true,Token of authorization
  body,body,:ref:`CopyAlertFunctionData<CopyAlertFunctionData>` ,true,none

.. _detailed-descriptions-6:

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-6:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-6:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication

post\_\ *alert_copy_server*\ {server_id}\ *database*\ {database_name}\ *schema*\ {schema_name}\ *sequence*\ {sequence_name}
---------------------------------------------------------------------------------------------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name} \
     -H Content-Type: application/json \
     -H X-Auth-Token: string

.. code:: python

   import requests
   headers = {
     Content-Type: application/json,
     X-Auth-Token: string
   }

   r = requests.post(https://PEM-SERVER-IP/api/v14/alert/copy/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}, headers = headers)

   print(r.json())

.. code:: javascript

   const inputBody = [
     {
       "type": "string",
       "server_id": 0,
       "database_name": "string",
       "schema_name": "string",
       "sequence_name": "string",
       "existing_alert_options": "I"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/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}``

Copies sequence-level alert to another sequence.

**Body parameter**

.. code:: json

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

.. _parameters-7:

Parameters
^^^^^^^^^^

.. csv-table::
  :header: Name,In,Type,Required,Description
  :widths: 11,7,7,7,17
  :align: left
  :class: longtable

  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,:ref:`CopyAlertSequenceData<CopyAlertSequenceData>` ,true,none

.. _detailed-descriptions-7:

Detailed descriptions
'''''''''''''''''''''

**body**: NOTE:

- **type** value must be ‘sequence’

**Example responses**

.. _responses-7:

Responses
^^^^^^^^^

.. csv-table::
  :header: Status,Meaning,Description,Schema
  :widths: 15,12,12,20
  :align: left
  :class: longtable

  200,:ref:`Invoking the server installer from the command line<Invoking the server installer from the command line>` ,Status 200,None

.. _response-schema-7:

Response Schema
^^^^^^^^^^^^^^^

..  Note::
   This operation does not require authentication
