EDB Postgres Enterprise Manager REST APIs v8.0: Object v10.2

Object can be a pem-agent, a monitored server, or a database object (that is, a database, schema, table, index, sequence, function, or view).

get__server_group_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server_group/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server_group/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server_group/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server_group/

Get list of server group.

Returns a list of server group.

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken for authentication purpose

Example responses

200 Response
{
 "id": 0,
 "name": "string",
 "hidden": true
}

Responses

StatusMeaningDescriptionSchema
200OK Returns a list of server group.ServerGroupBodyGet
Info

This operation does not require authentication

post__server_group_

Code samples

# You can also use wget
curl -X POST https://PEM-SERVER-IP/api/v8/server_group/ \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Content-Type': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.post('https://PEM-SERVER-IP/api/v8/server_group/', headers = headers)
print(r.json())
const inputBody = '{
 "name": "string"
}';
const headers = {
 'Content-Type':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server_group/',
{
 method: 'POST',
 body: inputBody,
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

POST /server_group/

Add a new server group.

Body parameter

{
 "name": "string"
}

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyServerGroupBody truenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Status 200None

Response Schema

Info

This operation does not require authentication

get__server_group_{group_id}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server_group/{group_id} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server_group/{group_id}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server_group/{group_id}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server_group/{group_id}

Get server group by id.

Returns a server group.

Parameters

NameInTypeRequiredDescription
group_idpathintegertruenone
X-Auth-TokenheaderstringtrueToken for authentication purpose

Example responses

200 Response
{
 "id": 0,
 "name": "string",
 "hidden": true
}

Responses

StatusMeaningDescriptionSchema
200OK Successful responseServerGroupBodyGet
Info

This operation does not require authentication

put__server_group_{group_id}

Code samples

# You can also use wget
curl -X PUT https://PEM-SERVER-IP/api/v8/server_group/{group_id} \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Content-Type': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.put('https://PEM-SERVER-IP/api/v8/server_group/{group_id}', headers = headers)
print(r.json())
const inputBody = '{
 "name": "string"
}';
const headers = {
 'Content-Type':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server_group/{group_id}',
{
 method: 'PUT',
 body: inputBody,
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

PUT /server_group/{group_id}

Update a server group.

Body parameter

{
 "name": "string"
}

Parameters

NameInTypeRequiredDescription
group_idpathintegertruenone
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyServerGroupBody trueUpdated successfully

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Status 200None

Response Schema

Info

This operation does not require authentication

delete__server_group_{group_id}

Code samples

# You can also use wget
curl -X DELETE https://PEM-SERVER-IP/api/v8/server_group/{group_id} \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'X-Auth-Token': 'string'
}
r = requests.delete('https://PEM-SERVER-IP/api/v8/server_group/{group_id}', headers = headers)
print(r.json())
const headers = {
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server_group/{group_id}',
{
 method: 'DELETE',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

DELETE /server_group/{group_id}

Delete a server group.

Parameters

NameInTypeRequiredDescription
group_idpathintegertruenone
X-Auth-TokenheaderstringtrueToken for authentication purpose

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Status 200None

Response Schema

Info

This operation does not require authentication

get__agent_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/agent/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/agent/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/agent/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /agent/

Retrieve the pem-agent information.

Returns a list of information and status for the pem-agents visible to the user (represented by the token).

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken for authentication purpose

Example responses

200 Response
[
 {
 "id": 0,
 "name": "string",
 "version": "string",
 "active": true,
 "heartbeat_int": 0,
 "alert_blackout": true,
 "owner": "string",
 "team": "string",
 "gid": 0,
 "ignore_mnt_points": [
 "string"
 ]
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Returns a list of information and status about the pem-agents.Agents
Info

This operation does not require authentication

get__agent_{agent_id}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/agent/{agent_id} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/agent/{agent_id}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/agent/{agent_id}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /agent/{agent_id}

Retrieve information for an agent, identified by the agent_id.

Parameters

NameInTypeRequiredDescription
agent_idpathintegertruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "id": 0,
 "name": "string",
 "version": "string",
 "active": true,
 "heartbeat_int": 0,
 "alert_blackout": true,
 "owner": "string",
 "team": "string",
 "gid": 0,
 "ignore_mnt_points": [
 "string"
 ]
}

Responses

StatusMeaningDescriptionSchema
200OK Successful responseAgent
Info

This operation does not require authentication

put__agent_{agent_id}

Code samples

# You can also use wget
curl -X PUT https://PEM-SERVER-IP/api/v8/agent/{agent_id} \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Content-Type': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.put('https://PEM-SERVER-IP/api/v8/agent/{agent_id}', headers = headers)
print(r.json())
const inputBody = '{
 "name": "string",
 "heartbeat_int": 0,
 "alert_blackout": true,
 "team": "string",
 "gid": 0,
 "ignore_mnt_points": [
 "string"
 ]
}';
const headers = {
 'Content-Type':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/agent/{agent_id}',
{
 method: 'PUT',
 body: inputBody,
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

PUT /agent/{agent_id}

Update agent information.

Body parameter

{
 "name": "string",
 "heartbeat_int": 0,
 "alert_blackout": true,
 "team": "string",
 "gid": 0,
 "ignore_mnt_points": [
 "string"
 ]
}

Parameters

NameInTypeRequiredDescription
agent_idpathintegertruenone
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAgentBody truenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Updated successfullyNone

Response Schema

Info

This operation does not require authentication

delete__agent_{agent_id}

Code samples

# You can also use wget
curl -X DELETE https://PEM-SERVER-IP/api/v8/agent/{agent_id} \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'X-Auth-Token': 'string'
}
r = requests.delete('https://PEM-SERVER-IP/api/v8/agent/{agent_id}', headers = headers)
print(r.json())
const headers = {
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/agent/{agent_id}',
{
 method: 'DELETE',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

DELETE /agent/{agent_id}

Stop managing the agent by PEM.

Parameters

NameInTypeRequiredDescription
agent_idpathintegertruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Status 200None

Response Schema

Info

This operation does not require authentication

get__server_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/

Retrieval of the managed server list

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "id": 0,
 "name": "string",
 "host": "string",
 "port": 0,
 "database": "string",
 "ssl": 0,
 "serviceid": "string",
 "active": true,
 "alert_blackout": true,
 "owner": 0,
 "team": "string",
 "server_owner": "string",
 "is_remote_monitoring": true,
 "efm_cluster_name": "string",
 "efm_service_name": "string",
 "efm_installation_path": "string",
 "comment": "string",
 "username": "string",
 "gid": 0,
 "db_restriction": "string",
 "role": "string",
 "is_edb": true,
 "agent_id": 0,
 "asb_host": "string",
 "asb_port": 0,
 "asb_username": "string",
 "asb_database": "string",
 "asb_sslmode": "prefer",
 "asb_password": "string",
 "agent_allowtakeover": false,
 "agent_capability_list": [
 "string"
 ],
 "agent_description": "string",
 "fgcolor": "#000000",
 "bgcolor": "#FFFFFF",
 "sslcompression": false,
 "use_ssh_tunnel": false,
 "tunnel_host": "string",
 "tunnel_port": 22,
 "tunnel_username": "string",
 "tunnel_password": "string",
 "tunnel_authentication": false,
 "tunnel_identity_file": "string"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Server]falsenonenone
» idintegerfalsenoneServer ID.NOTE: This property is not applicable for a POST request.
» namestringfalsenoneServer name
» hoststringfalsenoneServer host
» portintegerfalsenoneServer port
» databasestringfalsenoneMaintenance databse
» sslintegerfalsenoneSSL mode
» serviceidstringfalsenoneServer service ID
» activebooleanfalsenoneDetermines whether the server is active.
» alert_blackoutbooleanfalsenoneDetermines whether the alerts on the server are blacked out.
» ownerintegerfalsenoneID of the owner who registered the server with PEM.
» teamstringfalsenoneDefines the role/username who can see server information.
» server_ownerstringfalsenoneName of the user who registered the server on the PEM database server.
» is_remote_monitoringbooleanfalsenoneDetermines whether this server is being monitored remotely (that is, the monitoring pemAgent does not reside on the same host as the monitored server).
» efm_cluster_namestringfalsenoneCluster name of EFM
» efm_service_namestringfalsenoneService name of EFM
» efm_installation_pathstringfalsenoneInstallation path of EFM
» commentstringfalsenoneDescription of the server
» usernamestringfalsenoneUsername for connecting the database server
» gidintegerfalsenoneID of the server group
» db_restrictionstringfalsenoneDatabase restriction SQL clause
» rolestringfalsenoneThe role the connection will use
» is_edbbooleanfalsenoneIs server an EDB Advanced Server?
» agent_idintegerfalsenoneAgent ID bound to the server
» asb_hoststringfalsenonePEM database host used by agent while creating PEM connection
» asb_portintegerfalsenonePEM database port used by agent while creating PEM connection
» asb_usernamestringfalsenonePEM database user name used by agent while creating PEM connection
» asb_databasestringfalsenonePEM database to which agent will connect
» asb_sslmodestringfalsenonePEM database SSL mode
» asb_passwordstringfalsenoneempty string
» agent_allowtakeoverbooleanfalsenoneSpecifies whether the server can be taken over by another agent.
» agent_capability_list[string]falsenoneArray of agent capabilities
» agent_descriptionstringfalsenoneAgent description
» fgcolorstringfalsenoneForeground color of server node in browser tree. Default is black( #000000)
» bgcolorstringfalsenoneBackground color of server node in browser tree. Default is white( #FFFFFF)
» sslcompressionbooleanfalsenoneDetermines whether data sent over SSL should be compressed.
» use_ssh_tunnelbooleanfalsenoneDetermines whether to use ssh tunnel.
» tunnel_hoststringfalsenoneTunnel host name
» tunnel_portintegerfalsenoneTunnel port number
» tunnel_usernamestringfalsenoneTunnel username
» tunnel_passwordstringfalsenoneTunnel password
» tunnel_authenticationbooleanfalsenoneDetermines whether to use tunnel authentication.
» tunnel_identity_filestringfalsenoneTunnel identity file used for authentication.
Enumerated Values
PropertyValue
asb_sslmodeprefer
asb_sslmodeallow
asb_sslmodedisable
asb_sslmoderequire
asb_sslmodeverify-ca
asb_sslmodeverify-full
Info

This operation does not require authentication

post__server_

Code samples

# You can also use wget
curl -X POST https://PEM-SERVER-IP/api/v8/server/ \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Content-Type': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.post('https://PEM-SERVER-IP/api/v8/server/', headers = headers)
print(r.json())
const inputBody = '{
 "name": "string",
 "host": "string",
 "port": 0,
 "database": "string",
 "ssl": 0,
 "serviceid": "string",
 "alert_blackout": true,
 "team": "string",
 "is_remote_monitoring": true,
 "efm_cluster_name": "string",
 "efm_service_name": "string",
 "efm_installation_path": "string",
 "comment": "string",
 "username": "string",
 "gid": 0,
 "hostaddr": "string",
 "db_restriction": "string",
 "role": "string",
 "agent_id": 0,
 "asb_host": "string",
 "asb_port": 0,
 "asb_username": "string",
 "asb_database": "string",
 "asb_sslmode": "prefer",
 "asb_password": "string",
 "agent_allowtakeover": false,
 "fgcolor": "#000000",
 "bgcolor": "#FFFFFF",
 "sslcompression": false,
 "use_ssh_tunnel": false,
 "tunnel_host": "string",
 "tunnel_port": 22,
 "tunnel_username": "string",
 "tunnel_password": "string",
 "tunnel_authentication": false,
 "tunnel_identity_file": "string"
}';
const headers = {
 'Content-Type':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/',
{
 method: 'POST',
 body: inputBody,
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

POST /server/

Add a new managed database server.

Body parameter

{
 "name": "string",
 "host": "string",
 "port": 0,
 "database": "string",
 "ssl": 0,
 "serviceid": "string",
 "alert_blackout": true,
 "team": "string",
 "is_remote_monitoring": true,
 "efm_cluster_name": "string",
 "efm_service_name": "string",
 "efm_installation_path": "string",
 "comment": "string",
 "username": "string",
 "gid": 0,
 "hostaddr": "string",
 "db_restriction": "string",
 "role": "string",
 "agent_id": 0,
 "asb_host": "string",
 "asb_port": 0,
 "asb_username": "string",
 "asb_database": "string",
 "asb_sslmode": "prefer",
 "asb_password": "string",
 "agent_allowtakeover": false,
 "fgcolor": "#000000",
 "bgcolor": "#FFFFFF",
 "sslcompression": false,
 "use_ssh_tunnel": false,
 "tunnel_host": "string",
 "tunnel_port": 22,
 "tunnel_username": "string",
 "tunnel_password": "string",
 "tunnel_authentication": false,
 "tunnel_identity_file": "string"
}

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyServerBody truenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Status 200None

Response Schema

Info

This operation does not require authentication

get__server_{server_id}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{server_id} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{server_id}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{server_id}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{server_id}

Retrieve the information for the server, identified by the server_id.

Parameters

NameInTypeRequiredDescription
server_idpathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "id": 0,
 "name": "string",
 "host": "string",
 "port": 0,
 "database": "string",
 "ssl": 0,
 "serviceid": "string",
 "active": true,
 "alert_blackout": true,
 "owner": 0,
 "team": "string",
 "server_owner": "string",
 "is_remote_monitoring": true,
 "efm_cluster_name": "string",
 "efm_service_name": "string",
 "efm_installation_path": "string",
 "comment": "string",
 "username": "string",
 "gid": 0,
 "db_restriction": "string",
 "role": "string",
 "is_edb": true,
 "agent_id": 0,
 "asb_host": "string",
 "asb_port": 0,
 "asb_username": "string",
 "asb_database": "string",
 "asb_sslmode": "prefer",
 "asb_password": "string",
 "agent_allowtakeover": false,
 "agent_capability_list": [
 "string"
 ],
 "agent_description": "string",
 "fgcolor": "#000000",
 "bgcolor": "#FFFFFF",
 "sslcompression": false,
 "use_ssh_tunnel": false,
 "tunnel_host": "string",
 "tunnel_port": 22,
 "tunnel_username": "string",
 "tunnel_password": "string",
 "tunnel_authentication": false,
 "tunnel_identity_file": "string"
}

Responses

StatusMeaningDescriptionSchema
200OK Created successfullyServer
Info

This operation does not require authentication

put__server_{server_id}

Code samples

# You can also use wget
curl -X PUT https://PEM-SERVER-IP/api/v8/server/{server_id} \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Content-Type': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.put('https://PEM-SERVER-IP/api/v8/server/{server_id}', headers = headers)
print(r.json())
const inputBody = '{
 "name": "string",
 "host": "string",
 "port": 0,
 "database": "string",
 "ssl": 0,
 "serviceid": "string",
 "alert_blackout": true,
 "team": "string",
 "is_remote_monitoring": true,
 "efm_cluster_name": "string",
 "efm_service_name": "string",
 "efm_installation_path": "string",
 "comment": "string",
 "username": "string",
 "gid": 0,
 "hostaddr": "string",
 "db_restriction": "string",
 "role": "string",
 "agent_id": 0,
 "asb_host": "string",
 "asb_port": 0,
 "asb_username": "string",
 "asb_database": "string",
 "asb_sslmode": "prefer",
 "asb_password": "string",
 "agent_allowtakeover": false,
 "fgcolor": "#000000",
 "bgcolor": "#FFFFFF",
 "sslcompression": false,
 "use_ssh_tunnel": false,
 "tunnel_host": "string",
 "tunnel_port": 22,
 "tunnel_username": "string",
 "tunnel_password": "string",
 "tunnel_authentication": false,
 "tunnel_identity_file": "string"
}';
const headers = {
 'Content-Type':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{server_id}',
{
 method: 'PUT',
 body: inputBody,
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

PUT /server/{server_id}

Update the server information.

Body parameter

{
 "name": "string",
 "host": "string",
 "port": 0,
 "database": "string",
 "ssl": 0,
 "serviceid": "string",
 "alert_blackout": true,
 "team": "string",
 "is_remote_monitoring": true,
 "efm_cluster_name": "string",
 "efm_service_name": "string",
 "efm_installation_path": "string",
 "comment": "string",
 "username": "string",
 "gid": 0,
 "hostaddr": "string",
 "db_restriction": "string",
 "role": "string",
 "agent_id": 0,
 "asb_host": "string",
 "asb_port": 0,
 "asb_username": "string",
 "asb_database": "string",
 "asb_sslmode": "prefer",
 "asb_password": "string",
 "agent_allowtakeover": false,
 "fgcolor": "#000000",
 "bgcolor": "#FFFFFF",
 "sslcompression": false,
 "use_ssh_tunnel": false,
 "tunnel_host": "string",
 "tunnel_port": 22,
 "tunnel_username": "string",
 "tunnel_password": "string",
 "tunnel_authentication": false,
 "tunnel_identity_file": "string"
}

Parameters

NameInTypeRequiredDescription
server_idpathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyServerBody truenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Updated successfully.None

Response Schema

Info

This operation does not require authentication

delete__server_{server_id}

Code samples

# You can also use wget
curl -X DELETE https://PEM-SERVER-IP/api/v8/server/{server_id} \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'X-Auth-Token': 'string'
}
r = requests.delete('https://PEM-SERVER-IP/api/v8/server/{server_id}', headers = headers)
print(r.json())
const headers = {
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{server_id}',
{
 method: 'DELETE',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

DELETE /server/{server_id}

Stop managing the server by PEM.

Parameters

NameInTypeRequiredDescription
server_idpathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OK Status 200None

Response Schema

Info

This operation does not require authentication

get__server_{sid}_database_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/

Retrieve the list of properties of database(s) for a managed server.

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization
sidpathintegertrueServer ID

Example responses

200 Response
[
 {
 "database_name": "string",
 "connections_allowed": true,
 "system_database": true,
 "recorded_time": "2019年08月24日T14:15:22Z",
 "encoding": "string",
 "server_id": 0
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Database]falsenonenone
» database_namestringfalsenoneDatabase name
» connections_allowedbooleanfalsenoneDetermines whether a connection to the database is allowed.
» system_databasebooleanfalsenoneDetermines whether the database is a system database.
» recorded_timestring(date-time)falsenoneSpecifies when the database was first detected by the PEM agent.
» encodingstringfalsenoneDatabase encoding
» server_idintegerfalsenoneServer ID of database
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}

Retrieve the properties of a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "database_name": "string",
 "connections_allowed": true,
 "system_database": true,
 "recorded_time": "2019年08月24日T14:15:22Z",
 "encoding": "string",
 "server_id": 0
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200Database
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/

Retrieve the list of properties of schema(s) for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "2019年08月24日T14:15:22Z"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Schema]falsenonenone
» schema_namestringfalsenoneSchema name
» database_namestringfalsenoneDatabase name of schema
» server_idintegerfalsenoneServer ID schema
» recorded_timestring(date-time)falsenoneSpecifies when schema was first detected by PEM agent.
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}

Retrieve the properties of schema(s) for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "2019年08月24日T14:15:22Z"
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200Schema
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_table_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/table/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/table/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/table/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/table/

Retrieve the list of properties of tables residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "table_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "has_primary_key": true,
 "recorded_time": "string"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Table]falsenonenone
» table_namestringfalsenoneTable name
» schema_namestringfalsenoneSchema name
» database_namestringfalsenoneDatabase name
» server_idintegerfalsenoneServer ID
» has_primary_keybooleanfalsenoneDetermines whether table has a primary key.
» recorded_timestringfalsenoneSpecifies when table was first detected by the PEM agent.
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_table_{table_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/table/{table_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/table/{table_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/table/{table_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/table/{table_name}

Retrieve the properties of tables residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
table_namepathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "table_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "has_primary_key": true,
 "recorded_time": "string"
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200Table
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_index_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/index/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/index/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/index/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/index/

Retrieve the list of properties of indexes residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "index_name": "string",
 "ind_keys": [
 0
 ],
 "table_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "string"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Index]falsenonenone
» index_namestringfalsenoneIndex name
» ind_keys[integer]falsenoneIndexed column positions in table
» table_namestringfalsenoneTable name
» schema_namestringfalsenoneSchema
» database_namestringfalsenoneDatabase name
» server_idintegerfalsenoneServer ID
» recorded_timestringfalsenoneSpecifies when index was first detected by PEM agent.
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_index_{index_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/index/{index_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/index/{index_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/index/{index_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/index/{index_name}

Retrieve the properties of indexes residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
index_namepathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "index_name": "string",
 "ind_keys": [
 0
 ],
 "table_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "string"
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200Index
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_sequence_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/sequence/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/sequence/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/sequence/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/sequence/

Retrieve the list of properties of sequences residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "sequence_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "2019年08月24日T14:15:22Z"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Sequence]falsenonenone
» sequence_namestringfalsenoneSequence name
» schema_namestringfalsenoneSchema name
» database_namestringfalsenoneDatabase name
» server_idintegerfalsenoneServer ID
» recorded_timestring(date-time)falsenoneSpecifies when sequence was first detected by PEM agent.
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_sequence_{sequence_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/sequence/{sequence_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/sequence/{sequence_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/sequence/{sequence_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/sequence/{sequence_name}

Retrieve the properties of sequences residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
sequence_namepathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "sequence_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "2019年08月24日T14:15:22Z"
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200Sequence
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_view_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/view/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/view/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/view/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/view/

Retrieve the list of properties of views residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "view_name": "string",
 "view_type": "string",
 "ispopulated": true,
 "view_owner": "string",
 "definition": "string",
 "tablespace_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "string"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[View]falsenonenone
» view_namestringfalsenoneView name
» view_typestringfalsenoneView type
» ispopulatedbooleanfalsenoneDetermines whether the view is populated.
» view_ownerstringfalsenoneView owner
» definitionstringfalsenoneView definition
» tablespace_namestringfalsenoneView tablespace
» schema_namestringfalsenoneView schema
» database_namestringfalsenoneView database
» server_idintegerfalsenoneView server ID
» recorded_timestringfalsenoneSpecifies when view was first detected by PEM agent.
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_view_{view_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/view/{view_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/view/{view_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/view/{view_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/view/{view_name}

Retrieve the properties of views residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
view_namepathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "view_name": "string",
 "view_type": "string",
 "ispopulated": true,
 "view_owner": "string",
 "definition": "string",
 "tablespace_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "string"
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200View
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_function_

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/function/ \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/function/', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/function/',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/function/

Retrieve the list of properties of functions residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
 {
 "function_name": "string",
 "function_type": "string",
 "return_type": "string",
 "arg_types": [
 "string"
 ],
 "function_binary": "string",
 "extension_name": "string",
 "package_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "2019年08月24日T14:15:22Z"
 }
]

Responses

StatusMeaningDescriptionSchema
200OK Status 200Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Function]falsenonenone
» function_namestringfalsenoneFunction name
» function_typestringfalsenoneFunction type
» return_typestringfalsenoneFunction return type
» arg_types[string]falsenoneFunction argument types
» function_binarystringfalsenonenone
» extension_namestringfalsenonenone
» package_namestringfalsenoneFunction package name
» schema_namestringfalsenoneFunction schema
» database_namestringfalsenoneFunction database name
» server_idintegerfalsenoneFunction server id
» recorded_timestring(date-time)falsenoneSpecifies when function was first detected by PEM agent.
Info

This operation does not require authentication

get__server_{sid}_database_{db_name}_schema_{schema_name}_function_{function_name}

Code samples

# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/function/{function_name} \
 -H 'Accept: application/json' \
 -H 'X-Auth-Token: string'
import requests
headers = {
 'Accept': 'application/json',
 'X-Auth-Token': 'string'
}
r = requests.get('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/function/{function_name}', headers = headers)
print(r.json())
const headers = {
 'Accept':'application/json',
 'X-Auth-Token':'string'
};
fetch('https://PEM-SERVER-IP/api/v8/server/{sid}/database/{db_name}/schema/{schema_name}/function/{function_name}',
{
 method: 'GET',
 headers: headers
})
.then(function(res) {
 return res.json();
}).then(function(body) {
 console.log(body);
});

GET /server/{sid}/database/{db_name}/schema/{schema_name}/function/{function_name}

Retrieve the properties of functions residing in a schema for a particular database of a managed server.

Parameters

NameInTypeRequiredDescription
sidpathintegertrueServer ID
db_namepathstringtrueDatabase name
schema_namepathstringtrueSchema name
function_namepathstringtruenone
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
 "function_name": "string",
 "function_type": "string",
 "return_type": "string",
 "arg_types": [
 "string"
 ],
 "function_binary": "string",
 "extension_name": "string",
 "package_name": "string",
 "schema_name": "string",
 "database_name": "string",
 "server_id": 0,
 "recorded_time": "2019年08月24日T14:15:22Z"
}

Responses

StatusMeaningDescriptionSchema
200OK Status 200Function
Info

This operation does not require authentication