Secure Scores - Get
Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. For the ASC Default initiative, use 'ascScore'.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores/{secureScoreName}?api-version=2020-01-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
secure
|
path | True |
|
The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample request below. |
subscription
|
path | True |
|
Azure subscription ID Regex pattern: |
api-version
|
query | True |
|
API version for the operation |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get single secure score
Sample Request
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/secureScores/ascScore?api-version=2020-01-01
Sample Response
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/secureScores/ascScore",
"name": "ascScore",
"type": "Microsoft.Security/secureScores",
"properties": {
"displayName": "ASC score",
"score": {
"max": 39,
"current": 23.53,
"percentage": 0.6033
},
"weight": 67
}
}
Definitions
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
Cloud |
The error detail. |
Error |
The resource management error additional info. |
Secure |
Secure score item data model |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
Name | Type | Description |
---|---|---|
error.additionalInfo |
The error additional info. |
|
error.code |
|
The error code. |
error.details |
The error details. |
|
error.message |
|
The error message. |
error.target |
|
The error target. |
CloudErrorBody
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
|
The error code. |
details |
The error details. |
|
message |
|
The error message. |
target |
|
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
|
The additional info. |
type |
|
The additional info type. |
SecureScoreItem
Secure score item data model
Name | Type | Description |
---|---|---|
id |
|
Resource Id |
name |
|
Resource name |
properties.displayName |
|
The initiative’s name |
properties.score.current |
|
Current score |
properties.score.max |
|
Maximum score available |
properties.score.percentage |
|
Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point |
properties.weight |
|
The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. |
type |
|
Resource type |