다음을 통해 공유


AlertIncidentsOperations 클래스

경고

이 클래스를 직접 인스턴스화하지 마세요.

대신 다음 작업을 통해 액세스해야 합니다.

AuthorizationManagementClient's

<xref:alert_incidents> 특성.

상속
builtins.object
AlertIncidentsOperations

생성자

AlertIncidentsOperations(*args, **kwargs)

메서드

get

지정된 경고 인시던트 가져오기

list_for_scope

리소스 scope 대한 경고 인시던트 가져오기

remediate

경고 인시던트를 수정합니다.

get

지정된 경고 인시던트 가져오기

get(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> AlertIncident

매개 변수

scope
str
필수

경고 인시던트 scope. scope 모든 REST 리소스 instance 수 있습니다. 예를 들어 구독에 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/'를 사용합니다. 리소스 그룹에 대한 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' 및 리소스에 대한 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' 필수 사항입니다.

alert_id
str
필수

경고의 이름입니다. 필수 사항입니다.

alert_incident_id
str
필수

가져올 경고 인시던트 이름입니다. 필수 사항입니다.

cls
callable

직접 응답을 전달할 사용자 지정 형식 또는 함수

반환

AlertIncident 또는 cls(response)의 결과

반환 형식

예외

list_for_scope

리소스 scope 대한 경고 인시던트 가져오기

list_for_scope(scope: str, alert_id: str, **kwargs: Any) -> Iterable[AlertIncident]

매개 변수

scope
str
필수

경고 인시던트 scope. 필수 사항입니다.

alert_id
str
필수

경고의 이름입니다. 필수 사항입니다.

cls
callable

직접 응답을 전달할 사용자 지정 형식 또는 함수

반환

AlertIncident의 instance 또는 cls(응답)의 결과와 같은 반복기

반환 형식

예외

remediate

경고 인시던트를 수정합니다.

remediate(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> None

매개 변수

scope
str
필수

경고 인시던트 scope. 필수 사항입니다.

alert_id
str
필수

경고의 이름입니다. 필수 사항입니다.

alert_incident_id
str
필수

수정할 경고 인시던트의 이름입니다. 필수 사항입니다.

cls
callable

직접 응답을 전달할 사용자 지정 형식 또는 함수

반환

cls(response)의 없음 또는 결과

반환 형식

예외

특성

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'>