NeptuneData / Client / get_engine_status
get_engine_status#
- NeptuneData.Client.get_engine_status()#
Retrieves the status of the graph database on the host.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetEngineStatus IAM action in that cluster.
See also: AWS API Documentation
Request Syntax
response = client.get_engine_status()
- Return type:
dict
- Returns:
Response Syntax
{ 'status': 'string', 'startTime': 'string', 'dbEngineVersion': 'string', 'role': 'string', 'dfeQueryEngine': 'string', 'gremlin': { 'version': 'string' }, 'sparql': { 'version': 'string' }, 'opencypher': { 'version': 'string' }, 'labMode': { 'string': 'string' }, 'rollingBackTrxCount': 123, 'rollingBackTrxEarliestStartTime': 'string', 'features': { 'string': {...}|[...]|123|123.4|'string'|True|None }, 'settings': { 'string': 'string' } }
Response Structure
(dict) –
status (string) –
Set to
healthy
if the instance is not experiencing problems. If the instance is recovering from a crash or from being rebooted and there are active transactions running from the latest server shutdown, status is set torecovery
.startTime (string) –
Set to the UTC time at which the current server process started.
dbEngineVersion (string) –
Set to the Neptune engine version running on your DB cluster. If this engine version has been manually patched since it was released, the version number is prefixed by
Patch-
.role (string) –
Set to
reader
if the instance is a read-replica, or towriter
if the instance is the primary instance.dfeQueryEngine (string) –
Set to
enabled
if the DFE engine is fully enabled, or toviaQueryHint
(the default) if the DFE engine is only used with queries that have theuseDFE
query hint set totrue
.gremlin (dict) –
Contains information about the Gremlin query language available on your cluster. Specifically, it contains a version field that specifies the current TinkerPop version being used by the engine.
version (string) –
The version of the query language.
sparql (dict) –
Contains information about the SPARQL query language available on your cluster. Specifically, it contains a version field that specifies the current SPARQL version being used by the engine.
version (string) –
The version of the query language.
opencypher (dict) –
Contains information about the openCypher query language available on your cluster. Specifically, it contains a version field that specifies the current operCypher version being used by the engine.
version (string) –
The version of the query language.
labMode (dict) –
Contains Lab Mode settings being used by the engine.
(string) –
(string) –
rollingBackTrxCount (integer) –
If there are transactions being rolled back, this field is set to the number of such transactions. If there are none, the field doesn’t appear at all.
rollingBackTrxEarliestStartTime (string) –
Set to the start time of the earliest transaction being rolled back. If no transactions are being rolled back, the field doesn’t appear at all.
features (dict) –
Contains status information about the features enabled on your DB cluster.
(string) –
(document) –
settings (dict) –
Contains information about the current settings on your DB cluster. For example, contains the current cluster query timeout setting (
clusterQueryTimeoutInMs
).(string) –
(string) –
Exceptions
NeptuneData.Client.exceptions.UnsupportedOperationException
NeptuneData.Client.exceptions.InternalFailureException
NeptuneData.Client.exceptions.ClientTimeoutException
NeptuneData.Client.exceptions.PreconditionsFailedException
NeptuneData.Client.exceptions.ConstraintViolationException
NeptuneData.Client.exceptions.InvalidArgumentException
NeptuneData.Client.exceptions.IllegalArgumentException
NeptuneData.Client.exceptions.TooManyRequestsException