Get Security Policies (GET Collection)
Published: July 13, 2016
Updated: July 12, 2016
Returns all available security policies. Minimally, the default policy is returned.
Method | Request Uri |
|---|---|
GET | https://<endpoint>/subscriptions/{subscriptionId}/providers/microsoft.Security/policies?api-version={api-version} |
Parameter | Description |
|---|---|
subscriptionId | The subscription id |
Api-version | The version of the Security RP protocol used for this request |
Common request headers only.
None.
If successful, the operation returns HTTP status code of 200 (OK).
{
“value”:
[
{
"id": "/subscriptions/{sub}/providers/Microsoft.Security/policies/{name}",
“type”: “Microsoft.Security/policies”,
“name”: {name} ,
“properties”:
{
"dataCollection": "Off",
"recommendations": {
"patch": "On",
"baseline": "On",
"antimalware": "On",
"acls": "On",
"waf": "On"
}
}
}
}
Parameter | Description |
|---|---|
Name | A unique identifier for the policy |
Data Collection | Log Collection ON/OFF |
Recommendations/patch | Turn ON/OFF patch scanner notifications |
Recommendations/baseline | Turn ON/OFF baseline scanner notifications |
Recommendations/antimalware | Turn ON/OFF antimalware protection task notifications |
Recommendations/acls | Turn ON/OFF ACL protection task notifications |
Recommendations/waf | Turn ON/OFF WAF protection task notifications |