Namespace: microsoft.graph
Wichtig
Die APIs unter der /beta Version in Microsoft Graph können sich ändern. Die Verwendung dieser APIs in Produktionsanwendungen wird nicht unterstützt. Um festzustellen, ob eine API in v1.0 verfügbar ist, verwenden Sie die Version Selektor.
Aktualisieren Sie mehrere Threat Intelligence-Indikatoren (TI) in einer Anforderung anstelle mehrerer Anforderungen.
Diese API ist in den folgenden nationalen Cloudbereitstellungen verfügbar.
| Weltweiter Service |
US Government L4 |
US Government L5 (DOD) |
China, betrieben von 21Vianet |
| ✅ |
❌ |
❌ |
❌ |
Berechtigungen
Wählen Sie die Berechtigungen aus, die für diese API als am wenigsten privilegiert markiert sind. Verwenden Sie eine höhere Berechtigung oder Berechtigungen nur, wenn Ihre App dies erfordert. Ausführliche Informationen zu delegierten Berechtigungen und Anwendungsberechtigungen finden Sie unter Berechtigungstypen. Weitere Informationen zu diesen Berechtigungen finden Sie in der Berechtigungsreferenz.
| Berechtigungstyp |
Berechtigungen mit den geringsten Berechtigungen |
Berechtigungen mit höheren Berechtigungen |
| Delegiert (Geschäfts-, Schul- oder Unikonto) |
ThreatIndicators.ReadWrite.OwnedBy |
Nicht verfügbar. |
| Delegiert (persönliches Microsoft-Konto) |
Nicht unterstützt |
Nicht unterstützt |
| Application |
ThreatIndicators.ReadWrite.OwnedBy |
Nicht verfügbar. |
HTTP-Anforderung
POST /security/tiIndicators/updateTiIndicators
Anforderungstext
Geben Sie im Anforderungstext ein JSON-Objekt mit den folgenden Parametern an. Ausführliche Informationen zu Eigenschaften, die aktualisiert werden können, finden Sie unter aktualisieren von tiIndicator. Erforderliche Felder für jeden tiIndicator sind: id, expirationDateTime, targetProduct.
| Parameter |
Typ |
Beschreibung |
| Wert |
tiIndicator-Auflistung |
Sammlung der zu aktualisierenden tiIndicators . Jede Entität muss über id und andere bearbeitbare Eigenschaften verfügen, um aktualisiert zu werden. |
Antwort
Wenn die Methode erfolgreich verläuft, werden der 200 OK Antwortcode und eine Auflistung von tiIndicator-Objekten im Antworttext zurückgegeben. Wenn ein Fehler auftritt, gibt diese Methode einen 206 Partial Content Antwortcode zurück. Weitere Informationen finden Sie unter Fehler .
Beispiele
Das folgende Beispiel illustriert, wie Sie diese API aufrufen können.
Anforderung
Das folgende Beispiel zeigt eine Anfrage.
POST https://graph.microsoft.com/beta/security/tiIndicators/updateTiIndicators
Content-type: application/json
{
"value": [
{
"id": "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
"additionalInformation": "mytest"
},
{
"id": "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",
"additionalInformation": "test again"
}
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Security.TiIndicators.UpdateTiIndicators;
using Microsoft.Graph.Beta.Models;
var requestBody = new UpdateTiIndicatorsPostRequestBody
{
Value = new List<TiIndicator>
{
new TiIndicator
{
Id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
AdditionalInformation = "mytest",
},
new TiIndicator
{
Id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",
AdditionalInformation = "test again",
},
},
};
// To initialize your graphClient, see https://v4.hkg1.meaqua.org/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.TiIndicators.UpdateTiIndicators.PostAsUpdateTiIndicatorsPostResponseAsync(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"
graphsecurity "github.com/microsoftgraph/msgraph-beta-sdk-go/security"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphsecurity.NewUpdateTiIndicatorsPostRequestBody()
tiIndicator := graphmodels.NewTiIndicator()
id := "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4"
tiIndicator.SetId(&id)
additionalInformation := "mytest"
tiIndicator.SetAdditionalInformation(&additionalInformation)
tiIndicator1 := graphmodels.NewTiIndicator()
id := "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e"
tiIndicator1.SetId(&id)
additionalInformation := "test again"
tiIndicator1.SetAdditionalInformation(&additionalInformation)
value := []graphmodels.TiIndicatorable {
tiIndicator,
tiIndicator1,
}
requestBody.SetValue(value)
// To initialize your graphClient, see https://v4.hkg1.meaqua.org/en-us/graph/sdks/create-client?from=snippets&tabs=go
updateTiIndicators, err := graphClient.Security().TiIndicators().UpdateTiIndicators().PostAsUpdateTiIndicatorsPostResponse(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.security.tiindicators.updatetiindicators.UpdateTiIndicatorsPostRequestBody updateTiIndicatorsPostRequestBody = new com.microsoft.graph.beta.security.tiindicators.updatetiindicators.UpdateTiIndicatorsPostRequestBody();
LinkedList<TiIndicator> value = new LinkedList<TiIndicator>();
TiIndicator tiIndicator = new TiIndicator();
tiIndicator.setId("c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4");
tiIndicator.setAdditionalInformation("mytest");
value.add(tiIndicator);
TiIndicator tiIndicator1 = new TiIndicator();
tiIndicator1.setId("e58c072b-c9bb-a5c4-34ce-eb69af44fb1e");
tiIndicator1.setAdditionalInformation("test again");
value.add(tiIndicator1);
updateTiIndicatorsPostRequestBody.setValue(value);
var result = graphClient.security().tiIndicators().updateTiIndicators().post(updateTiIndicatorsPostRequestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const tiIndicator = {
value: [
{
id: 'c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4',
additionalInformation: 'mytest'
},
{
id: 'e58c072b-c9bb-a5c4-34ce-eb69af44fb1e',
additionalInformation: 'test again'
}
]
};
await client.api('/security/tiIndicators/updateTiIndicators')
.version('beta')
.post(tiIndicator);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Security\TiIndicators\UpdateTiIndicators\UpdateTiIndicatorsPostRequestBody;
use Microsoft\Graph\Beta\Generated\Models\TiIndicator;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new UpdateTiIndicatorsPostRequestBody();
$valueTiIndicator1 = new TiIndicator();
$valueTiIndicator1->setId('c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4');
$valueTiIndicator1->setAdditionalInformation('mytest');
$valueArray []= $valueTiIndicator1;
$valueTiIndicator2 = new TiIndicator();
$valueTiIndicator2->setId('e58c072b-c9bb-a5c4-34ce-eb69af44fb1e');
$valueTiIndicator2->setAdditionalInformation('test again');
$valueArray []= $valueTiIndicator2;
$requestBody->setValue($valueArray);
$result = $graphServiceClient->security()->tiIndicators()->updateTiIndicators()->post($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
value = @(
@{
id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4"
additionalInformation = "mytest"
}
@{
id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e"
additionalInformation = "test again"
}
)
}
Update-MgBetaSecurityTiIndicatorMultiple -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.security.tiindicators.update_ti_indicators.update_ti_indicators_post_request_body import UpdateTiIndicatorsPostRequestBody
from msgraph_beta.generated.models.ti_indicator import TiIndicator
# To initialize your graph_client, see https://v4.hkg1.meaqua.org/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = UpdateTiIndicatorsPostRequestBody(
value = [
TiIndicator(
id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
additional_information = "mytest",
),
TiIndicator(
id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",
additional_information = "test again",
),
],
)
result = await graph_client.security.ti_indicators.update_ti_indicators.post(request_body)
Antwort
Das folgende Beispiel zeigt die Antwort.
Hinweis
Das hier gezeigte Antwortobjekt wird möglicherweise zur besseren Lesbarkeit verkürzt.
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.tiIndicator",
"id": "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
"azureTenantId": "XXXXXXXXXXXXXXXXXX",
"action": null,
"additionalInformation": "mytest",
"activityGroupNames": [],
"confidence": 0,
"description": "This is a test indicator for demo purpose. Take no action on any observables set in this indicator.",
}
]
}