Method: alerts.delete
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oznacza wskazany alert do usunięcia. Alert oznaczony do usunięcia jest usuwany z Centrum alertów po 30 dniach. Oznaczenie alertu do usunięcia nie ma wpływu na alert, który został już oznaczony do usunięcia. Próba oznaczenia nieistniejącego alertu do usunięcia powoduje błąd NOT_FOUND
.
Żądanie HTTP
DELETE https://alertcenter.googleapis.com/v1beta1/alerts/{alertId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
alertId |
string
Wymagane. Identyfikator alertu do usunięcia.
|
Parametry zapytania
Parametry |
customerId |
string
Opcjonalnie: Unikalny identyfikator konta Google Workspace klienta, z którym jest powiązany alert. W identyfikatorze customerId musi być pominięty początkowy ciąg „C” (np. 046psxkn ). Jeśli nie jest podany, identyfikator jest wywnioskowany na podstawie tożsamości dzwoniącego. Znajdź identyfikator klienta.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi to pusty obiekt JSON.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/apps.alerts
Więcej informacji znajdziesz w przewodniku dotyczącym autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# Method: alerts.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n\nMarks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a `NOT_FOUND` error.\n\n### HTTP request\n\n`DELETE https://alertcenter.googleapis.com/v1beta1/alerts/{alertId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|-----------------------------------------------------------|\n| `alertId` | `string` Required. The identifier of the alert to delete. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerId` | `string` Optional. The unique identifier of the Google Workspace account of the customer the alert is associated with. The `customerId` must have the initial \"C\" stripped (for example, `046psxkn`). Inferred from the caller identity if not provided. [Find your customer ID](https://support.google.com/cloudidentity/answer/10070793). |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.alerts`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]