L’une des autorisations suivantes est nécessaire pour appeler cette API. Pour plus d’informations, notamment sur la façon de choisir les autorisations, voir Autorisations.
Type d’autorisation
Autorisations (de celle qui offre le plus de privilèges à celle qui en offre le moins)
GET https://graph.microsoft.com/v1.0/security/attackSimulation/trainings/3f5548d1-0dd8-4cc8-9de0-e0d6ec7ea3dc/languageDetails/2f5548d1-0dd8-4cc8-9de0-e0d6ec7ea3dc?$filter=locale eq 'en'
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.AttackSimulation.Trainings["{training-id}"].LanguageDetails["{trainingLanguageDetail-id}"].GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "locale eq 'en'";
});
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphsecurity "github.com/microsoftgraph/msgraph-sdk-go/security"
//other-imports
)
requestFilter := "locale eq 'en'"
requestParameters := &graphsecurity.AttackSimulationTrainingsItemLanguageDetailsItemRequestBuilderGetQueryParameters{
Filter: &requestFilter,
}
configuration := &graphsecurity.AttackSimulationTrainingsItemLanguageDetailsItemRequestBuilderGetRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
languageDetails, err := graphClient.Security().AttackSimulation().Trainings().ByTrainingId("training-id").LanguageDetails().ByTrainingLanguageDetailId("trainingLanguageDetail-id").Get(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
TrainingLanguageDetail result = graphClient.security().attackSimulation().trainings().byTrainingId("{training-id}").languageDetails().byTrainingLanguageDetailId("{trainingLanguageDetail-id}").get(requestConfiguration -> {
requestConfiguration.queryParameters.filter = "locale eq 'en'";
});
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.security.attack_simulation.trainings.item.language_details.item.training_language_detail_item_request_builder import TrainingLanguageDetailItemRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = TrainingLanguageDetailItemRequestBuilder.TrainingLanguageDetailItemRequestBuilderGetQueryParameters(
filter = "locale eq 'en'",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.security.attack_simulation.trainings.by_training_id('training-id').language_details.by_training_language_detail_id('trainingLanguageDetail-id').get(request_configuration = request_configuration)