Copy Probe
==========

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

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/probe/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/probe/copy/agent/{agent_id}, headers = headers)

   print(r.json())

.. code:: javascript

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

   fetch(https://PEM-SERVER-IP/api/v14/probe/copy/agent/{agent_id},
   {
     method: POST,
     body: inputBody,
     headers: headers
   })
   .then(function(res) {
       return res.json();
   }).then(function(body) {
       console.log(body);
   });

``POST /probe/copy/agent/{agent_id}``

Copies agent-level probe to another agent.

**Body parameter**

.. code:: json

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

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:`CopyAgentData<CopyAgentData>` ,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\_\ *probe_copy_server*\ {server_id}
----------------------------------------

**Code samples**

.. code:: shell


   #  You can also use wget

   curl -X POST https://PEM-SERVER-IP/api/v14/probe/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/probe/copy/server/{server_id}, headers = headers)

   print(r.json())

.. code:: javascript

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

   fetch(https://PEM-SERVER-IP/api/v14/probe/copy/server/{server_id},
   {
     method: POST,
     body: inputBody,
     headers: headers
   })
   .then(function(res) {
       return res.json();
   }).then(function(body) {
       console.log(body);
   });

``POST /probe/copy/server/{server_id}``

Copies server-level probe to another server.

**Body parameter**

.. code:: json

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

.. _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:`CopyServerData<CopyServerData>` ,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\_\ *probe_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/probe/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/probe/copy/server/{server_id}/database/{database_name}, headers = headers)

   print(r.json())

.. code:: javascript

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

   fetch(https://PEM-SERVER-IP/api/v14/probe/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 /probe/copy/server/{server_id}/database/{database_name}``

Copies database-level probe to another database.

**Body parameter**

.. code:: json

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

.. _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:`CopyDatabaseData<CopyDatabaseData>` ,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\_\ *probe_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/probe/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/probe/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"
     }
   ];
   const headers = {
     Content-Type:application/json,
     X-Auth-Token:string
   };

   fetch(https://PEM-SERVER-IP/api/v14/probe/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 /probe/copy/server/{server_id}/database/{database_name}/schema/{schema_name}``

Copies schema-level probe to another schema.

**Body parameter**

.. code:: json

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

.. _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:`CopySchemaData<CopySchemaData>` ,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
