Espace de noms : microsoft.graph.security
Importante
Les API sous la version /beta dans Microsoft Graph sont susceptibles d’être modifiées. L’utilisation de ces API dans des applications de production n’est pas prise en charge. Pour déterminer si une API est disponible dans v1.0, utilisez le sélecteur Version .
Mettez à jour les propriétés d’un objet ediscoveryCaseSettings .
Cette API est disponible dans les déploiements de cloud national suivants.
| Service global |
Gouvernement des États-Unis L4 |
Us Government L5 (DOD) |
Chine gérée par 21Vianet |
| ✅ |
✅ |
✅ |
❌ |
Autorisations
Choisissez l’autorisation ou les autorisations marquées comme moins privilégiées pour cette API. Utilisez une autorisation ou des autorisations privilégiées plus élevées uniquement si votre application en a besoin. Pour plus d’informations sur les autorisations déléguées et d’application, consultez Types d’autorisations. Pour en savoir plus sur ces autorisations, consultez les informations de référence sur les autorisations.
| Type d’autorisation |
Autorisations avec privilèges minimum |
Autorisations privilégiées plus élevées |
| Déléguée (compte professionnel ou scolaire) |
eDiscovery.ReadWrite.All |
Non disponible. |
| Déléguée (compte Microsoft personnel) |
Non prise en charge. |
Non prise en charge. |
| Application |
eDiscovery.ReadWrite.All |
Non disponible. |
Requête HTTP
PATCH /security/cases/ediscoveryCases/{ediscoveryCaseId}/settings
Corps de la demande
Dans le corps de la demande, fournissez uniquement les valeurs des propriétés à mettre à jour. Les propriétés existantes qui ne sont pas incluses dans le corps de la demande conservent leurs valeurs précédentes ou sont recalculées en fonction des modifications apportées à d’autres valeurs de propriété.
Le tableau suivant spécifie les propriétés qui peuvent être mises à jour.
Réponse
Si elle réussit, cette méthode renvoie un code de réponse 204 No Content.
Exemples
Demande
L’exemple suivant illustre une demande.
PATCH https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/settings
Content-Type: application/json
{
"@odata.type": "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity",
"redundancyDetection": {
"isEnabled": true,
"similarityThreshold": 65,
"minWords": 10,
"maxWords": 500000
},
"topicModeling": {
"isEnabled": false,
"ignoreNumbers": true,
"topicCount": 100,
"dynamicallyAdjustTopicCount": true
},
"ocr": {
"isEnabled": false,
"maxImageSize": 24576,
"timeout": "PT1M"
},
"caseType": "standard",
"reviewSetSettings": "disableGrouping"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.Security;
var requestBody = new EdiscoveryCaseSettings
{
OdataType = "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity",
RedundancyDetection = new RedundancyDetectionSettings
{
IsEnabled = true,
SimilarityThreshold = 65,
MinWords = 10,
MaxWords = 500000,
},
TopicModeling = new TopicModelingSettings
{
IsEnabled = false,
IgnoreNumbers = true,
TopicCount = 100,
DynamicallyAdjustTopicCount = true,
},
Ocr = new OcrSettings
{
IsEnabled = false,
MaxImageSize = 24576,
Timeout = TimeSpan.Parse("PT1M"),
},
CaseType = CaseType.Standard,
ReviewSetSettings = ReviewSetSettings.DisableGrouping,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.Cases.EdiscoveryCases["{ediscoveryCase-id}"].Settings.PatchAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphmodelssecurity "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security"
//other-imports
)
requestBody := graphmodelssecurity.NewEdiscoveryCaseSettings()
redundancyDetection := graphmodelssecurity.NewRedundancyDetectionSettings()
isEnabled := true
redundancyDetection.SetIsEnabled(&isEnabled)
similarityThreshold := int32(65)
redundancyDetection.SetSimilarityThreshold(&similarityThreshold)
minWords := int32(10)
redundancyDetection.SetMinWords(&minWords)
maxWords := int32(500000)
redundancyDetection.SetMaxWords(&maxWords)
requestBody.SetRedundancyDetection(redundancyDetection)
topicModeling := graphmodelssecurity.NewTopicModelingSettings()
isEnabled := false
topicModeling.SetIsEnabled(&isEnabled)
ignoreNumbers := true
topicModeling.SetIgnoreNumbers(&ignoreNumbers)
topicCount := int32(100)
topicModeling.SetTopicCount(&topicCount)
dynamicallyAdjustTopicCount := true
topicModeling.SetDynamicallyAdjustTopicCount(&dynamicallyAdjustTopicCount)
requestBody.SetTopicModeling(topicModeling)
ocr := graphmodelssecurity.NewOcrSettings()
isEnabled := false
ocr.SetIsEnabled(&isEnabled)
maxImageSize := int32(24576)
ocr.SetMaxImageSize(&maxImageSize)
timeout , err := abstractions.ParseISODuration("PT1M")
ocr.SetTimeout(&timeout)
requestBody.SetOcr(ocr)
caseType := graphmodels.STANDARD_CASETYPE
requestBody.SetCaseType(&caseType)
reviewSetSettings := graphmodels.DISABLEGROUPING_REVIEWSETSETTINGS
requestBody.SetReviewSetSettings(&reviewSetSettings)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
settings, err := graphClient.Security().Cases().EdiscoveryCases().ByEdiscoveryCaseId("ediscoveryCase-id").Settings().Patch(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.models.security.EdiscoveryCaseSettings ediscoveryCaseSettings = new com.microsoft.graph.beta.models.security.EdiscoveryCaseSettings();
ediscoveryCaseSettings.setOdataType("https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity");
com.microsoft.graph.beta.models.security.RedundancyDetectionSettings redundancyDetection = new com.microsoft.graph.beta.models.security.RedundancyDetectionSettings();
redundancyDetection.setIsEnabled(true);
redundancyDetection.setSimilarityThreshold(65);
redundancyDetection.setMinWords(10);
redundancyDetection.setMaxWords(500000);
ediscoveryCaseSettings.setRedundancyDetection(redundancyDetection);
com.microsoft.graph.beta.models.security.TopicModelingSettings topicModeling = new com.microsoft.graph.beta.models.security.TopicModelingSettings();
topicModeling.setIsEnabled(false);
topicModeling.setIgnoreNumbers(true);
topicModeling.setTopicCount(100);
topicModeling.setDynamicallyAdjustTopicCount(true);
ediscoveryCaseSettings.setTopicModeling(topicModeling);
com.microsoft.graph.beta.models.security.OcrSettings ocr = new com.microsoft.graph.beta.models.security.OcrSettings();
ocr.setIsEnabled(false);
ocr.setMaxImageSize(24576);
PeriodAndDuration timeout = PeriodAndDuration.ofDuration(Duration.parse("PT1M"));
ocr.setTimeout(timeout);
ediscoveryCaseSettings.setOcr(ocr);
ediscoveryCaseSettings.setCaseType(com.microsoft.graph.beta.models.security.CaseType.Standard);
ediscoveryCaseSettings.setReviewSetSettings(EnumSet.of(com.microsoft.graph.beta.models.security.ReviewSetSettings.DisableGrouping));
com.microsoft.graph.models.security.EdiscoveryCaseSettings result = graphClient.security().cases().ediscoveryCases().byEdiscoveryCaseId("{ediscoveryCase-id}").settings().patch(ediscoveryCaseSettings);
const options = {
authProvider,
};
const client = Client.init(options);
const ediscoveryCaseSettings = {
'@odata.type': 'https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases(\'b0073e4e-4184-41c6-9eb7-8c8cc3e2288b\')/settings/$entity',
redundancyDetection: {
isEnabled: true,
similarityThreshold: 65,
minWords: 10,
maxWords: 500000
},
topicModeling: {
isEnabled: false,
ignoreNumbers: true,
topicCount: 100,
dynamicallyAdjustTopicCount: true
},
ocr: {
isEnabled: false,
maxImageSize: 24576,
timeout: 'PT1M'
},
caseType: 'standard',
reviewSetSettings: 'disableGrouping'
};
await client.api('/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/settings')
.version('beta')
.update(ediscoveryCaseSettings);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\EdiscoveryCaseSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\RedundancyDetectionSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\TopicModelingSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\OcrSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseType;
use Microsoft\Graph\Beta\Generated\Models\Security\ReviewSetSettings;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new EdiscoveryCaseSettings();
$requestBody->setOdataType('https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases(\'b0073e4e-4184-41c6-9eb7-8c8cc3e2288b\')/settings/$entity');
$redundancyDetection = new RedundancyDetectionSettings();
$redundancyDetection->setIsEnabled(true);
$redundancyDetection->setSimilarityThreshold(65);
$redundancyDetection->setMinWords(10);
$redundancyDetection->setMaxWords(500000);
$requestBody->setRedundancyDetection($redundancyDetection);
$topicModeling = new TopicModelingSettings();
$topicModeling->setIsEnabled(false);
$topicModeling->setIgnoreNumbers(true);
$topicModeling->setTopicCount(100);
$topicModeling->setDynamicallyAdjustTopicCount(true);
$requestBody->setTopicModeling($topicModeling);
$ocr = new OcrSettings();
$ocr->setIsEnabled(false);
$ocr->setMaxImageSize(24576);
$ocr->setTimeout(new \DateInterval('PT1M'));
$requestBody->setOcr($ocr);
$requestBody->setCaseType(new CaseType('standard'));
$requestBody->setReviewSetSettings(new ReviewSetSettings('disableGrouping'));
$result = $graphServiceClient->security()->cases()->ediscoveryCases()->byEdiscoveryCaseId('ediscoveryCase-id')->settings()->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
"@odata.type" = "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity"
redundancyDetection = @{
isEnabled = $true
similarityThreshold = 65
minWords = 10
maxWords = 500000
}
topicModeling = @{
isEnabled = $false
ignoreNumbers = $true
topicCount = 100
dynamicallyAdjustTopicCount = $true
}
ocr = @{
isEnabled = $false
maxImageSize = 24576
timeout = "PT1M"
}
caseType = "standard"
reviewSetSettings = "disableGrouping"
}
Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.security.ediscovery_case_settings import EdiscoveryCaseSettings
from msgraph_beta.generated.models.security.redundancy_detection_settings import RedundancyDetectionSettings
from msgraph_beta.generated.models.security.topic_modeling_settings import TopicModelingSettings
from msgraph_beta.generated.models.security.ocr_settings import OcrSettings
from msgraph_beta.generated.models.case_type import CaseType
from msgraph_beta.generated.models.review_set_settings import ReviewSetSettings
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = EdiscoveryCaseSettings(
odata_type = "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity",
redundancy_detection = RedundancyDetectionSettings(
is_enabled = True,
similarity_threshold = 65,
min_words = 10,
max_words = 500000,
),
topic_modeling = TopicModelingSettings(
is_enabled = False,
ignore_numbers = True,
topic_count = 100,
dynamically_adjust_topic_count = True,
),
ocr = OcrSettings(
is_enabled = False,
max_image_size = 24576,
timeout = "PT1M",
),
case_type = CaseType.Standard,
review_set_settings = ReviewSetSettings.DisableGrouping,
)
result = await graph_client.security.cases.ediscovery_cases.by_ediscovery_case_id('ediscoveryCase-id').settings.patch(request_body)
Réponse
L’exemple suivant illustre la réponse.
HTTP/1.1 204 No Content