ServerSecurityAlertPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:server_security_alert_policies> attribute.
Constructor
ServerSecurityAlertPoliciesOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates a threat detection policy. |
| get |
Get a server's security alert policy. |
| list_by_server |
Get the server's threat detection policies. |
begin_create_or_update
Creates or updates a threat detection policy.
begin_create_or_update(resource_group_name: str, server_name: str, security_alert_policy_name: str | _models.SecurityAlertPolicyName, parameters: _models.ServerSecurityAlertPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ServerSecurityAlertPolicy]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
security_alert_policy_name
Required
|
The name of the threat detection policy. "Default" Required. |
|
parameters
Required
|
The server security alert policy. Is either a ServerSecurityAlertPolicy type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns either ServerSecurityAlertPolicy or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Get a server's security alert policy.
get(resource_group_name: str, server_name: str, security_alert_policy_name: str | SecurityAlertPolicyName, **kwargs: Any) -> ServerSecurityAlertPolicy
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
security_alert_policy_name
Required
|
The name of the security alert policy. "Default" Required. |
Returns
| Type | Description |
|---|---|
|
ServerSecurityAlertPolicy or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_server
Get the server's threat detection policies.
list_by_server(resource_group_name: str, server_name: str, **kwargs: Any) -> ItemPaged[ServerSecurityAlertPolicy]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ServerSecurityAlertPolicy or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.rdbms.postgresql.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv198\\Lib\\site-packages\\azure\\mgmt\\rdbms\\postgresql\\models\\__init__.py'>