deleteWorkspaceApiKey method
Deletes a Grafana API key for the workspace.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter keyName :
The name of the API key to delete.
Parameter workspaceId :
The ID of the workspace to delete.
Implementation
Future<DeleteWorkspaceApiKeyResponse> deleteWorkspaceApiKey({
required String keyName,
required String workspaceId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/workspaces/${Uri.encodeComponent(workspaceId)}/apikeys/${Uri.encodeComponent(keyName)}',
exceptionFnMap: _exceptionFns,
);
return DeleteWorkspaceApiKeyResponse.fromJson(response);
}