Delen via


Settings - Update

instellingen bijwerken over verschillende configuraties in Microsoft Defender voor Cloud

PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}?api-version=2022-05-01

URI-parameters

Name In Vereist Type Description
settingName
path True

SettingName

De naam van de instelling

subscriptionId
path True

string

Azure-abonnements-id

Regex-patroon: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$

api-version
query True

string

API-versie voor de bewerking

Aanvraagbody

De aanvraagtekst kan een van de volgende zijn:

Name Description
AlertSyncSettings

Vertegenwoordigt een waarschuwingssynchronisatie-instelling

DataExportSettings

Vertegenwoordigt een instelling voor het exporteren van gegevens

AlertSyncSettings

Vertegenwoordigt een waarschuwingssynchronisatie-instelling

Name Vereist Type Description
kind True string:

AlertSyncSettings

het type instellingentekenreeks

properties.enabled True

boolean

Is de instelling voor waarschuwingssynchronisatie ingeschakeld

DataExportSettings

Vertegenwoordigt een instelling voor het exporteren van gegevens

Name Vereist Type Description
kind True string:

DataExportSettings

het type instellingentekenreeks

properties.enabled True

boolean

Is de instelling voor gegevensexport ingeschakeld

Antwoorden

Name Type Description
200 OK Setting:

OK

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Update a setting for subscription

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/settings/WDATP?api-version=2022-05-01

{
  "kind": "DataExportSettings",
  "properties": {
    "enabled": true
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/settings/WDATP",
  "name": "WDATP",
  "kind": "DataExportSettings",
  "type": "Microsoft.Security/settings",
  "properties": {
    "enabled": true
  }
}

Definities

Name Description
AlertSyncSettings

Vertegenwoordigt een waarschuwingssynchronisatie-instelling

CloudError

Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.)

CloudErrorBody

De foutdetails.

DataExportSettings

Vertegenwoordigt een instelling voor het exporteren van gegevens

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

SettingName

De naam van de instelling

AlertSyncSettings

Vertegenwoordigt een waarschuwingssynchronisatie-instelling

Name Type Description
id

string

Resource-id

kind string:

AlertSyncSettings

het type instellingentekenreeks

name

string

Resourcenaam

properties.enabled

boolean

Is de instelling voor waarschuwingssynchronisatie ingeschakeld

type

string

Resourcetype

CloudError

Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.)

Name Type Description
error.additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

error.code

string

De foutcode.

error.details

CloudErrorBody[]

De foutdetails.

error.message

string

Het foutbericht.

error.target

string

Het foutdoel.

CloudErrorBody

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

CloudErrorBody[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

DataExportSettings

Vertegenwoordigt een instelling voor het exporteren van gegevens

Name Type Description
id

string

Resource-id

kind string:

DataExportSettings

het type instellingentekenreeks

name

string

Resourcenaam

properties.enabled

boolean

Is de instelling voor gegevensexport ingeschakeld

type

string

Resourcetype

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

SettingName

De naam van de instelling

Name Type Description
MCAS

string

Sentinel

string

WDATP

string

WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW

string

WDATP_UNIFIED_SOLUTION

string