mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 13:57:22 +00:00
Update exposed-apis-create-app-webapp.md
This commit is contained in:
parent
3a5f7d06b3
commit
ed09a7ad6d
@ -35,7 +35,7 @@ In general, you’ll need to take the following steps to use the APIs:
|
|||||||
- Get an access token using this application.
|
- Get an access token using this application.
|
||||||
- Use the token to access Defender for Endpoint API.
|
- Use the token to access Defender for Endpoint API.
|
||||||
|
|
||||||
This article explains how to create an Azure AD application, get an access token to Defender for Endpoint, and validate the token.
|
This article explains how to create an Azure AD application, get an access token to Microsoft Defender for Endpoint, and validate the token.
|
||||||
|
|
||||||
## Create an app
|
## Create an app
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ This article explains how to create an Azure AD application, get an access token
|
|||||||
4. To enable your app to access Defender for Endpoint and assign it **'Read all alerts'** permission, on your application page, select **API Permissions** > **Add permission** > **APIs my organization uses** >, type **WindowsDefenderATP**, and then select **WindowsDefenderATP**.
|
4. To enable your app to access Defender for Endpoint and assign it **'Read all alerts'** permission, on your application page, select **API Permissions** > **Add permission** > **APIs my organization uses** >, type **WindowsDefenderATP**, and then select **WindowsDefenderATP**.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> WindowsDefenderATP does not appear in the original list. You need to start writing its name in the text box to see it appear.
|
> *WindowsDefenderATP* does not appear in the original list. Start writing its name in the text box to see it appear.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -82,9 +82,9 @@ This article explains how to create an Azure AD application, get an access token
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
8. **For Defender for Endpoint Partners only**. Set your app to be multi-tenanted (available in all tenants after consent). This is **required** for third-party apps (for example, if you create an app that is intended to run in multiple customers' tenant). This is **not required** if you create a service that you want to run in your tenant only (for example, if you create an application for your own usage that will only interact with your own data). To set your app to be multi-tenanted:
|
8. **For Microsoft Defender for Endpoint Partners only**. Set your app to be multi-tenanted (available in all tenants after consent). This is **required** for third-party apps (for example, if you create an app that is intended to run in multiple customers' tenant). This is **not required** if you create a service that you want to run in your tenant only (for example, if you create an application for your own usage that will only interact with your own data). To set your app to be multi-tenanted:
|
||||||
|
|
||||||
- Go to **Authentication**, and add https://portal.azure.com as the **Redirect URI**.
|
- Go to **Authentication**, and add `https://portal.azure.com` as the **Redirect URI**.
|
||||||
|
|
||||||
- On the bottom of the page, under **Supported account types**, select the **Accounts in any organizational directory** application consent for your multi-tenant app.
|
- On the bottom of the page, under **Supported account types**, select the **Accounts in any organizational directory** application consent for your multi-tenant app.
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ Ensure that you got the correct token:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Use the token to access Defender for Endpoint API
|
## Use the token to access Microsoft Defender for Endpoint API
|
||||||
|
|
||||||
1. Choose the API you want to use. For more information, see [Supported Defender for Endpoint APIs](exposed-apis-list.md).
|
1. Choose the API you want to use. For more information, see [Supported Defender for Endpoint APIs](exposed-apis-list.md).
|
||||||
1. Set the authorization header in the http request you send to "Bearer {token}" (Bearer is the authorization scheme).
|
1. Set the authorization header in the http request you send to "Bearer {token}" (Bearer is the authorization scheme).
|
||||||
@ -213,6 +213,6 @@ The following is an example of sending a request to get a list of alerts **using
|
|||||||
// Do something useful with the response
|
// Do something useful with the response
|
||||||
```
|
```
|
||||||
|
|
||||||
## Related topics
|
## See also
|
||||||
- [Supported Defender for Endpoint APIs](exposed-apis-list.md)
|
- [Supported Microsoft Defender for Endpoint APIs](exposed-apis-list.md)
|
||||||
- [Access Defender for Endpoint on behalf of a user](exposed-apis-create-app-nativeapp.md)
|
- [Access Microsoft Defender for Endpoint on behalf of a user](exposed-apis-create-app-nativeapp.md)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user