From 7b48e9c91452f872195eeb01c5e5cc482d51ae0f Mon Sep 17 00:00:00 2001 From: Alex Tymchuk Date: Tue, 22 Aug 2023 14:52:11 +0300 Subject: [PATCH] PMM-12258 add the first category --- docs/api/access-control.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api/access-control.md b/docs/api/access-control.md index 61b1da4ad2..dbebb61970 100644 --- a/docs/api/access-control.md +++ b/docs/api/access-control.md @@ -1,5 +1,7 @@ --- +title: Access Control slug: 'access-control' +category: '64e49e26498dc6002b62ebf4' --- ## Overview @@ -15,9 +17,9 @@ Once enabled, restricting access to metrics can be performed by: ### Create a Percona role ```bash -curl -X POST "http://localhost/v1/management/Role/Create" \ +curl -X POST "http://localhost/v1/management/Role/Create" \ -H "Authorization: Basic xxx" \ - -H "Content-Type: application/json" \ + -H "Content-Type: application/json" \ -d '{ "title": "My custom role role", "filter": "{environment=\"staging\"}" @@ -33,9 +35,9 @@ Users can be assigned roles by using the `/v1/management/Role/Assign` API. The endpoint assigns new roles to a user. Other roles, that may have been assigned to the user previously, stay intact. ```bash -curl -X POST "http://localhost/v1/management/Role/Assign" \ +curl -X POST "http://localhost/v1/management/Role/Assign" \ -H "Authorization: Basic xxx" \ - -H "Content-Type: application/json" \ + -H "Content-Type: application/json" \ -d '{ "user_id": 1, "role_ids": [2, 3, 4]