forked from abdelbahgat/microsoft-graph-docs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7384 from abhishekkp09/security-defaults-api-docs
Add documentation for Azure AD security defaults API
- Loading branch information
Showing
6 changed files
with
277 additions
and
0 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
api-reference/beta/api/identitysecuritydefaultsenforcementpolicy-get.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
title: "Get identitySecurityDefaultsEnforcementPolicy" | ||
description: "Retrieve the properties and relationships of identitysecuritydefaultsenforcementpolicy object." | ||
localization_priority: Normal | ||
author: "davidmu1" | ||
ms.prod: "microsoft-identity-platform" | ||
doc_type: apiPageType | ||
--- | ||
|
||
# Get identitySecurityDefaultsEnforcementPolicy | ||
|
||
Namespace: microsoft.graph | ||
|
||
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] | ||
|
||
Retrieve the properties of an [identitySecurityDefaultsEnforcementPolicy](../resources/identitysecuritydefaultsenforcementpolicy.md) object. | ||
|
||
## Permissions | ||
|
||
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference). | ||
|
||
| Permission type | Permissions (from least to most privileged) | | ||
|:---------------------------------------|:--------------------------------------------| | ||
| Delegated (work or school account) | Policy.Read.All | | ||
| Delegated (personal Microsoft account) | Not supported. | | ||
| Application | Policy.Read.All | | ||
|
||
## HTTP request | ||
|
||
<!-- { "blockType": "ignored" } --> | ||
|
||
```http | ||
GET /policies/identitySecurityDefaultsEnforcementPolicy | ||
``` | ||
|
||
## Optional query parameters | ||
|
||
This method supports the `select` OData query parameter to help customize the response. For general information, see [OData query parameters](/graph/query-parameters). | ||
|
||
## Request headers | ||
|
||
| Name |Description| | ||
|:----------|:----------| | ||
| Authorization | Bearer {token}. Required. | | ||
|
||
## Request body | ||
|
||
Do not supply a request body for this method. | ||
|
||
## Response | ||
|
||
If successful, this method returns a `200 OK` response code and the requested [identitySecurityDefaultsEnforcementPolicy](../resources/identitysecuritydefaultsenforcementpolicy.md) object in the response body. | ||
|
||
## Examples | ||
|
||
### Request | ||
|
||
The following is an example of the request. | ||
<!-- { | ||
"blockType": "request", | ||
"name": "get_identitysecuritydefaultsenforcementpolicy" | ||
}--> | ||
|
||
```http | ||
GET https://graph.microsoft.com/beta/policies/identitySecurityDefaultsEnforcementPolicy | ||
``` | ||
|
||
### Response | ||
|
||
The following is an example of the response. | ||
|
||
> **Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call. | ||
<!-- { | ||
"blockType": "response", | ||
"truncated": true, | ||
"@odata.type": "microsoft.graph.identitySecurityDefaultsEnforcementPolicy" | ||
} --> | ||
|
||
```http | ||
HTTP/1.1 200 OK | ||
Content-type: application/json | ||
{ | ||
"@odata.context": "https://graph.microsoft.com/beta/$metadata#policies/identitySecurityDefaultsEnforcementPolicy", | ||
"description": "Security defaults is a set of basic identity security mechanisms recommended by Microsoft. When enabled, these recommendations will be automatically enforced in your organization. Administrators and users will be better protected from common identity related attacks.", | ||
"displayName": "Security Defaults", | ||
"id": "00000000-0000-0000-0000-000000000005", | ||
"isEnabled": true | ||
} | ||
``` | ||
|
||
<!-- uuid: 16cd6b66-4b1a-43a1-adaf-3a886856ed98 | ||
2019-02-04 14:57:30 UTC --> | ||
<!-- { | ||
"type": "#page.annotation", | ||
"description": "Get identitySecurityDefaultsEnforcementPolicy", | ||
"keywords": "", | ||
"section": "documentation", | ||
"tocPath": "" | ||
}--> |
96 changes: 96 additions & 0 deletions
96
api-reference/beta/api/identitysecuritydefaultsenforcementpolicy-update.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
--- | ||
title: "Update identitySecurityDefaultsEnforcementPolicy" | ||
description: "Update the properties of an identitySecurityDefaultsEnforcementPolicy object." | ||
localization_priority: Normal | ||
author: "davidmu1" | ||
ms.prod: "microsoft-identity-platform" | ||
doc_type: apiPageType | ||
--- | ||
|
||
# Update identitySecurityDefaultsEnforcementPolicy | ||
|
||
Namespace: microsoft.graph | ||
|
||
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] | ||
|
||
Update the properties of an [identitySecurityDefaultsEnforcementPolicy](../resources/identitysecuritydefaultsenforcementpolicy.md) object. | ||
|
||
## Permissions | ||
|
||
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference). | ||
|
||
| Permission type | Permissions (from least to most privileged) | | ||
|:---------------------------------------|:--------------------------------------------| | ||
| Delegated (work or school account) | Policy.Readwrite.ConditionalAccess | | ||
| Delegated (personal Microsoft account) | Not supported. | | ||
| Application | Policy.Readwrite.ConditionalAccess | | ||
|
||
## HTTP request | ||
|
||
<!-- { "blockType": "ignored" } --> | ||
|
||
```http | ||
PATCH /policies/identitySecurityDefaultsEnforcementPolicy | ||
``` | ||
|
||
## Request headers | ||
|
||
| Name | Description| | ||
|:-----------|:-----------| | ||
| Authorization | Bearer {token}. Required. | | ||
| Content-type | application/json. Required. | | ||
|
||
## Request body | ||
|
||
In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed. | ||
|
||
| Property | Type | Description | | ||
|:-------------|:------------|:------------| | ||
|isEnabled|Boolean|If set to true, Azure Active Directory security defaults is enabled for the tenant.| | ||
|
||
## Response | ||
|
||
If successful, this method returns a `204 No Content` response code. It does not return anything in the response body. | ||
|
||
## Examples | ||
|
||
### Request | ||
|
||
The following is an example of the request. | ||
<!-- { | ||
"blockType": "request", | ||
"name": "update_identitysecuritydefaultsenforcementpolicy" | ||
}--> | ||
|
||
```http | ||
PATCH https://graph.microsoft.com/beta/policies/identitySecurityDefaultsEnforcementPolicy | ||
Content-type: application/json | ||
{ | ||
"isEnabled": false | ||
} | ||
``` | ||
|
||
### Response | ||
|
||
The following is an example of the response. | ||
|
||
<!-- { | ||
"blockType": "response", | ||
"truncated": true, | ||
"@odata.type": "microsoft.graph.identitySecurityDefaultsEnforcementPolicy" | ||
} --> | ||
|
||
```http | ||
HTTP/1.1 204 No Content | ||
``` | ||
|
||
<!-- uuid: 16cd6b66-4b1a-43a1-adaf-3a886856ed98 | ||
2019-02-04 14:57:30 UTC --> | ||
<!-- { | ||
"type": "#page.annotation", | ||
"description": "Update identitysecuritydefaultsenforcementpolicy", | ||
"keywords": "", | ||
"section": "documentation", | ||
"tocPath": "" | ||
}--> |
71 changes: 71 additions & 0 deletions
71
api-reference/beta/resources/identitysecuritydefaultsenforcementpolicy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: "identitySecurityDefaultsEnforcementPolicy resource type" | ||
description: "Represents the Azure Active Directory security defaults policy. Security defaults contain preconfigured security settings that protect against common attacks." | ||
localization_priority: Normal | ||
author: "davidmu1" | ||
ms.prod: "microsoft-identity-platform" | ||
doc_type: apiPageType | ||
--- | ||
|
||
# identitySecurityDefaultsEnforcementPolicy resource type | ||
|
||
Namespace: microsoft.graph | ||
|
||
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] | ||
|
||
Represents the Azure Active Directory [security defaults](https://docs.microsoft.com/azure/active-directory/fundamentals/concept-fundamentals-security-defaults) policy. Security defaults contain preconfigured security settings that protect against common attacks. | ||
|
||
Inherits from [policyBase](../resources/policybase.md). | ||
|
||
## Methods | ||
|
||
| Method | Return Type | Description | | ||
|:-------------|:------------|:------------| | ||
| [Get](../api/identitysecuritydefaultsenforcementpolicy-get.md) | [identitySecurityDefaultsEnforcementPolicy](identitysecuritydefaultsenforcementpolicy.md) | Read the properties of an **identitySecurityDefaultsEnforcementPolicy** object. | | ||
| [Update](../api/identitysecuritydefaultsenforcementpolicy-update.md) | [identitySecurityDefaultsEnforcementPolicy](identitysecuritydefaultsenforcementpolicy.md) | Update an **identitySecurityDefaultsEnforcementPolicy** object. | | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
|:-------------|:------------|:------------| | ||
|description|String|Description for this policy. Read-only.| | ||
|displayName|String|Display name for this policy. Read-only.| | ||
|id|String|Identifier for this policy. Read-only.| | ||
|isEnabled|Boolean|If set to true, Azure Active Directory security defaults is enabled for the tenant.| | ||
|
||
## Relationships | ||
|
||
None. | ||
|
||
## JSON representation | ||
|
||
The following is a JSON representation of the resource. | ||
|
||
<!-- { | ||
"blockType": "resource", | ||
"optionalProperties": [ | ||
], | ||
"@odata.type": "microsoft.graph.identitySecurityDefaultsEnforcementPolicy", | ||
"baseType": "", | ||
"keyProperty": "id" | ||
}--> | ||
|
||
```json | ||
{ | ||
"description": "String", | ||
"displayName": "String", | ||
"id": "String (identifier)", | ||
"isEnabled": true | ||
} | ||
``` | ||
|
||
<!-- uuid: 16cd6b66-4b1a-43a1-adaf-3a886856ed98 | ||
2019-02-04 14:57:30 UTC --> | ||
<!-- { | ||
"type": "#page.annotation", | ||
"description": "identitySecurityDefaultsEnforcementPolicy resource", | ||
"keywords": "", | ||
"section": "documentation", | ||
"tocPath": "" | ||
}--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters