list_workspace_service_account_tokens
async
¶
list_workspace_service_account_tokens(
service_account_id: str,
workspace_id: WorkspaceId,
*,
config_overrides: Optional[AsyncgrafanaClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[PaginationToken] = None,
) -> ListWorkspaceServiceAccountTokensResponse
Returns a list of tokens for a workspace service account.
This does not return the key for each token. You cannot access keys after they are created. To create a new key, delete the token and recreate it.
Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.
Parameters:
-
max_results(Optional[int], default:None) –The maximum number of tokens to include in the results.
-
next_token(Optional[PaginationToken], default:None) –The token for the next set of service accounts to return. (You receive this token from a previous
ListWorkspaceServiceAccountTokensoperation.) -
service_account_id(str) –The ID of the service account for which to return tokens.
-
workspace_id(WorkspaceId) –The ID of the workspace for which to return tokens.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–A resource was in an inconsistent state during an update or a deletion.
-
InternalServerException–Unexpected error while processing the request. Retry the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ThrottlingException–The request was denied because of request throttling. Retry the request.
-
ValidationException–The value of a parameter in the request caused an error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_grafana/_services/async_grafana.py
1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 | |