GET /echo
and POST /echo
GET /echo
or POST /echo
require authentication, even when RESTPP authentication is enabled.POST /echo
has the same response as GET /echo
.sleep
GET /api/ping
GET /endpoints/{graph_name}
true
. If no type parameters are provided, all endpoints are returned.builtin
dynamic
static
GET /version
POST /ts3/api/datapoints
when
, from
, and to
), component(who
), metric(what
) and location(where
). Visualization of such metrics are available in Admin Portal - Dashboard - Cluster Monitoring.m1
node.from
to
latest
what
, who
and where
filters and ignore other time-related filters.what
cpu
: Percentage of CPU usage by componentmem
: Memory usage in megabytes by componentdiskspace
: Disk usage in megabytes by directorynetwork
: Network traffic in bytes since the service startedqps
: Number of requests per second by endpointservicestate
: Whether or not the service is online. A value of 0
indicates that the service is offline while a value of 1
means the service is onlineconnection
: Number of open TCP connectionswho
where
1618957536
and ending at 1619023346
, and specifying that the response should only include CPU information:GET /statistics/{graph_name}
seconds
** **parameter. The seconds
parameter must be a positive integer less than or equal to 60.CompletedRequests
- the number of completed requests.QPS
- query per second.TimeoutRequests
- the number of requests not returning before the system-configured timeout limit. Timeout requests are not included in the calculation of QPS.AverageLatency
- the average latency of completed requests.MaxLatency
- the maximum latency of completed requests.MinLatency
- the minimum latency of completed requests.LatencyPercentile
- The latency distribution. The number of elements in this array depends on the segments
** parameter of this endpoint whose default value is 10, meaning the percentile range 0-100% will be divided into ten equal segments: 0%-10%, 11%-20%, etc.Segments
**must be [1, 100].seconds
segments
LatencyPercentile
array in the response will be split into. The value for this endpoint must be between 1 and 100 and has a default value of 10.GET /rebuildnow/{graph_name}
or POST /rebuildnow/{graph_name}
threadnum
.tg.cfg
file ("RebuildThreadNumber"
) in the home directory of the server on which TigerGraph is running will be used; it is set to 3 by default.lscpu
in the command line of your Linux server and look in the CPU(s)
column to view the number of vCPUs.vertextype
segid
path
/tmp/rebuildnow
force
force
is set true, the segments will not be skipped.GET /deleted_vertex_check
threadnum
segid
vertextype
verbose
0
(default) : Only return whether the check passed and the list of unsynced vertex IDs1
: In addition to the previous level, also return vertex count information2
: In addition to the previous level, return vertex count information for every segment4
: In addition to the previous level, also return the IDs of deleted vertices for every segmentlog
/tigergraph/log/gpe/log.INFO
:0
(default): Report brief log for the check as a whole1
: Report logs for each segment2
: Report additional logs on the obtained deleted ID listGET
)GET /requesttoken
secret
graph
is not suppliedlifetime
graph
secret
is not suppliedsecret
or their username and password to generate a token. If the user does not supply a secret and chooses to use their username and password instead, then the parameter graph
becomes required.POST
)POST /requesttoken
path_to_secret
with the path to the file containing your secret. The file should only include a single line, which is your secret.lifetime
graph
PUT /requesttoken
token
secret
lifetime
DELETE /requesttoken
token
secret
POST /ddl/{graph_name}
LOAD
statements referencing filename variables that the request didn't provide data for. To provide data for a filename variable, put the data in the request body and use the filename
parameter (explained in the parameter table below) to match the variable name defined in the loading job.LOAD
statement is written using a filepath string instead of a file variable, even though the filepath is already provided in the loading job, you still need to provide data in the request body for the LOAD
statement to run. Since there isn't a file variable in this case, use a position-based file identifier to identify the filepath string you are providing data for in the filename
parameter.curl -X POST --data-binary @./company.csv "http://…"
f1
and f3
) and one filepath string. Therefore, three HTTP requests are needed to complete the loading job.tag
filename
sep
","
eol
"\n"
ack
"all"
: request will return after all GPE instances have acknowledged the POST
request.
"none"
: request will return immediately after RESTPP processed the POST
request.timeout
concise
eol
or sep
parameter.Nginx.ClientMaxBodySize
configuration parameter (default is 200 MB).POST /builtins/{graph_name}
stat_vertex_attr
int
, uint
, float
and double
attributes, and the count of true
and false
of a boolean attribute."function": "stat_vertex_attr"
: This specifies that the function to run isstat_vertex_attr
."type"
: The vertex type whose attribute values to report on. Required field. It also accepts the value *
(wild card), in which case, all vertex types are included.stat_edge_attr
int
, uint
, float
and double
attributes, and the count of true
and false
of a boolean attribute."function": stat_edge_attr
"type"
: The edge type whose attribute values to report on. Required field. It also accepts the value *
, in which case all edge types are included."from_type"
: Optional. The source vertex type of the edges to report on."to_type"
: Optional. The target vertex type of the edges to report on.stat_vertex_number
"function"
: "stat_vertex_number"
"type"
: Required field. The vertex type of the vertices to count. It also accepts the value *
(wild card), in which case, all vertex types are included.stat_edge_number
"function": "stat_edge_number"
"type"
: Required field. The edge type of the edges to count. It also accepts the value *
, in which case all edge types are included."from_type"
: Optional. The source vertex type of the edges to report on."to_type"
: Optional. The target vertex type of the edges to report on.stat_vertex_attr
on socialNet
and its output. The vertex type "Person"
has a uint
attribute "age"
.stat_edge_attr
on socialNet
and its output. The edge type "Liked"
has a float attribute "strength"
.stat_vertex_number
and its output.GET /gsqlserver/gsql/schema
Name
: the vertex type name, same as the input parameter "type"PrimaryId
: details about the primary idAttributes
: details about each attribute, listed in orderConfig
: details about global properties of the vertex typeName
: the edge type name, same as the input parameter "type"FromVertexTypeName
: source vertex type nameToVertexTypeName
: target vertex type nameAttributes
: details about each attribute, listed in orderIsDirected
: whether the edge is directedConfig
: additional details about global properties of the edge typeGraphName
: the graph name, same as the input parameter "graph"VertexTypes
: an array of vertex schema objects. Each vertex schema object is exactly the JSON output if that specific vertex type had been specified.EdgeTypes
: an array of edge schema objects. Each edge schema object is exactly the JSON output if that specific edge type had been specified.