list_workspace_service_account_tokens
¶
list_workspace_service_account_tokens(
service_account_id: str,
workspace_id: WorkspaceId,
*,
config_overrides: Optional[grafanaClientConfig] = 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/grafana.py
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 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 | |