From dc491e34b546bb3f9f7f1c6f7ab1fda909169272 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:19:22 -0400 Subject: [PATCH] updating hidden agent information (#6867) (#6868) (cherry picked from commit e9ff1895c961cee3772c0f1f3940ab04636b2391) Signed-off-by: Dhrubo Saha Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- _ml-commons-plugin/agents-tools/agents-tools-tutorial.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_ml-commons-plugin/agents-tools/agents-tools-tutorial.md b/_ml-commons-plugin/agents-tools/agents-tools-tutorial.md index 68d979d6d6..39051f399c 100644 --- a/_ml-commons-plugin/agents-tools/agents-tools-tutorial.md +++ b/_ml-commons-plugin/agents-tools/agents-tools-tutorial.md @@ -365,10 +365,11 @@ Only superadmin users can register a hidden agent. To register a hidden agent, y curl -k --cert ./kirk.pem --key ./kirk-key.pem -XGET 'https://localhost:9200/.opendistro_security/_search' ``` -All agents created by a superadmin user are automatically registered as hidden. To register a hidden agent, send a request to the `_register` endpoint: +All agents created by a superadmin user are automatically registered as hidden. Only the superadmin user can view hidden agent details and delete hidden agents. +To register a hidden agent, send a request to the `_register` endpoint: ```bash -curl -k --cert ./kirk.pem --key ./kirk-key.pem -X POST 'https://localhost:9200/_plugins/_ml/models/_register' -H 'Content-Type: application/json' -d ' +curl -k --cert ./kirk.pem --key ./kirk-key.pem -X POST 'https://localhost:9200/_plugins/_ml/agents/_register' -H 'Content-Type: application/json' -d ' { "name": "Test_Agent_For_RAG", "type": "flow",