AlertIncidentsOperations Klass
Varning
Instansiera INTE den här klassen direkt.
I stället bör du komma åt följande åtgärder via
AuthorizationManagementClient's
<xref:alert_incidents> Attributet.
- Arv
-
builtins.objectAlertIncidentsOperations
Konstruktor
AlertIncidentsOperations(*args, **kwargs)
Metoder
get |
Hämta den angivna aviseringsincidenten. |
list_for_scope |
Hämtar aviseringsincidenter för ett resursomfång. |
remediate |
Åtgärda en aviseringsincident. |
get
Hämta den angivna aviseringsincidenten.
get(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> AlertIncident
Parametrar
- scope
- str
Aviseringsincidentens omfattning. Omfånget kan vara vilken REST-resursinstans som helst. Använd till exempel "/providers/Microsoft.Subscription/subscriptions/{subscription-id}/" för en prenumeration, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name} för en resursgrupp och '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' för en resurs. Krävs.
- cls
- callable
En anpassad typ eller funktion som skickas direktsvaret
Returer
AlertIncident eller resultatet av cls(response)
Returtyp
Undantag
list_for_scope
Hämtar aviseringsincidenter för ett resursomfång.
list_for_scope(scope: str, alert_id: str, **kwargs: Any) -> Iterable[AlertIncident]
Parametrar
- cls
- callable
En anpassad typ eller funktion som skickas direktsvaret
Returer
En iterator som en instans av antingen AlertIncident eller resultatet av cls(response)
Returtyp
Undantag
remediate
Åtgärda en aviseringsincident.
remediate(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> None
Parametrar
- cls
- callable
En anpassad typ eller funktion som skickas direktsvaret
Returer
Inget eller resultatet av cls(svar)
Returtyp
Undantag
Attribut
models
models = <module 'azure.mgmt.authorization.v2022_08_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2022_08_01_preview\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för