Defender For Storage - Create
Létrehozza vagy frissíti a Defender for Storage beállításait egy adott tárfiókon.
PUT https://management.azure.com/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/current?api-version=2022-12-01-preview
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Az erőforrás azonosítója. |
setting
|
path | True |
A Defender for Storage beállítás neve. Regex pattern: |
|
api-version
|
query | True |
string |
A művelet API-verziója |
Kérelem törzse
Name | Típus | Description |
---|---|---|
properties.isEnabled |
boolean |
Azt jelzi, hogy a Defender for Storage engedélyezve van-e ezen a tárfiókon. |
properties.malwareScanning.onUpload.capGBPerMonth |
integer |
Meghatározza a havonta vizsgálandó maximális GB-t. Állítsa -1 értékre, ha nincs szükség korlátra. |
properties.malwareScanning.onUpload.isEnabled |
boolean |
Azt jelzi, hogy engedélyezve kell-e lennie a kártevő-ellenőrzés feltöltése után. |
properties.malwareScanning.scanResultsEventGridTopicResourceId |
string |
Választható. Egy Event Grid-témakör erőforrás-azonosítója a vizsgálati eredmények elküldéséhez. |
properties.overrideSubscriptionLevelSettings |
boolean |
Azt jelzi, hogy a tárfiókhoz megadott beállítások felülbírálják-e az előfizetéshez megadott beállításokat. |
properties.sensitiveDataDiscovery.isEnabled |
boolean |
Azt jelzi, hogy engedélyezni kell-e a bizalmas adatfelderítést. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
Sikeres kérés a Defender for Storage beállításainak létrehozására vagy frissítésére. |
|
201 Created |
A Defender for Storage beállításainak létrehozása vagy frissítése részben sikerült. |
|
Other Status Codes |
Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg. |
Biztonság
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 | felhasználói fiók megszemélyesítése |
Példák
Creates or updates the Defender for Storage settings on a specified resource.
Sample Request
PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount/providers/Microsoft.Security/defenderForStorageSettings/current?api-version=2022-12-01-preview
{
"properties": {
"isEnabled": true,
"malwareScanning": {
"onUpload": {
"isEnabled": true,
"capGBPerMonth": -1
},
"scanResultsEventGridTopicResourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.EventGrid/topics/sampletopic"
},
"sensitiveDataDiscovery": {
"isEnabled": true
},
"overrideSubscriptionLevelSettings": true
}
}
Sample Response
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount/providers/Microsoft.Security/defenderForStorageSettings/current",
"type": "Microsoft.Security/defenderForStorageSettings",
"name": "current",
"properties": {
"isEnabled": true,
"malwareScanning": {
"onUpload": {
"isEnabled": true,
"capGBPerMonth": -1
},
"scanResultsEventGridTopicResourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.EventGrid/topics/sampletopic",
"operationStatus": {
"code": "Succeeded"
}
},
"sensitiveDataDiscovery": {
"isEnabled": true,
"operationStatus": {
"code": "Succeeded"
}
},
"overrideSubscriptionLevelSettings": true
}
}
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount/providers/Microsoft.Security/defenderForStorageSettings/current",
"type": "Microsoft.Security/defenderForStorageSettings",
"name": "current",
"properties": {
"isEnabled": true,
"malwareScanning": {
"onUpload": {
"isEnabled": false,
"capGBPerMonth": -1
},
"operationStatus": {
"code": "UnknownError",
"message": "Failed to setup data scanner."
}
},
"sensitiveDataDiscovery": {
"isEnabled": false,
"operationStatus": {
"code": "UnknownError",
"message": "Failed to setup data scanner."
}
},
"overrideSubscriptionLevelSettings": true
}
}
Definíciók
Name | Description |
---|---|
Cloud |
Az összes Azure Resource Manager API gyakori hibaválasza a sikertelen műveletek hibaadatainak visszaadásához. (Ez az OData hibaválasz formátumát is követi.) |
Cloud |
A hiba részletei. |
Defender |
A Defender for Storage erőforrás. |
Error |
Az erőforrás-kezelési hiba további információi. |
Operation |
Az engedélyezési/letiltási művelet sikerességét/sikertelenségét leíró állapot. |
setting |
A Defender for Storage beállítás neve. |
CloudError
Az összes Azure Resource Manager API gyakori hibaválasza a sikertelen műveletek hibaadatainak visszaadásához. (Ez az OData hibaválasz formátumát is követi.)
Name | Típus | Description |
---|---|---|
error.additionalInfo |
A hiba további információi. |
|
error.code |
string |
A hibakód. |
error.details |
A hiba részletei. |
|
error.message |
string |
A hibaüzenet. |
error.target |
string |
A hibacél. |
CloudErrorBody
A hiba részletei.
Name | Típus | Description |
---|---|---|
additionalInfo |
A hiba további információi. |
|
code |
string |
A hibakód. |
details |
A hiba részletei. |
|
message |
string |
A hibaüzenet. |
target |
string |
A hibacél. |
DefenderForStorageSetting
A Defender for Storage erőforrás.
Name | Típus | Description |
---|---|---|
id |
string |
Erőforrás-azonosító |
name |
string |
Erőforrás neve |
properties.isEnabled |
boolean |
Azt jelzi, hogy a Defender for Storage engedélyezve van-e ezen a tárfiókon. |
properties.malwareScanning.onUpload.capGBPerMonth |
integer |
Meghatározza a havonta vizsgálandó maximális GB-t. Állítsa -1 értékre, ha nincs szükség korlátra. |
properties.malwareScanning.onUpload.isEnabled |
boolean |
Azt jelzi, hogy engedélyezve kell-e lennie a kártevő-ellenőrzés feltöltése után. |
properties.malwareScanning.operationStatus |
Hiba vagy részleges siker esetén. A kártevő-vizsgálat engedélyezését/letiltását ismertető további adatok. |
|
properties.malwareScanning.scanResultsEventGridTopicResourceId |
string |
Választható. Egy Event Grid-témakör erőforrás-azonosítója a vizsgálati eredmények elküldéséhez. |
properties.overrideSubscriptionLevelSettings |
boolean |
Azt jelzi, hogy a tárfiókhoz megadott beállítások felülbírálják-e az előfizetéshez megadott beállításokat. |
properties.sensitiveDataDiscovery.isEnabled |
boolean |
Azt jelzi, hogy engedélyezni kell-e a bizalmas adatfelderítést. |
properties.sensitiveDataDiscovery.operationStatus |
Hiba vagy részleges siker esetén. A bizalmas adatfelderítés engedélyezését/letiltását ismertető további adatok. |
|
type |
string |
Erőforrás típusa |
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
Name | Típus | Description |
---|---|---|
info |
object |
A további információk. |
type |
string |
A további információtípus. |
OperationStatus
Az engedélyezési/letiltási művelet sikerességét/sikertelenségét leíró állapot.
Name | Típus | Description |
---|---|---|
code |
string |
A művelet állapotkódja. |
message |
string |
További információ a művelet sikerességéről/sikertelenségéről. |
settingName
A Defender for Storage beállítás neve.
Name | Típus | Description |
---|---|---|
current |
string |
A Defender for Storage-beállítások neve. |