Sensitivity Settings - Create Or Update
Create or update data sensitivity settings for sensitive data discovery
PUT https://management.azure.com/providers/Microsoft.Security/sensitivitySettings/current?api-version=2023-02-15-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
API version for the operation |
Request Body
Name | Required | Type | Description |
---|---|---|---|
sensitiveInfoTypesIds | True |
string[] |
List of selected sensitive info types' IDs. |
sensitivityThresholdLabelId |
string |
The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. |
|
sensitivityThresholdLabelOrder |
number |
The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Success of the sensitivity settings update |
|
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
Update sensitivity settings
Sample request
PUT https://management.azure.com/providers/Microsoft.Security/sensitivitySettings/current?api-version=2023-02-15-preview
{
"sensitiveInfoTypesIds": [
"f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb",
"b452f22b-f87d-4f48-8490-ecf0873325b5",
"d59ee8b6-2618-404b-a5e7-aa377cd67543"
],
"sensitivityThresholdLabelOrder": 2,
"sensitivityThresholdLabelId": "f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb"
}
Sample response
{
"id": "/providers/Microsoft.Security/sensitivitySettings",
"name": "current",
"type": "Microsoft.Security/sensitivitySettings",
"properties": {
"sensitiveInfoTypesIds": [
"a98fde82-45b6-4b2c-afd0-ad579cd9f826",
"4d0d3eb6-619f-4c8c-810c-c16150c95278",
"0e9b3178-9678-47dd-a509-37222ca96b42",
"c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b"
],
"sensitivityThresholdLabelOrder": 2,
"mipInformation": {
"mipIntegrationStatus": "Ok",
"labels": [
{
"name": "Public",
"id": "fdfb5435-124d-4651-a889-a4210fec6a77",
"order": 0
},
{
"name": "Confidential",
"id": "4c5447ec-f7f3-4345-a160-6a5850f2bf0c",
"order": 1
},
{
"name": "Highly Confidential",
"id": "f38ac75c-f42a-4c89-aa37-9c4e74101414",
"order": 2
}
],
"customInfoTypes": [
{
"name": "User created custom info type 1",
"id": "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b",
"description": "Custom info type description"
},
{
"name": "User created custom info type 2",
"id": "a4fee2b6-5618-404b-a5e7-aa377cd67543",
"description": "Custom info type description"
},
{
"name": "User created custom info type 3",
"id": "a355f11e-f87d-4f48-8490-ecf0873325b5",
"description": "Custom info type description"
}
],
"builtInInfoTypes": [
{
"name": "Http Authorization Header",
"type": "Credentials",
"id": "4d0d3eb6-619f-4c8c-810c-c16150c95278"
},
{
"name": "User Login Credentials",
"type": "Credentials",
"id": "a98fde82-45b6-4b2c-afd0-ad579cd9f826"
},
{
"name": "Credit card number",
"type": "Finance",
"id": "50842eb7-edc8-4019-85dd-5a5c1f2bb085"
},
{
"name": "EU debit card number",
"type": "Finance",
"id": "0e9b3178-9678-47dd-a509-37222ca96b42"
}
]
}
}
}
Definitions
Name | Description |
---|---|
Built |
Pre-configured sensitive information type |
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. |
Get |
Data sensitivity settings for sensitive data discovery |
Info |
Custom user-defined information type |
Label |
Microsoft information protection sensitivity label |
Mip |
Microsoft information protection built-in and custom information types, labels, and integration status. |
Mip |
Microsoft information protection integration status |
Properties |
The sensitivity settings properties |
Update |
Request to update data sensitivity settings for sensitive data discovery |
BuiltInInfoType
Pre-configured sensitive information type
Name | Type | Description |
---|---|---|
id |
string |
Id of the info type |
name |
string |
Display name of the info type |
type |
string |
Category of the built-in info type |
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 |
string |
The error code. |
error.details |
The error details. |
|
error.message |
string |
The error message. |
error.target |
string |
The error target. |
CloudErrorBody
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
GetSensitivitySettingsResponse
Data sensitivity settings for sensitive data discovery
Name | Type | Description |
---|---|---|
id |
string |
The ID of the sensitivity settings |
name |
string |
The name of the sensitivity settings |
properties |
The sensitivity settings properties |
|
type |
string |
The type of the sensitivity settings |
InfoType
Custom user-defined information type
Name | Type | Description |
---|---|---|
description |
string |
Description of the info type |
id |
string |
Id of the info type |
name |
string |
Display name of the info type |
Label
Microsoft information protection sensitivity label
Name | Type | Description |
---|---|---|
id |
string |
The ID of the label |
name |
string |
The display name of the label |
order |
number |
Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is. |
MipInformation
Microsoft information protection built-in and custom information types, labels, and integration status.
Name | Type | Description |
---|---|---|
builtInInfoTypes |
List of pre-configured sensitive information types |
|
customInfoTypes |
Info |
List of custom user-defined information types |
labels |
Label[] |
List of Microsoft information protection sensitivity labels |
mipIntegrationStatus |
Microsoft information protection integration status |
MipIntegrationStatus
Microsoft information protection integration status
Name | Type | Description |
---|---|---|
Ok |
string |
|
noAutoLabelingRules |
string |
|
noConsent |
string |
|
noMipLabels |
string |
Properties
The sensitivity settings properties
Name | Type | Description |
---|---|---|
mipInformation |
Microsoft information protection built-in and custom information types, labels, and integration status. |
|
sensitiveInfoTypesIds |
string[] |
List of selected sensitive info types' IDs. |
sensitivityThresholdLabelId |
string |
The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. |
sensitivityThresholdLabelOrder |
number |
The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off |
UpdateSensitivitySettingsRequest
Request to update data sensitivity settings for sensitive data discovery
Name | Type | Description |
---|---|---|
sensitiveInfoTypesIds |
string[] |
List of selected sensitive info types' IDs. |
sensitivityThresholdLabelId |
string |
The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. |
sensitivityThresholdLabelOrder |
number |
The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off |