Microsoft.Security (preview:2024-08-01)

2025/04/07 • 2 new methods

DefenderForStorage_Get (new)
Description Gets the Defender for Storage settings for the specified storage account.
Reference Link ¶

⚼ Request

GET:  /{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}
{
api-version: string ,
resourceId: string ,
settingName: string ,
}

⚐ Response (200)

{
properties:
{
isEnabled: boolean ,
malwareScanning:
{
onUpload:
{
isEnabled: boolean ,
capGBPerMonth: integer ,
filters:
{
excludeBlobsWithPrefix:
[
string ,
]
,
excludeBlobsWithSuffix:
[
string ,
]
,
excludeBlobsLargerThan: string ,
}
,
}
,
scanResultsEventGridTopicResourceId: string ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
sensitiveDataDiscovery:
{
isEnabled: boolean ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
overrideSubscriptionLevelSettings: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
DefenderForStorage_Create (new)
Description Creates or updates the Defender for Storage settings on a specified storage account.
Reference Link ¶

⚼ Request

PUT:  /{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}
{
api-version: string ,
resourceId: string ,
settingName: string ,
defenderForStorageSetting:
{
properties:
{
isEnabled: boolean ,
malwareScanning:
{
onUpload:
{
isEnabled: boolean ,
capGBPerMonth: integer ,
filters:
{
excludeBlobsWithPrefix:
[
string ,
]
,
excludeBlobsWithSuffix:
[
string ,
]
,
excludeBlobsLargerThan: string ,
}
,
}
,
scanResultsEventGridTopicResourceId: string ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
sensitiveDataDiscovery:
{
isEnabled: boolean ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
overrideSubscriptionLevelSettings: boolean ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
isEnabled: boolean ,
malwareScanning:
{
onUpload:
{
isEnabled: boolean ,
capGBPerMonth: integer ,
filters:
{
excludeBlobsWithPrefix:
[
string ,
]
,
excludeBlobsWithSuffix:
[
string ,
]
,
excludeBlobsLargerThan: string ,
}
,
}
,
scanResultsEventGridTopicResourceId: string ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
sensitiveDataDiscovery:
{
isEnabled: boolean ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
overrideSubscriptionLevelSettings: boolean ,
}
,
}

⚐ Response (201)

{
properties:
{
isEnabled: boolean ,
malwareScanning:
{
onUpload:
{
isEnabled: boolean ,
capGBPerMonth: integer ,
filters:
{
excludeBlobsWithPrefix:
[
string ,
]
,
excludeBlobsWithSuffix:
[
string ,
]
,
excludeBlobsLargerThan: string ,
}
,
}
,
scanResultsEventGridTopicResourceId: string ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
sensitiveDataDiscovery:
{
isEnabled: boolean ,
operationStatus:
{
code: string ,
message: string ,
}
,
}
,
overrideSubscriptionLevelSettings: boolean ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}