Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Delete multiple threat intelligence (TI) indicators in one request instead of multiple requests.
This API is available in the following national cloud deployments.
Global service |
US Government L4 |
US Government L5 (DOD) |
China operated by 21Vianet |
✅ |
❌ |
❌ |
❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type |
Least privileged permissions |
Higher privileged permissions |
Delegated (work or school account) |
ThreatIndicators.ReadWrite.OwnedBy |
Not available. |
Delegated (personal Microsoft account) |
Not supported. |
Not supported. |
Application |
ThreatIndicators.ReadWrite.OwnedBy |
Not available. |
HTTP request
POST /security/tiIndicators/deleteTiIndicators
Request body
In the request body, provide a JSON object with the following parameters.
Parameter |
Type |
Description |
value |
String collection |
Collection of tiIndicator id s to be deleted. |
Response
If successful, this method returns 200, OK
response code and a resultInfo collection object in the response body. If there is an error, this method returns a 206 Partial Content
response code. See Errors for more information.
Examples
The following example shows how to call this API.
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/security/tiIndicators/deleteTiIndicators
Content-type: application/json
{
"value": [
"id-value1",
"id-value2"
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Security.TiIndicators.DeleteTiIndicators;
var requestBody = new DeleteTiIndicatorsPostRequestBody
{
Value = new List<string>
{
"id-value1",
"id-value2",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.TiIndicators.DeleteTiIndicators.PostAsDeleteTiIndicatorsPostResponseAsync(requestBody);
mgc-beta security ti-indicators delete-ti-indicators post --body '{\
"value": [\
"id-value1",\
"id-value2"\
]\
}\
'
// 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"
//other-imports
)
requestBody := graphsecurity.NewDeleteTiIndicatorsPostRequestBody()
value := []string {
"id-value1",
"id-value2",
}
requestBody.SetValue(value)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
deleteTiIndicators, err := graphClient.Security().TiIndicators().DeleteTiIndicators().PostAsDeleteTiIndicatorsPostResponse(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.deletetiindicators.DeleteTiIndicatorsPostRequestBody deleteTiIndicatorsPostRequestBody = new com.microsoft.graph.beta.security.tiindicators.deletetiindicators.DeleteTiIndicatorsPostRequestBody();
LinkedList<String> value = new LinkedList<String>();
value.add("id-value1");
value.add("id-value2");
deleteTiIndicatorsPostRequestBody.setValue(value);
var result = graphClient.security().tiIndicators().deleteTiIndicators().post(deleteTiIndicatorsPostRequestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const resultInfo = {
value: [
'id-value1',
'id-value2'
]
};
await client.api('/security/tiIndicators/deleteTiIndicators')
.version('beta')
.post(resultInfo);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Security\TiIndicators\DeleteTiIndicators\DeleteTiIndicatorsPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new DeleteTiIndicatorsPostRequestBody();
$requestBody->setValue(['id-value1', 'id-value2', ]);
$result = $graphServiceClient->security()->tiIndicators()->deleteTiIndicators()->post($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
value = @(
"id-value1"
"id-value2"
)
}
Remove-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.delete_ti_indicators.delete_ti_indicators_post_request_body import DeleteTiIndicatorsPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = DeleteTiIndicatorsPostRequestBody(
value = [
"id-value1",
"id-value2",
],
)
result = await graph_client.security.ti_indicators.delete_ti_indicators.post(request_body)
Response
The following example shows the response.
Note
The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"code": 0,
"message": "message-value",
"subCode": "subCode-value"
}
]
}