API 信息
获取当前 REST API 列表
API 定义:
GET api/v3/
请求示例:
GET api/v3/
返回数据:
{
"code": 0,
"data": [
{
"name": "list_clientid",
"method": "GET",
"path": "/auth_clientid",
"descr": "List available clientid in the cluster"
},
{
"name": "lookup_clientid",
"method": "GET",
"path": "/auth_clientid/:clientid",
"descr": "Lookup clientid in the cluster"
},
{
"name": "add_clientid",
"method": "POST",
"path": "/auth_clientid",
"descr": "Add clientid in the cluster"
},
{
"name": "update_clientid",
"method": "PUT",
"path": "/auth_clientid/:clientid",
"descr": "Update clientid in the cluster"
},
{
"name": "delete_clientid",
"method": "DELETE",
"path": "/auth_clientid/:clientid",
"descr": "Delete clientid in the cluster"
},
{
"name": "list_username",
"method": "GET",
"path": "/auth_username",
"descr": "List available username in the cluster"
},
{
"name": "lookup_username",
"method": "GET",
"path": "/auth_username/:username",
"descr": "Lookup username in the cluster"
},
{
"name": "add_username",
"method": "POST",
"path": "/auth_username",
"descr": "Add username in the cluster"
},
{
"name": "update_username",
"method": "PUT",
"path": "/auth_username/:username",
"descr": "Update username in the cluster"
},
{
"name": "delete_username",
"method": "DELETE",
"path": "/auth_username/:username",
"descr": "Delete username in the cluster"
},
{
"name": "list_all_alarms",
"method": "GET",
"path": "/alarms/",
"descr": "List all alarms"
},
{
"name": "list_node_alarms",
"method": "GET",
"path": "/alarms/:node",
"descr": "List alarms of a node"
},
{
"name": "list_banned",
"method": "GET",
"path": "/banned/",
"descr": "List banned"
},
{
"name": "create_banned",
"method": "POST",
"path": "/banned/",
"descr": "Create banned"
},
{
"name": "delete_banned",
"method": "DELETE",
"path": "/banned/:who",
"descr": "Delete banned"
},
{
"name": "list_brokers",
"method": "GET",
"path": "/brokers/",
"descr": "A list of brokers in the cluster"
},
{
"name": "get_broker",
"method": "GET",
"path": "/brokers/:node",
"descr": "Get broker info of a node"
},
{
"name": "get_all_configs",
"method": "GET",
"path": "/configs/",
"descr": "Get all configs"
},
{
"name": "get_all_configs",
"method": "GET",
"path": "/nodes/:node/configs/",
"descr": "Get all configs of a node"
},
{
"name": "update_config",
"method": "PUT",
"path": "/configs/:app",
"descr": "Update config of an application in the cluster"
},
{
"name": "update_node_config",
"method": "PUT",
"path": "/nodes/:node/configs/:app",
"descr": "Update config of an application on a node"
},
{
"name": "get_plugin_configs",
"method": "GET",
"path": "/nodes/:node/plugin_configs/:plugin",
"descr": "Get configurations of a plugin on the node"
},
{
"name": "update_plugin_configs",
"method": "PUT",
"path": "/nodes/:node/plugin_configs/:plugin",
"descr": "Update configurations of a plugin on the node"
},
{
"name": "list_connections",
"method": "GET",
"path": "/connections/",
"descr": "A list of connections in the cluster"
},
{
"name": "list_node_connections",
"method": "GET",
"path": "nodes/:node/connections/",
"descr": "A list of connections on a node"
},
{
"name": "lookup_node_connections",
"method": "GET",
"path": "nodes/:node/connections/:clientid",
"descr": "Lookup a connection on node"
},
{
"name": "lookup_connections",
"method": "GET",
"path": "/connections/:clientid",
"descr": "Lookup a connection in the cluster"
},
{
"name": "lookup_node_connection_via_username",
"method": "GET",
"path": "/nodes/:node/connection/username/:username",
"descr": "Lookup a connection via username in the cluster "
},
{
"name": "lookup_connection_via_username",
"method": "GET",
"path": "/connection/username/:username",
"descr": "Lookup a connection via username on a node "
},
{
"name": "kickout_connection",
"method": "DELETE",
"path": "/connections/:clientid",
"descr": "Kick out a connection"
},
{
"name": "list_listeners",
"method": "GET",
"path": "/listeners/",
"descr": "A list of listeners in the cluster"
},
{
"name": "list_node_listeners",
"method": "GET",
"path": "/nodes/:node/listeners",
"descr": "A list of listeners on the node"
},
{
"name": "list_all_metrics",
"method": "GET",
"path": "/metrics/",
"descr": "A list of metrics of all nodes in the cluster"
},
{
"name": "list_node_metrics",
"method": "GET",
"path": "/nodes/:node/metrics/",
"descr": "A list of metrics of a node"
},
{
"name": "list_nodes",
"method": "GET",
"path": "/nodes/",
"descr": "A list of nodes in the cluster"
},
{
"name": "get_node",
"method": "GET",
"path": "/nodes/:node",
"descr": "Lookup a node in the cluster"
},
{
"name": "list_all_plugins",
"method": "GET",
"path": "/plugins/",
"descr": "List all plugins in the cluster"
},
{
"name": "list_node_plugins",
"method": "GET",
"path": "/nodes/:node/plugins/",
"descr": "List all plugins on a node"
},
{
"name": "load_plugin",
"method": "PUT",
"path": "/nodes/:node/plugins/:plugin/load",
"descr": "Load a plugin"
},
{
"name": "unload_plugin",
"method": "PUT",
"path": "/nodes/:node/plugins/:plugin/unload",
"descr": "Unload a plugin"
},
{
"name": "mqtt_subscribe",
"method": "POST",
"path": "/mqtt/subscribe",
"descr": "Subscribe a topic"
},
{
"name": "mqtt_publish",
"method": "POST",
"path": "/mqtt/publish",
"descr": "Publish a MQTT message"
},
{
"name": "mqtt_unsubscribe",
"method": "POST",
"path": "/mqtt/unsubscribe",
"descr": "Unsubscribe a topic"
},
{
"name": "list_routes",
"method": "GET",
"path": "/routes/",
"descr": "List routes"
},
{
"name": "lookup_routes",
"method": "GET",
"path": "/routes/:topic",
"descr": "Lookup routes to a topic"
},
{
"name": "list_sessions",
"method": "GET",
"path": "/sessions/",
"descr": "A list of sessions in the cluster"
},
{
"name": "list_node_sessions",
"method": "GET",
"path": "nodes/:node/sessions/",
"descr": "A list of sessions on a node"
},
{
"name": "lookup_session",
"method": "GET",
"path": "/sessions/:clientid",
"descr": "Lookup a session in the cluster"
},
{
"name": "lookup_node_session",
"method": "GET",
"path": "nodes/:node/sessions/:clientid",
"descr": "Lookup a session on the node"
},
{
"name": "list_stats",
"method": "GET",
"path": "/stats/",
"descr": "A list of stats of all nodes in the cluster"
},
{
"name": "lookup_node_stats",
"method": "GET",
"path": "/nodes/:node/stats/",
"descr": "A list of stats of a node"
},
{
"name": "list_subscriptions",
"method": "GET",
"path": "/subscriptions/",
"descr": "A list of subscriptions in the cluster"
},
{
"name": "list_node_subscriptions",
"method": "GET",
"path": "/nodes/:node/subscriptions/",
"descr": "A list of subscriptions on a node"
},
{
"name": "lookup_client_subscriptions",
"method": "GET",
"path": "/subscriptions/:clientid",
"descr": "A list of subscriptions of a client"
},
{
"name": "lookup_client_subscriptions_with_node",
"method": "GET",
"path": "/nodes/:node/subscriptions/:clientid",
"descr": "A list of subscriptions of a client on the node"
},
{
"name": "create_rule",
"method": "POST",
"path": "/rules/",
"descr": "Create a rule"
},
{
"name": "list_rules",
"method": "GET",
"path": "/rules/",
"descr": "A list of all rules"
},
{
"name": "show_rule",
"method": "GET",
"path": "/rules/:id",
"descr": "Show a rule"
},
{
"name": "delete_rule",
"method": "DELETE",
"path": "/rules/:id",
"descr": "Delete a rule"
},
{
"name": "list_actions",
"method": "GET",
"path": "/actions/",
"descr": "A list of all actions"
},
{
"name": "show_action",
"method": "GET",
"path": "/actions/:name",
"descr": "Show an action"
},
{
"name": "list_resources",
"method": "GET",
"path": "/resources/",
"descr": "A list of all resources"
},
{
"name": "create_resource",
"method": "POST",
"path": "/resources/",
"descr": "Create a resource"
},
{
"name": "show_resource",
"method": "GET",
"path": "/resources/:id",
"descr": "Show a resource"
},
{
"name": "delete_resource",
"method": "DELETE",
"path": "/resources/:id",
"descr": "Delete a resource"
},
{
"name": "list_resource_types",
"method": "GET",
"path": "/resource_types/",
"descr": "List all resource types"
},
{
"name": "show_resource_type",
"method": "GET",
"path": "/resource_types/:name",
"descr": "Show a resource type"
},
{
"name": "list_resources_by_type",
"method": "GET",
"path": "/resource_types/:type/resources",
"descr": "List all resources of a resource type"
},
{
"name": "list_actions_by_type",
"method": "GET",
"path": "/resource_types/:type/actions",
"descr": "List all actions of a resource type"
}]
}