Other API
11.1 Other
11.1.1 View Version Information of HugeGraph
Method & Url
Response Status
Response Body
11.1.2 View the profile of the server
Returns the service name, the core version, the documentation links and the API groups served by this node.
Method & Url
Response Status
Response Body
The swagger_ui value is derived from restserver.url, and apis lists the API groups registered on this node, sorted by name.
11.1.3 List all APIs of the server
Lists every registered resource method, grouped by API group and resource class. Each entry carries the url, the HTTP method and the query parameters with their types and default values.
Method & Url
Response Status
Response Body
The response is long, the following fragment shows the shape:
11.1.4 View and switch the exception trace stack
Whether the error responses of the server carry the exception stack in the exception and cause fields is decided by the exception.allow_trace option (default true). The switch below is a node-wide runtime override: while it is on, the stack is always included, no matter what the option says. GET reports the state of that override, which starts as false.
Method & Url
Response Status
Response Body
Method & Url
Request Body
Response Status
Response Body
11.1.5 Manage the IP allowlist, this operation requires administrator privileges
The allowlist is only enforced when it is switched on, see the white_ip.status option (default disable).
List the allowlist
Method & Url
Response Status
Response Body
Add IPs to or remove IPs from the allowlist
Params
- ips: list of IPv4 addresses
- action:
loadto add,removeto delete
Method & Url
Request Body
Response Status
Response Body
existed_ips are the addresses already in the list, added_ips are the newly added ones, and illegal_ips is only returned when some addresses are not valid IPv4 addresses. For action=remove the response carries removed_ips and non_existed_ips instead.
Enable or disable the allowlist
Params
- status:
trueto enable,falseto disable
Method & Url
Response Status
Response Body
11.1.6 Start the Arthas agent
Starting with HugeGraph 1.8.0, Server and Store bundle Arthas 4.1.5 (PD does not embed an Arthas agent). You can attach it to a running JVM for live troubleshooting via the local script or the administrator HTTP endpoint.
Security & Access Control
- Local by Default: Arthas binds to
127.0.0.1by default. If binding a wildcard address (such as0.0.0.0), ensure firewall protection and enable authentication. - Administrator Privilege: HTTP API activation (
PUT /arthas) requires Server authentication enabled with administrator privileges; requests without authentication enabled return403. - Store Endpoint Disabled: Store’s
GET /v1/arthasstartis disabled and returns403. Usebin/arthas.shinstead. - No Restart & Auto Cleanup: We recommend running
bin/arthas.shon the host as the service OS user without restarting the JVM; exiting the interactive session automatically unloads the agent.
| Deployment | Recommended Activation | Access & Permissions |
|---|---|---|
| Server (auth) | Admin PUT /arthas or bin/arthas.sh | Admin HTTP credentials; script requires service OS user |
| Server (auth disabled) | Local script bin/arthas.sh | HTTP activation returns 403 (including loopback and proxy requests) |
| Store | Local script bin/arthas.sh | GET /v1/arthasstart is disabled and returns 403 |
Activation & Diagnostics
Operational Notes & Security Configuration
- Session Exit & Cleanup: The local script automatically stops Arthas and releases ports when exiting (via
quit,stop, or--commandcompletion), leaving the service JVM running. If activated via HTTP API only, executestopin the console to unload the agent. - Authentication & Security: Enable native authentication before exposing diagnostic ports beyond loopback. Supply credentials via
--username/--passwordin the script or set JVM properties-Darthas.usernameand-Darthas.password. For full authentication behavior and options, see Arthas Authentication Documentation. - Disabling Dangerous Commands: In
rest-server.properties, configurearthas.disabled_commandswith a comma-separated list (e.g.,jad,mc). Keepsessionandstopenabled so tooling can manage the agent lifecycle. See Arthas Commands for command usage.
HTTP Response Body
A successful activation returns HTTP 200 and the applied configuration:
Configuration options use canonical snake_case names: arthas.telnet_port, arthas.http_port, arthas.ip,
and arthas.disabled_commands. Legacy camelCase aliases remain supported for backward compatibility; explicit snake_case settings take precedence (see
upgrade note). The response preserves Arthas agent key names for client compatibility.