EDB Postgres Enterprise Manager REST APIs v1.0: Copy Probe v10.2
post__probe_copy_agent_{agent_id}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v1/probe/copy/agent/{agent_id} \ -H 'Content-Type: application/json'
import requests headers = { 'Content-Type': 'application/json' } r = requests.post('https://PEM-SERVER-IP/api/v1/probe/copy/agent/{agent_id}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "agent_id": 0 } ]'; const headers = { 'Content-Type':'application/json' }; fetch('https://PEM-SERVER-IP/api/v1/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}
Copy Agent level probe to another agent
Body parameter
[ { "type": "string", "agent_id": 0 } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
agent_id | path | integer | true | Agent ID |
body | body | CopyAgentData | 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__probe_copy_server_{server_id}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v1/probe/copy/server/{server_id} \ -H 'Content-Type: application/json'
import requests headers = { 'Content-Type': 'application/json' } r = requests.post('https://PEM-SERVER-IP/api/v1/probe/copy/server/{server_id}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0 } ]'; const headers = { 'Content-Type':'application/json' }; fetch('https://PEM-SERVER-IP/api/v1/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}
Copy Server level probe to another server
Body parameter
[ { "type": "string", "server_id": 0 } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
body | body | CopyServerData | 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__probe_copy_server_{server_id}_database_{database_name}
Code samples
# You can also use wget curl -X POST https://PEM-SERVER-IP/api/v1/probe/copy/server/{server_id}/database/{database_name} \ -H 'Content-Type: application/json'
import requests headers = { 'Content-Type': 'application/json' } r = requests.post('https://PEM-SERVER-IP/api/v1/probe/copy/server/{server_id}/database/{database_name}', headers = headers) print(r.json())
const inputBody = '[ { "type": "string", "server_id": 0, "database_name": "string" } ]'; const headers = { 'Content-Type':'application/json' }; fetch('https://PEM-SERVER-IP/api/v1/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}
Copy Database level probe to another database
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string" } ]
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Server ID |
database_name | path | string | true | Database Name |
body | body | CopyDatabaseData | 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__probe_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/v1/probe/copy/server/{server_id}/database/{database_name}/schema/{schema_name} \ -H 'Content-Type: application/json'
import requests headers = { 'Content-Type': 'application/json' } r = requests.post('https://PEM-SERVER-IP/api/v1/probe/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" } ]'; const headers = { 'Content-Type':'application/json' }; fetch('https://PEM-SERVER-IP/api/v1/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}
Copy Schame level probe to another schema
Body parameter
[ { "type": "string", "server_id": 0, "database_name": "string", "schema_name": "string" } ]
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 |
body | body | CopySchemaData | 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