From b5537c56d2e1310f09d527ede9f9f20eac2db5df Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Tue, 8 Mar 2022 18:09:54 -0800 Subject: [PATCH] Add avm rpcs * getLoggerLevel * loadVMs * setLoggerLevel --- Avalanche.postman_collection.json | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/Avalanche.postman_collection.json b/Avalanche.postman_collection.json index 13d1984..d43aaf1 100644 --- a/Avalanche.postman_collection.json +++ b/Avalanche.postman_collection.json @@ -98,6 +98,66 @@ }, "response": [] }, + { + "name": "getLoggerLevel", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.getLoggerLevel\",\n \"params\" :{\n \"loggerName\":\"C\" \n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{protocol}}://{{host}}:{{port}}/ext/admin", + "protocol": "{{protocol}}", + "host": [ + "{{host}}" + ], + "port": "{{port}}", + "path": [ + "ext", + "admin" + ] + }, + "description": "Returns log and display levels of loggers. [More info](https://docs.avax.network/build/avalanchego-apis/admin#admingetloggerlevel)" + }, + "response": [] + }, + { + "name": "loadVMs", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.loadVMs\",\n \"params\" :{}\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{protocol}}://{{host}}:{{port}}/ext/admin", + "protocol": "{{protocol}}", + "host": [ + "{{host}}" + ], + "port": "{{port}}", + "path": [ + "ext", + "admin" + ] + }, + "description": "Dynamically loads any virtual machines installed on the node as plugins. [More info](https://docs.avax.network/build/avalanchego-apis/admin#adminloadvms)" + }, + "response": [] + }, { "name": "lockProfile", "request": { @@ -158,6 +218,36 @@ }, "response": [] }, + { + "name": "setLoggerLevel", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.setLoggerLevel\",\n \"params\" :{\n \"loggerName\": \"C\",\n \"logLevel\": \"DEBUG\",\n \"displayLevel\": \"INFO\" \n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{protocol}}://{{host}}:{{port}}/ext/admin", + "protocol": "{{protocol}}", + "host": [ + "{{host}}" + ], + "port": "{{port}}", + "path": [ + "ext", + "admin" + ] + }, + "description": "Sets log and display levels of loggers. [More info](https://docs.avax.network/build/avalanchego-apis/admin#adminsetloggerlevel)" + }, + "response": [] + }, { "name": "startCPUProfiler", "request": {