Для вызова этого API требуется одно из следующих разрешений. Дополнительные сведения, включая сведения о том, как выбрать разрешения, см. в статье Разрешения.
Тип разрешения
Разрешения (в порядке повышения привилегий)
Делегированные (рабочая или учебная учетная запись)
URL-адрес страницы оценки, которая автоматически загружается при запуске браузера для надежного тестирования. Это должен быть допустимый URL-адрес (http[s]://msdn.microsoft.com/).
configurationAccount
String
Учетная запись, с использованием которой настраивается устройство с Windows для прохождения теста. Пользователь может быть учетной записью домена (домен\пользователь), учетной записью AAD (username@tenant.com) или локальной учетной записью (имя пользователя).
allowPrinting
Boolean
Определяет, разрешается ли приложению печатать во время выполнения теста.
allowScreenCapture
Boolean
Определяет, разрешается ли создавать снимки экрана во время выполнения теста.
allowTextSuggestion
Boolean
Определяет, разрешается ли использовать текстовые предложения во время выполнения теста.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new Windows10SecureAssessmentConfiguration
{
OdataType = "#microsoft.graph.windows10SecureAssessmentConfiguration",
Description = "Description value",
DisplayName = "Display Name value",
Version = 7,
LaunchUri = "Launch Uri value",
ConfigurationAccount = "Configuration Account value",
AllowPrinting = true,
AllowScreenCapture = true,
AllowTextSuggestion = true,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.DeviceConfigurations.PostAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
Windows10SecureAssessmentConfiguration deviceConfiguration = new Windows10SecureAssessmentConfiguration();
deviceConfiguration.setOdataType("#microsoft.graph.windows10SecureAssessmentConfiguration");
deviceConfiguration.setDescription("Description value");
deviceConfiguration.setDisplayName("Display Name value");
deviceConfiguration.setVersion(7);
deviceConfiguration.setLaunchUri("Launch Uri value");
deviceConfiguration.setConfigurationAccount("Configuration Account value");
deviceConfiguration.setAllowPrinting(true);
deviceConfiguration.setAllowScreenCapture(true);
deviceConfiguration.setAllowTextSuggestion(true);
DeviceConfiguration result = graphClient.deviceManagement().deviceConfigurations().post(deviceConfiguration);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.windows10_secure_assessment_configuration import Windows10SecureAssessmentConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Windows10SecureAssessmentConfiguration(
odata_type = "#microsoft.graph.windows10SecureAssessmentConfiguration",
description = "Description value",
display_name = "Display Name value",
version = 7,
launch_uri = "Launch Uri value",
configuration_account = "Configuration Account value",
allow_printing = True,
allow_screen_capture = True,
allow_text_suggestion = True,
)
result = await graph_client.device_management.device_configurations.post(request_body)
Ниже приведен пример отклика. Примечание. Представленный здесь объект отклика может быть усечен для краткости. При фактическом вызове будут возвращены все свойства.