mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 05:47:23 +00:00
Merge pull request #8978 from SujudAbuAtta/patch-1
Update exposed-apis-odata-samples.md
This commit is contained in:
commit
c5047637b1
@ -368,5 +368,44 @@ HTTP GET https://api.securitycenter.microsoft.com/api/machines/123321d0c675eaa4
|
|||||||
4
|
4
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Example 8
|
||||||
|
|
||||||
|
Get all the devices with 'computerDnsName' starting with 'mymachine':
|
||||||
|
|
||||||
|
```http
|
||||||
|
HTTP GET https://api.securitycenter.microsoft.com/api/machines?$filter=startswith(computerDnsName,'mymachine')
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response:**
|
||||||
|
|
||||||
|
```json
|
||||||
|
json{
|
||||||
|
"@odata.context": "https://api.securitycenter.microsoft.com/api/$metadata#Machines",
|
||||||
|
"value": [
|
||||||
|
{
|
||||||
|
"id": "1e5bc9d7e413ddd7902c2932e418702b84d0cc07",
|
||||||
|
"computerDnsName": "mymachine1.contoso.com",
|
||||||
|
"firstSeen": "2018-08-02T14:55:03.7791856Z",
|
||||||
|
"lastSeen": "2018-08-02T14:55:03.7791856Z",
|
||||||
|
"osPlatform": "Windows10",
|
||||||
|
"version": "1709",
|
||||||
|
"osProcessor": "x64",
|
||||||
|
"lastIpAddress": "172.17.230.209",
|
||||||
|
"lastExternalIpAddress": "167.220.196.71",
|
||||||
|
"osBuild": 18209,
|
||||||
|
"healthStatus": "ImpairedCommunication",
|
||||||
|
"rbacGroupId": 140,
|
||||||
|
"rbacGroupName": "The-A-Team",
|
||||||
|
"riskScore": "Low",
|
||||||
|
"exposureLevel": "Medium",
|
||||||
|
"isAadJoined": true,
|
||||||
|
"aadDeviceId": "80fe8ff8-2624-418e-9591-41f0491218f9",
|
||||||
|
"machineTags": [ "test tag 1", "ExampleTag" ]
|
||||||
|
},
|
||||||
|
...
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
- [Microsoft Defender for Endpoint APIs](apis-intro.md)
|
- [Microsoft Defender for Endpoint APIs](apis-intro.md)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user