azure.mgmt.authorization.v2022_08_01_preview.models module

class azure.mgmt.authorization.v2022_08_01_preview.models.Alert(*, is_active: Optional[bool] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

The alert.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The alert ID.

  • name (str) – The alert name.

  • type (str) – The alert type.

  • scope (str) – The alert scope.

  • is_active (bool) – False by default; true if the alert is active.

  • incident_count (int) – The number of generated incidents of the alert.

  • last_modified_date_time (datetime) – The date time when the alert configuration was updated or new incidents were generated.

  • last_scanned_date_time (datetime) – The date time when the alert was last scanned.

  • alert_definition (AlertDefinition) – The alert definition.

  • alert_incidents (list[AlertIncident]) – The alert incidents.

  • alert_configuration (AlertConfiguration) – The alert configuration.

Keyword Arguments

is_active (bool) – False by default; true if the alert is active.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertConfiguration(*, is_enabled: Optional[bool] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert configuration.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The alert configuration ID.

  • name (str) – The alert configuration name.

  • type (str) – The alert configuration type.

  • alert_definition_id (str) – The alert definition ID.

  • scope (str) – The alert scope.

  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • alert_configuration_type (str) – The alert configuration type.

  • alert_definition (AlertDefinition) – The alert definition.

Keyword Arguments

is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertConfigurationListResult(*, value: Optional[List[_models.AlertConfiguration]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert configuration list operation result.

Variables
  • value (list[AlertConfiguration]) – Alert configuration list.

  • next_link (str) – The URL to use for getting the next set of results.

Keyword Arguments
  • value (list[AlertConfiguration]) – Alert configuration list.

  • next_link (str) – The URL to use for getting the next set of results.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertConfigurationProperties(*, is_enabled: Optional[bool] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert configuration properties.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureRolesAssignedOutsidePimAlertConfigurationProperties, DuplicateRoleCreatedAlertConfigurationProperties, TooManyOwnersAssignedToResourceAlertConfigurationProperties, TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_definition_id (str) – The alert definition ID.

  • scope (str) – The alert scope.

  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • alert_configuration_type (str) – The alert configuration type. Required.

  • alert_definition (AlertDefinition) – The alert definition.

Keyword Arguments

is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertDefinition(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert definition.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The alert definition ID.

  • name (str) – The alert definition name.

  • type (str) – The alert definition type.

  • display_name (str) – The alert display name.

  • scope (str) – The alert scope.

  • description (str) – The alert description.

  • severity_level (str or SeverityLevel) – Severity level of the alert. Known values are: “Low”, “Medium”, and “High”.

  • security_impact (str) – Security impact of the alert.

  • mitigation_steps (str) – The methods to mitigate the alert.

  • how_to_prevent (str) – The ways to prevent the alert.

  • is_remediatable (bool) – True if the alert can be remediated; false, otherwise.

  • is_configurable (bool) – True if the alert configuration can be configured; false, otherwise.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertDefinitionListResult(*, value: Optional[List[_models.AlertDefinition]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert definition list operation result.

Variables
  • value (list[AlertDefinition]) – Alert definition list.

  • next_link (str) – The URL to use for getting the next set of results.

Keyword Arguments
  • value (list[AlertDefinition]) – Alert definition list.

  • next_link (str) – The URL to use for getting the next set of results.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertIncident(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert incident.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The alert incident ID.

  • name (str) – The alert incident name.

  • type (str) – The alert incident type.

  • alert_incident_type (str) – The alert incident type.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertIncidentListResult(*, value: Optional[List[_models.AlertIncident]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert incident list operation result.

Variables
  • value (list[AlertIncident]) – Alert incident list.

  • next_link (str) – The URL to use for getting the next set of results.

Keyword Arguments
  • value (list[AlertIncident]) – Alert incident list.

  • next_link (str) – The URL to use for getting the next set of results.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertIncidentProperties(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert incident properties.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureRolesAssignedOutsidePimAlertIncidentProperties, DuplicateRoleCreatedAlertIncidentProperties, TooManyOwnersAssignedToResourceAlertIncidentProperties, TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties

All required parameters must be populated in order to send to Azure.

Variables

alert_incident_type (str) – The alert incident type. Required.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertListResult(*, value: Optional[List[_models.Alert]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert list operation result.

Variables
  • value (list[Alert]) – Alert list.

  • next_link (str) – The URL to use for getting the next set of results.

Keyword Arguments
  • value (list[Alert]) – Alert list.

  • next_link (str) – The URL to use for getting the next set of results.

class azure.mgmt.authorization.v2022_08_01_preview.models.AlertOperationResult(**kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

Alert operation result.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The id of the alert operation.

  • status (str) – The status of the alert operation.

  • status_detail (str) – The status detail of the alert operation.

  • created_date_time (datetime) – The created date of the alert operation.

  • last_action_date_time (datetime) – The last action date of the alert operation.

  • resource_location (str) – The location of the alert associated with the operation.

class azure.mgmt.authorization.v2022_08_01_preview.models.AzureRolesAssignedOutsidePimAlertConfigurationProperties(*, is_enabled: Optional[bool] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertConfigurationProperties

The Azure roles assigned outside PIM alert configuration properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_definition_id (str) – The alert definition ID.

  • scope (str) – The alert scope.

  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • alert_configuration_type (str) – The alert configuration type. Required.

  • alert_definition (AlertDefinition) – The alert definition.

Keyword Arguments

is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

class azure.mgmt.authorization.v2022_08_01_preview.models.AzureRolesAssignedOutsidePimAlertIncidentProperties(**kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertIncidentProperties

Azure roles assigned outside PIM alert incident properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_incident_type (str) – The alert incident type. Required.

  • assignee_display_name (str) – The assignee display name.

  • assignee_user_principal_name (str) – The assignee user principal name.

  • assignee_id (str) – The assignee ID.

  • role_display_name (str) – The role display name.

  • role_template_id (str) – The role template ID.

  • role_definition_id (str) – The role definition ID.

  • assignment_activated_date (datetime) – The date the assignment was activated.

  • requestor_id (str) – The requestor ID.

  • requestor_display_name (str) – The requestor display name.

  • requestor_user_principal_name (str) – The requestor user principal name.

class azure.mgmt.authorization.v2022_08_01_preview.models.CloudErrorBody(*, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization._serialization.Model

An error response from the service.

Variables
  • code (str) – An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

  • message (str) – A message describing the error, intended to be suitable for display in a user interface.

Keyword Arguments
  • code (str) – An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

  • message (str) – A message describing the error, intended to be suitable for display in a user interface.

class azure.mgmt.authorization.v2022_08_01_preview.models.DuplicateRoleCreatedAlertConfigurationProperties(*, is_enabled: Optional[bool] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertConfigurationProperties

The duplicate role created alert configuration.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_definition_id (str) – The alert definition ID.

  • scope (str) – The alert scope.

  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • alert_configuration_type (str) – The alert configuration type. Required.

  • alert_definition (AlertDefinition) – The alert definition.

Keyword Arguments

is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

class azure.mgmt.authorization.v2022_08_01_preview.models.DuplicateRoleCreatedAlertIncidentProperties(**kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertIncidentProperties

Duplicate role created alert incident properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_incident_type (str) – The alert incident type. Required.

  • role_name (str) – The role name.

  • duplicate_roles (str) – The duplicate roles.

  • reason (str) – The reason for the incident.

class azure.mgmt.authorization.v2022_08_01_preview.models.SeverityLevel(value)[source]

Bases: str, enum.Enum

Severity level of the alert.

HIGH = 'High'
LOW = 'Low'
MEDIUM = 'Medium'
class azure.mgmt.authorization.v2022_08_01_preview.models.TooManyOwnersAssignedToResourceAlertConfigurationProperties(*, is_enabled: Optional[bool] = None, threshold_number_of_owners: Optional[int] = None, threshold_percentage_of_owners_out_of_all_role_members: Optional[int] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertConfigurationProperties

Too many owners assigned to resource alert configuration properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_definition_id (str) – The alert definition ID.

  • scope (str) – The alert scope.

  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • alert_configuration_type (str) – The alert configuration type. Required.

  • alert_definition (AlertDefinition) – The alert definition.

  • threshold_number_of_owners (int) – The threshold number of owners.

  • threshold_percentage_of_owners_out_of_all_role_members (int) – The threshold percentage of owners out of all role members.

Keyword Arguments
  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • threshold_number_of_owners (int) – The threshold number of owners.

  • threshold_percentage_of_owners_out_of_all_role_members (int) – The threshold percentage of owners out of all role members.

class azure.mgmt.authorization.v2022_08_01_preview.models.TooManyOwnersAssignedToResourceAlertIncidentProperties(**kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertIncidentProperties

Too many owners assigned to resource alert incident properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_incident_type (str) – The alert incident type. Required.

  • assignee_name (str) – The assignee name.

  • assignee_type (str) – The assignee type.

class azure.mgmt.authorization.v2022_08_01_preview.models.TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties(*, is_enabled: Optional[bool] = None, threshold_number_of_permanent_owners: Optional[int] = None, threshold_percentage_of_permanent_owners_out_of_all_owners: Optional[int] = None, **kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertConfigurationProperties

Too many permanent owners assigned to resource alert configuration properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_definition_id (str) – The alert definition ID.

  • scope (str) – The alert scope.

  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • alert_configuration_type (str) – The alert configuration type. Required.

  • alert_definition (AlertDefinition) – The alert definition.

  • threshold_number_of_permanent_owners (int) – The threshold number of permanent owners.

  • threshold_percentage_of_permanent_owners_out_of_all_owners (int) – The threshold percentage of permanent owners out of all owners.

Keyword Arguments
  • is_enabled (bool) – True if the alert is enabled, false will disable the scanning for the specific alert.

  • threshold_number_of_permanent_owners (int) – The threshold number of permanent owners.

  • threshold_percentage_of_permanent_owners_out_of_all_owners (int) – The threshold percentage of permanent owners out of all owners.

class azure.mgmt.authorization.v2022_08_01_preview.models.TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties(**kwargs: Any)[source]

Bases: azure.mgmt.authorization.v2022_08_01_preview.models._models_py3.AlertIncidentProperties

Too many permanent owners assigned to resource alert incident properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • alert_incident_type (str) – The alert incident type. Required.

  • assignee_name (str) – The assignee name.

  • assignee_type (str) – The assignee type.