---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies"
tags: ["ManagedServerSecurityAlertPolicies"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies`

Get the managed server's threat detection policies.

## Path parameters

- `resourceGroupName` string, required
- `managedInstanceName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Successfully retrieved the managed server threat detection policies.

- ManagedServerSecurityAlertPolicyListResult — A list of the managed Server's security alert policies.
  - `value` ManagedServerSecurityAlertPolicy[] — Array of results. — unresolved $ref
  - `nextLink` string — Link to retrieve next page of results.

## Other responses

- `default` — *** Error Responses: *** * 400 SecurityAlertPoliciesInvalidStorageAccountName - The provided storage account is not valid or does not exist. * 400 SecurityAlertPoliciesInvalidStorageAccountCredentials - The provided storage account access key is not valid. * 400 InvalidServerSecurityAlertPolicyCreateRequest - The create server Threat Detection security alert policy request does not exist or has no properties object. * 400 DataSecurityInvalidUserSuppliedParameter - An invalid parameter value was provided by the client. * 400 UpsertServerSecurityAlertPolicyFailed - An error has occurred while saving Threat detection settings, please try again later * 400 UpsertServerSecurityAlertPolicyFailed - An error has occurred while saving Threat detection settings, please try again later * 404 SubscriptionDoesNotHaveServer - The requested server was not found * 404 UpsertServerSecurityAlertPolicyFailed - An error has occurred while saving Threat detection settings, please try again later * 409 ServerSecurityAlertPolicyInProgress - Set server security alert policy is already in progress * 409 UpsertServerSecurityAlertPolicyFailed - An error has occurred while saving Threat detection settings, please try again later * 500 DatabaseIsUnavailable - Loading failed. Please try again later. * 500 UpsertServerSecurityAlertPolicyFailed - An error has occurred while saving Threat detection settings, please try again later * 500 GetServerSecurityAlertPolicyFailed - Failed to get Threat Detection settings

## Changes

- **2019-03-13** (2017-03-01-preview) `9f03583376ba` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/sqlmanagementclient-13/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/managedInstances/:managedInstanceName/securityAlertPolicies/get.md)

---

[API](https://skmtc.dev/azure/apis/sqlmanagementclient-13.md) · [All operations](https://skmtc.dev/azure/apis/sqlmanagementclient-13/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/sqlmanagementclient-13/revisions/1d8c24acc55c/schema)
