HTTP endpoints
Overview
This page lists HTTP endpoints available to Aerospike Graph Service (AGS).
For all HTTP endpoints, prefix the URL with /0 if the AGS server does
not use multi-tenant graph/3.0.0s.
For example, to call the usage endpoint
on an AGS server that does not use multi-tenant graphs, use the following
URL:
<IP ADDRESS>:9090/0/admin/metadata/usageFor the default graph with name graph, use the following URL:
<IP ADDRESS>:9090/0/admin/metadata/usageOn AGS servers that use multi-tenant graphs, prefix the URL with the name of
the desired graph. For a graph named myGraph, use the following URL:
<IP ADDRESS>:9090/myGraph/admin/metadata/usageMonitoring services
AGS provides HTTP endpoints for
monitoring services. Use the
aerospike.graph.http.port
configuration option to specify an HTTP port for the
Prometheus Exporter
and health check services.
| Service | Default path |
|---|---|
| Prometheus Exporter | /metrics |
| Health check | /healthcheck |
Gremlin call steps
All AGS Gremlin call steps are available as HTTP endpoints, with the exception of the bulk loader steps.
The prototype format of a call step HTTP endpoint is as follows:
<IP ADDRESS>:9090/0/admin/<call step type>/<call step>If key-value arguments are required, they follow the standard mechanism:
<IP ADDRESS>:9090/0/admin/<call step type>/<call step>?<key1>=<value1>&<key2>=<value2>Metadata
AGS metadata is available:
http://localhost:9090/0/admin/metadata/summaryhttp://localhost:9090/0/admin/metadata/confighttp://localhost:9090/0/admin/metadata/versionIndex management
You can perform index management using HTTP endpoints.
In the following example, the HTTP request creates a secondary index
called on the user-defined vertex location property:
http://localhost:9090/0/admin/index/create?property_key=location&element_type=vertexIn the following example, the HTTP request drops an index:
http://localhost:9090/0/admin/index/drop?property_key=location&element_type=vertexOther index operations are also available. See Indexing for more information about index management.