mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Documentation linting on library_element docs (#74407)
* vale lint documentation changes * run prettier --------- Co-authored-by: unknown <antonio.caleromerello@grafana.com>
This commit is contained in:
parent
496cf3d0da
commit
b0715816d8
@ -34,14 +34,14 @@ Returns a list of all library elements the authenticated user has permission to
|
|||||||
|
|
||||||
Query parameters:
|
Query parameters:
|
||||||
|
|
||||||
- **searchString** – Part of the name or description searched for.
|
- `searchString`: Part of the name or description searched for.
|
||||||
- **kind** – Kind of element to search for. Use `1` for library panels or `2` for library variables.
|
- `kind`: Kind of element to search for. Use `1` for library panels or `2` for library variables.
|
||||||
- **sortDirection** – Sort order of elements. Use `alpha-asc` for ascending and `alpha-desc` for descending sort order.
|
- `sortDirection`: Sort order of elements. Use `alpha-asc` for ascending and `alpha-desc` for descending sort order.
|
||||||
- **typeFilter** – A comma separated list of types to filter the elements by.
|
- `typeFilter`: A comma separated list of types to filter the elements by.
|
||||||
- **excludeUid** – Element UID to exclude from search results.
|
- `excludeUid`: Element UID to exclude from search results.
|
||||||
- **folderFilter** – A comma separated list of folder ID(s) to filter the elements by.
|
- `folderFilter`: A comma separated list of folder IDs to filter the elements by.
|
||||||
- **perPage** – The number of results per page; default is 100.
|
- `perPage`: The number of results per page; default is 100.
|
||||||
- **page** – The page for a set of records, given that only `perPage` records are returned at a time. Numbering starts at `1`.
|
- `page`: The page for a set of records, given that only `perPage` records are returned at a time. Numbering starts at `1`.
|
||||||
|
|
||||||
**Example Request**:
|
**Example Request**:
|
||||||
|
|
||||||
@ -102,8 +102,8 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Found
|
- `200`: Found
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
|
|
||||||
## Get library element by uid
|
## Get library element by uid
|
||||||
|
|
||||||
@ -161,9 +161,9 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Found
|
- `200`: Found
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
- **404** – Library element not found
|
- `404`: Library element not found
|
||||||
|
|
||||||
## Get library element by name
|
## Get library element by name
|
||||||
|
|
||||||
@ -223,9 +223,9 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Found
|
- `200`: Found
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
- **404** – Library element not found
|
- `404`: Library element not found
|
||||||
|
|
||||||
## Get library element connections
|
## Get library element connections
|
||||||
|
|
||||||
@ -269,9 +269,9 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Found
|
- `200`: Found
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
- **404** – Library element not found
|
- `404`: Library element not found
|
||||||
|
|
||||||
## Create library element
|
## Create library element
|
||||||
|
|
||||||
@ -281,12 +281,12 @@ Creates a new library element.
|
|||||||
|
|
||||||
JSON Body schema:
|
JSON Body schema:
|
||||||
|
|
||||||
- **folderId** – ID of the folder where the library element is stored. It is deprecated since Grafana v9
|
- `folderId`: ID of the folder where the library element is stored. It is deprecated since Grafana v9
|
||||||
- **folderUid** – Optional, the UID of the folder where the library element is stored, empty string when it is General folder
|
- `folderUid`: Optional, the UID of the folder where the library element is stored, empty string when it is General folder
|
||||||
- **name** – Optional, the name of the library element.
|
- `name`: Optional, the name of the library element.
|
||||||
- **model** – The JSON model for the library element.
|
- `model`: The JSON model for the library element.
|
||||||
- **kind** – Kind of element to create, Use `1` for library panels or `2` for library variables.
|
- `kind`: Kind of element to create, Use `1` for library panels or `2` for library variables.
|
||||||
- **uid** – Optional, the [unique identifier](/http_api/library_element/#identifier-id-vs-unique-identifier-uid).
|
- `uid`: Optional, the [unique identifier](/http_api/library_element/#identifier-id-vs-unique-identifier-uid).
|
||||||
|
|
||||||
**Example Request**:
|
**Example Request**:
|
||||||
|
|
||||||
@ -347,10 +347,10 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Created
|
- `200`: Created
|
||||||
- **400** – Errors (for example, name or UID already exists, invalid JSON, missing or invalid fields, and so on).
|
- `400`: Errors (for example, name or UID already exists, invalid JSON, missing or invalid fields, and so on).
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
- **403** – Access denied
|
- `403`: Access denied
|
||||||
|
|
||||||
## Update library element
|
## Update library element
|
||||||
|
|
||||||
@ -360,13 +360,13 @@ Updates an existing library element identified by uid.
|
|||||||
|
|
||||||
JSON Body schema:
|
JSON Body schema:
|
||||||
|
|
||||||
- **folderId** – ID of the folder where the library element is stored. It is deprecated since Grafana v9
|
- `folderId`: ID of the folder where the library element is stored. It is deprecated since Grafana v9
|
||||||
- **folderUid** – UID of the folder where the library element is stored, empty string when it is General folder.
|
- `folderUid`: UID of the folder where the library element is stored, empty string when it is General folder.
|
||||||
- **name** – Name of the library element.
|
- `name`: Name of the library element.
|
||||||
- **model** – The JSON model for the library element.
|
- `model`: The JSON model for the library element.
|
||||||
- **kind** – Kind of element to create. Use `1` for library panels or `2` for library variables.
|
- `kind`: Kind of element to create. Use `1` for library panels or `2` for library variables.
|
||||||
- **version** – Version of the library element you are updating.
|
- `version`: Version of the library element you are updating.
|
||||||
- **uid** – Optional, the [unique identifier](/http_api/library_element/#identifier-id-vs-unique-identifier-uid).
|
- `uid`: Optional, the [unique identifier](/http_api/library_element/#identifier-id-vs-unique-identifier-uid).
|
||||||
|
|
||||||
**Example Request**:
|
**Example Request**:
|
||||||
|
|
||||||
@ -428,12 +428,12 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Updated
|
- `200`: Updated
|
||||||
- **400** – Errors (for example, name or UID already exists, invalid JSON, missing or invalid fields, and so on).
|
- `400`: Errors (for example, name or UID already exists, invalid JSON, missing or invalid fields, and so on).
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
- **403** – Access denied
|
- `403`: Access denied
|
||||||
- **404** – Library element not found
|
- `404`: Library element not found
|
||||||
- **412** – Version mismatch
|
- `412`: Version mismatch
|
||||||
|
|
||||||
## Delete library element
|
## Delete library element
|
||||||
|
|
||||||
@ -469,8 +469,8 @@ Content-Type: application/json
|
|||||||
|
|
||||||
Status Codes:
|
Status Codes:
|
||||||
|
|
||||||
- **200** – Deleted
|
- `200`: Deleted
|
||||||
- **401** – Unauthorized
|
- `401`: Unauthorized
|
||||||
- **400** – Bad request
|
- `400`: Bad request
|
||||||
- **403** – Access denied
|
- `403`: Access denied
|
||||||
- **404** – Library element not found
|
- `404`: Library element not found
|
||||||
|
Loading…
Reference in New Issue
Block a user