Uma das seguintes permissões é necessária para chamar esta API. Para saber mais, incluindo como escolher permissões, confira Permissões.
No corpo da solicitação, forneça uma representação JSON do objeto iosDeviceFeaturesConfiguration.
A tabela a seguir mostra as propriedades que são necessárias ao criar iosDeviceFeaturesConfiguration.
Este é um exemplo da solicitação.
POST https://graph.microsoft.com/v1.0/deviceManagement/deviceConfigurations
Content-type: application/json
Content-length: 1988
{
"@odata.type": "#microsoft.graph.iosDeviceFeaturesConfiguration",
"description": "Description value",
"displayName": "Display Name value",
"version": 7,
"assetTagTemplate": "Asset Tag Template value",
"lockScreenFootnote": "Lock Screen Footnote value",
"homeScreenDockIcons": [
{
"@odata.type": "microsoft.graph.iosHomeScreenFolder",
"displayName": "Display Name value",
"pages": [
{
"@odata.type": "microsoft.graph.iosHomeScreenFolderPage",
"displayName": "Display Name value",
"apps": [
{
"@odata.type": "microsoft.graph.iosHomeScreenApp",
"displayName": "Display Name value",
"bundleID": "Bundle ID value"
}
]
}
]
}
],
"homeScreenPages": [
{
"@odata.type": "microsoft.graph.iosHomeScreenPage",
"displayName": "Display Name value",
"icons": [
{
"@odata.type": "microsoft.graph.iosHomeScreenFolder",
"displayName": "Display Name value",
"pages": [
{
"@odata.type": "microsoft.graph.iosHomeScreenFolderPage",
"displayName": "Display Name value",
"apps": [
{
"@odata.type": "microsoft.graph.iosHomeScreenApp",
"displayName": "Display Name value",
"bundleID": "Bundle ID value"
}
]
}
]
}
]
}
],
"notificationSettings": [
{
"@odata.type": "microsoft.graph.iosNotificationSettings",
"bundleID": "Bundle ID value",
"appName": "App Name value",
"publisher": "Publisher value",
"enabled": true,
"showInNotificationCenter": true,
"showOnLockScreen": true,
"alertType": "banner",
"badgesEnabled": true,
"soundsEnabled": true
}
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new IosDeviceFeaturesConfiguration
{
OdataType = "#microsoft.graph.iosDeviceFeaturesConfiguration",
Description = "Description value",
DisplayName = "Display Name value",
Version = 7,
AssetTagTemplate = "Asset Tag Template value",
LockScreenFootnote = "Lock Screen Footnote value",
HomeScreenDockIcons = new List<IosHomeScreenItem>
{
new IosHomeScreenFolder
{
OdataType = "microsoft.graph.iosHomeScreenFolder",
DisplayName = "Display Name value",
Pages = new List<IosHomeScreenFolderPage>
{
new IosHomeScreenFolderPage
{
OdataType = "microsoft.graph.iosHomeScreenFolderPage",
DisplayName = "Display Name value",
Apps = new List<IosHomeScreenApp>
{
new IosHomeScreenApp
{
OdataType = "microsoft.graph.iosHomeScreenApp",
DisplayName = "Display Name value",
BundleID = "Bundle ID value",
},
},
},
},
},
},
HomeScreenPages = new List<IosHomeScreenPage>
{
new IosHomeScreenPage
{
OdataType = "microsoft.graph.iosHomeScreenPage",
DisplayName = "Display Name value",
Icons = new List<IosHomeScreenItem>
{
new IosHomeScreenFolder
{
OdataType = "microsoft.graph.iosHomeScreenFolder",
DisplayName = "Display Name value",
Pages = new List<IosHomeScreenFolderPage>
{
new IosHomeScreenFolderPage
{
OdataType = "microsoft.graph.iosHomeScreenFolderPage",
DisplayName = "Display Name value",
Apps = new List<IosHomeScreenApp>
{
new IosHomeScreenApp
{
OdataType = "microsoft.graph.iosHomeScreenApp",
DisplayName = "Display Name value",
BundleID = "Bundle ID value",
},
},
},
},
},
},
},
},
NotificationSettings = new List<IosNotificationSettings>
{
new IosNotificationSettings
{
OdataType = "microsoft.graph.iosNotificationSettings",
BundleID = "Bundle ID value",
AppName = "App Name value",
Publisher = "Publisher value",
Enabled = true,
ShowInNotificationCenter = true,
ShowOnLockScreen = true,
AlertType = IosNotificationAlertType.Banner,
BadgesEnabled = true,
SoundsEnabled = true,
},
},
};
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.DeviceConfigurations.PostAsync(requestBody);
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
mgc device-management device-configurations create --body '{\
"@odata.type": "#microsoft.graph.iosDeviceFeaturesConfiguration",\
"description": "Description value",\
"displayName": "Display Name value",\
"version": 7,\
"assetTagTemplate": "Asset Tag Template value",\
"lockScreenFootnote": "Lock Screen Footnote value",\
"homeScreenDockIcons": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenFolder",\
"displayName": "Display Name value",\
"pages": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenFolderPage",\
"displayName": "Display Name value",\
"apps": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenApp",\
"displayName": "Display Name value",\
"bundleID": "Bundle ID value"\
}\
]\
}\
]\
}\
],\
"homeScreenPages": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenPage",\
"displayName": "Display Name value",\
"icons": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenFolder",\
"displayName": "Display Name value",\
"pages": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenFolderPage",\
"displayName": "Display Name value",\
"apps": [\
{\
"@odata.type": "microsoft.graph.iosHomeScreenApp",\
"displayName": "Display Name value",\
"bundleID": "Bundle ID value"\
}\
]\
}\
]\
}\
]\
}\
],\
"notificationSettings": [\
{\
"@odata.type": "microsoft.graph.iosNotificationSettings",\
"bundleID": "Bundle ID value",\
"appName": "App Name value",\
"publisher": "Publisher value",\
"enabled": true,\
"showInNotificationCenter": true,\
"showOnLockScreen": true,\
"alertType": "banner",\
"badgesEnabled": true,\
"soundsEnabled": true\
}\
]\
}\
'
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
// 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"
graphmodels "github.com/microsoftgraph/msgraph-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewDeviceConfiguration()
description := "Description value"
requestBody.SetDescription(&description)
displayName := "Display Name value"
requestBody.SetDisplayName(&displayName)
version := int32(7)
requestBody.SetVersion(&version)
assetTagTemplate := "Asset Tag Template value"
requestBody.SetAssetTagTemplate(&assetTagTemplate)
lockScreenFootnote := "Lock Screen Footnote value"
requestBody.SetLockScreenFootnote(&lockScreenFootnote)
iosHomeScreenItem := graphmodels.NewIosHomeScreenFolder()
displayName := "Display Name value"
iosHomeScreenItem.SetDisplayName(&displayName)
iosHomeScreenFolderPage := graphmodels.NewIosHomeScreenFolderPage()
displayName := "Display Name value"
iosHomeScreenFolderPage.SetDisplayName(&displayName)
iosHomeScreenApp := graphmodels.NewIosHomeScreenApp()
displayName := "Display Name value"
iosHomeScreenApp.SetDisplayName(&displayName)
bundleID := "Bundle ID value"
iosHomeScreenApp.SetBundleID(&bundleID)
apps := []graphmodels.IosHomeScreenAppable {
iosHomeScreenApp,
}
iosHomeScreenFolderPage.SetApps(apps)
pages := []graphmodels.IosHomeScreenFolderPageable {
iosHomeScreenFolderPage,
}
iosHomeScreenItem.SetPages(pages)
homeScreenDockIcons := []graphmodels.IosHomeScreenItemable {
iosHomeScreenItem,
}
requestBody.SetHomeScreenDockIcons(homeScreenDockIcons)
iosHomeScreenPage := graphmodels.NewIosHomeScreenPage()
displayName := "Display Name value"
iosHomeScreenPage.SetDisplayName(&displayName)
iosHomeScreenItem := graphmodels.NewIosHomeScreenFolder()
displayName := "Display Name value"
iosHomeScreenItem.SetDisplayName(&displayName)
iosHomeScreenFolderPage := graphmodels.NewIosHomeScreenFolderPage()
displayName := "Display Name value"
iosHomeScreenFolderPage.SetDisplayName(&displayName)
iosHomeScreenApp := graphmodels.NewIosHomeScreenApp()
displayName := "Display Name value"
iosHomeScreenApp.SetDisplayName(&displayName)
bundleID := "Bundle ID value"
iosHomeScreenApp.SetBundleID(&bundleID)
apps := []graphmodels.IosHomeScreenAppable {
iosHomeScreenApp,
}
iosHomeScreenFolderPage.SetApps(apps)
pages := []graphmodels.IosHomeScreenFolderPageable {
iosHomeScreenFolderPage,
}
iosHomeScreenItem.SetPages(pages)
icons := []graphmodels.IosHomeScreenItemable {
iosHomeScreenItem,
}
iosHomeScreenPage.SetIcons(icons)
homeScreenPages := []graphmodels.IosHomeScreenPageable {
iosHomeScreenPage,
}
requestBody.SetHomeScreenPages(homeScreenPages)
iosNotificationSettings := graphmodels.NewIosNotificationSettings()
bundleID := "Bundle ID value"
iosNotificationSettings.SetBundleID(&bundleID)
appName := "App Name value"
iosNotificationSettings.SetAppName(&appName)
publisher := "Publisher value"
iosNotificationSettings.SetPublisher(&publisher)
enabled := true
iosNotificationSettings.SetEnabled(&enabled)
showInNotificationCenter := true
iosNotificationSettings.SetShowInNotificationCenter(&showInNotificationCenter)
showOnLockScreen := true
iosNotificationSettings.SetShowOnLockScreen(&showOnLockScreen)
alertType := graphmodels.BANNER_IOSNOTIFICATIONALERTTYPE
iosNotificationSettings.SetAlertType(&alertType)
badgesEnabled := true
iosNotificationSettings.SetBadgesEnabled(&badgesEnabled)
soundsEnabled := true
iosNotificationSettings.SetSoundsEnabled(&soundsEnabled)
notificationSettings := []graphmodels.IosNotificationSettingsable {
iosNotificationSettings,
}
requestBody.SetNotificationSettings(notificationSettings)
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
deviceConfigurations, err := graphClient.DeviceManagement().DeviceConfigurations().Post(context.Background(), requestBody, nil)
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
IosDeviceFeaturesConfiguration deviceConfiguration = new IosDeviceFeaturesConfiguration();
deviceConfiguration.setOdataType("#microsoft.graph.iosDeviceFeaturesConfiguration");
deviceConfiguration.setDescription("Description value");
deviceConfiguration.setDisplayName("Display Name value");
deviceConfiguration.setVersion(7);
deviceConfiguration.setAssetTagTemplate("Asset Tag Template value");
deviceConfiguration.setLockScreenFootnote("Lock Screen Footnote value");
LinkedList<IosHomeScreenItem> homeScreenDockIcons = new LinkedList<IosHomeScreenItem>();
IosHomeScreenFolder iosHomeScreenItem = new IosHomeScreenFolder();
iosHomeScreenItem.setOdataType("microsoft.graph.iosHomeScreenFolder");
iosHomeScreenItem.setDisplayName("Display Name value");
LinkedList<IosHomeScreenFolderPage> pages = new LinkedList<IosHomeScreenFolderPage>();
IosHomeScreenFolderPage iosHomeScreenFolderPage = new IosHomeScreenFolderPage();
iosHomeScreenFolderPage.setOdataType("microsoft.graph.iosHomeScreenFolderPage");
iosHomeScreenFolderPage.setDisplayName("Display Name value");
LinkedList<IosHomeScreenApp> apps = new LinkedList<IosHomeScreenApp>();
IosHomeScreenApp iosHomeScreenApp = new IosHomeScreenApp();
iosHomeScreenApp.setOdataType("microsoft.graph.iosHomeScreenApp");
iosHomeScreenApp.setDisplayName("Display Name value");
iosHomeScreenApp.setBundleID("Bundle ID value");
apps.add(iosHomeScreenApp);
iosHomeScreenFolderPage.setApps(apps);
pages.add(iosHomeScreenFolderPage);
iosHomeScreenItem.setPages(pages);
homeScreenDockIcons.add(iosHomeScreenItem);
deviceConfiguration.setHomeScreenDockIcons(homeScreenDockIcons);
LinkedList<IosHomeScreenPage> homeScreenPages = new LinkedList<IosHomeScreenPage>();
IosHomeScreenPage iosHomeScreenPage = new IosHomeScreenPage();
iosHomeScreenPage.setOdataType("microsoft.graph.iosHomeScreenPage");
iosHomeScreenPage.setDisplayName("Display Name value");
LinkedList<IosHomeScreenItem> icons = new LinkedList<IosHomeScreenItem>();
IosHomeScreenFolder iosHomeScreenItem1 = new IosHomeScreenFolder();
iosHomeScreenItem1.setOdataType("microsoft.graph.iosHomeScreenFolder");
iosHomeScreenItem1.setDisplayName("Display Name value");
LinkedList<IosHomeScreenFolderPage> pages1 = new LinkedList<IosHomeScreenFolderPage>();
IosHomeScreenFolderPage iosHomeScreenFolderPage1 = new IosHomeScreenFolderPage();
iosHomeScreenFolderPage1.setOdataType("microsoft.graph.iosHomeScreenFolderPage");
iosHomeScreenFolderPage1.setDisplayName("Display Name value");
LinkedList<IosHomeScreenApp> apps1 = new LinkedList<IosHomeScreenApp>();
IosHomeScreenApp iosHomeScreenApp1 = new IosHomeScreenApp();
iosHomeScreenApp1.setOdataType("microsoft.graph.iosHomeScreenApp");
iosHomeScreenApp1.setDisplayName("Display Name value");
iosHomeScreenApp1.setBundleID("Bundle ID value");
apps1.add(iosHomeScreenApp1);
iosHomeScreenFolderPage1.setApps(apps1);
pages1.add(iosHomeScreenFolderPage1);
iosHomeScreenItem1.setPages(pages1);
icons.add(iosHomeScreenItem1);
iosHomeScreenPage.setIcons(icons);
homeScreenPages.add(iosHomeScreenPage);
deviceConfiguration.setHomeScreenPages(homeScreenPages);
LinkedList<IosNotificationSettings> notificationSettings = new LinkedList<IosNotificationSettings>();
IosNotificationSettings iosNotificationSettings = new IosNotificationSettings();
iosNotificationSettings.setOdataType("microsoft.graph.iosNotificationSettings");
iosNotificationSettings.setBundleID("Bundle ID value");
iosNotificationSettings.setAppName("App Name value");
iosNotificationSettings.setPublisher("Publisher value");
iosNotificationSettings.setEnabled(true);
iosNotificationSettings.setShowInNotificationCenter(true);
iosNotificationSettings.setShowOnLockScreen(true);
iosNotificationSettings.setAlertType(IosNotificationAlertType.Banner);
iosNotificationSettings.setBadgesEnabled(true);
iosNotificationSettings.setSoundsEnabled(true);
notificationSettings.add(iosNotificationSettings);
deviceConfiguration.setNotificationSettings(notificationSettings);
DeviceConfiguration result = graphClient.deviceManagement().deviceConfigurations().post(deviceConfiguration);
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
const options = {
authProvider,
};
const client = Client.init(options);
const deviceConfiguration = {
'@odata.type': '#microsoft.graph.iosDeviceFeaturesConfiguration',
description: 'Description value',
displayName: 'Display Name value',
version: 7,
assetTagTemplate: 'Asset Tag Template value',
lockScreenFootnote: 'Lock Screen Footnote value',
homeScreenDockIcons: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenFolder',
displayName: 'Display Name value',
pages: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenFolderPage',
displayName: 'Display Name value',
apps: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenApp',
displayName: 'Display Name value',
bundleID: 'Bundle ID value'
}
]
}
]
}
],
homeScreenPages: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenPage',
displayName: 'Display Name value',
icons: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenFolder',
displayName: 'Display Name value',
pages: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenFolderPage',
displayName: 'Display Name value',
apps: [
{
'@odata.type': 'microsoft.graph.iosHomeScreenApp',
displayName: 'Display Name value',
bundleID: 'Bundle ID value'
}
]
}
]
}
]
}
],
notificationSettings: [
{
'@odata.type': 'microsoft.graph.iosNotificationSettings',
bundleID: 'Bundle ID value',
appName: 'App Name value',
publisher: 'Publisher value',
enabled: true,
showInNotificationCenter: true,
showOnLockScreen: true,
alertType: 'banner',
badgesEnabled: true,
soundsEnabled: true
}
]
};
await client.api('/deviceManagement/deviceConfigurations')
.post(deviceConfiguration);
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\IosDeviceFeaturesConfiguration;
use Microsoft\Graph\Generated\Models\IosHomeScreenItem;
use Microsoft\Graph\Generated\Models\IosHomeScreenFolder;
use Microsoft\Graph\Generated\Models\IosHomeScreenFolderPage;
use Microsoft\Graph\Generated\Models\IosHomeScreenApp;
use Microsoft\Graph\Generated\Models\IosHomeScreenPage;
use Microsoft\Graph\Generated\Models\IosNotificationSettings;
use Microsoft\Graph\Generated\Models\IosNotificationAlertType;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new IosDeviceFeaturesConfiguration();
$requestBody->setOdataType('#microsoft.graph.iosDeviceFeaturesConfiguration');
$requestBody->setDescription('Description value');
$requestBody->setDisplayName('Display Name value');
$requestBody->setVersion(7);
$requestBody->setAssetTagTemplate('Asset Tag Template value');
$requestBody->setLockScreenFootnote('Lock Screen Footnote value');
$homeScreenDockIconsIosHomeScreenItem1 = new IosHomeScreenFolder();
$homeScreenDockIconsIosHomeScreenItem1->setOdataType('microsoft.graph.iosHomeScreenFolder');
$homeScreenDockIconsIosHomeScreenItem1->setDisplayName('Display Name value');
$pagesIosHomeScreenFolderPage1 = new IosHomeScreenFolderPage();
$pagesIosHomeScreenFolderPage1->setOdataType('microsoft.graph.iosHomeScreenFolderPage');
$pagesIosHomeScreenFolderPage1->setDisplayName('Display Name value');
$appsIosHomeScreenApp1 = new IosHomeScreenApp();
$appsIosHomeScreenApp1->setOdataType('microsoft.graph.iosHomeScreenApp');
$appsIosHomeScreenApp1->setDisplayName('Display Name value');
$appsIosHomeScreenApp1->setBundleID('Bundle ID value');
$appsArray []= $appsIosHomeScreenApp1;
$pagesIosHomeScreenFolderPage1->setApps($appsArray);
$pagesArray []= $pagesIosHomeScreenFolderPage1;
$homeScreenDockIconsIosHomeScreenItem1->setPages($pagesArray);
$homeScreenDockIconsArray []= $homeScreenDockIconsIosHomeScreenItem1;
$requestBody->setHomeScreenDockIcons($homeScreenDockIconsArray);
$homeScreenPagesIosHomeScreenPage1 = new IosHomeScreenPage();
$homeScreenPagesIosHomeScreenPage1->setOdataType('microsoft.graph.iosHomeScreenPage');
$homeScreenPagesIosHomeScreenPage1->setDisplayName('Display Name value');
$iconsIosHomeScreenItem1 = new IosHomeScreenFolder();
$iconsIosHomeScreenItem1->setOdataType('microsoft.graph.iosHomeScreenFolder');
$iconsIosHomeScreenItem1->setDisplayName('Display Name value');
$pagesIosHomeScreenFolderPage1 = new IosHomeScreenFolderPage();
$pagesIosHomeScreenFolderPage1->setOdataType('microsoft.graph.iosHomeScreenFolderPage');
$pagesIosHomeScreenFolderPage1->setDisplayName('Display Name value');
$appsIosHomeScreenApp1 = new IosHomeScreenApp();
$appsIosHomeScreenApp1->setOdataType('microsoft.graph.iosHomeScreenApp');
$appsIosHomeScreenApp1->setDisplayName('Display Name value');
$appsIosHomeScreenApp1->setBundleID('Bundle ID value');
$appsArray []= $appsIosHomeScreenApp1;
$pagesIosHomeScreenFolderPage1->setApps($appsArray);
$pagesArray []= $pagesIosHomeScreenFolderPage1;
$iconsIosHomeScreenItem1->setPages($pagesArray);
$iconsArray []= $iconsIosHomeScreenItem1;
$homeScreenPagesIosHomeScreenPage1->setIcons($iconsArray);
$homeScreenPagesArray []= $homeScreenPagesIosHomeScreenPage1;
$requestBody->setHomeScreenPages($homeScreenPagesArray);
$notificationSettingsIosNotificationSettings1 = new IosNotificationSettings();
$notificationSettingsIosNotificationSettings1->setOdataType('microsoft.graph.iosNotificationSettings');
$notificationSettingsIosNotificationSettings1->setBundleID('Bundle ID value');
$notificationSettingsIosNotificationSettings1->setAppName('App Name value');
$notificationSettingsIosNotificationSettings1->setPublisher('Publisher value');
$notificationSettingsIosNotificationSettings1->setEnabled(true);
$notificationSettingsIosNotificationSettings1->setShowInNotificationCenter(true);
$notificationSettingsIosNotificationSettings1->setShowOnLockScreen(true);
$notificationSettingsIosNotificationSettings1->setAlertType(new IosNotificationAlertType('banner'));
$notificationSettingsIosNotificationSettings1->setBadgesEnabled(true);
$notificationSettingsIosNotificationSettings1->setSoundsEnabled(true);
$notificationSettingsArray []= $notificationSettingsIosNotificationSettings1;
$requestBody->setNotificationSettings($notificationSettingsArray);
$result = $graphServiceClient->deviceManagement()->deviceConfigurations()->post($requestBody)->wait();
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
Import-Module Microsoft.Graph.DeviceManagement
$params = @{
"@odata.type" = "#microsoft.graph.iosDeviceFeaturesConfiguration"
description = "Description value"
displayName = "Display Name value"
version = 7
assetTagTemplate = "Asset Tag Template value"
lockScreenFootnote = "Lock Screen Footnote value"
homeScreenDockIcons = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenFolder"
displayName = "Display Name value"
pages = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenFolderPage"
displayName = "Display Name value"
apps = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenApp"
displayName = "Display Name value"
bundleID = "Bundle ID value"
}
)
}
)
}
)
homeScreenPages = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenPage"
displayName = "Display Name value"
icons = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenFolder"
displayName = "Display Name value"
pages = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenFolderPage"
displayName = "Display Name value"
apps = @(
@{
"@odata.type" = "microsoft.graph.iosHomeScreenApp"
displayName = "Display Name value"
bundleID = "Bundle ID value"
}
)
}
)
}
)
}
)
notificationSettings = @(
@{
"@odata.type" = "microsoft.graph.iosNotificationSettings"
bundleID = "Bundle ID value"
appName = "App Name value"
publisher = "Publisher value"
enabled = $true
showInNotificationCenter = $true
showOnLockScreen = $true
alertType = "banner"
badgesEnabled = $true
soundsEnabled = $true
}
)
}
New-MgDeviceManagementDeviceConfiguration -BodyParameter $params
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.ios_device_features_configuration import IosDeviceFeaturesConfiguration
from msgraph.generated.models.ios_home_screen_item import IosHomeScreenItem
from msgraph.generated.models.ios_home_screen_folder import IosHomeScreenFolder
from msgraph.generated.models.ios_home_screen_folder_page import IosHomeScreenFolderPage
from msgraph.generated.models.ios_home_screen_app import IosHomeScreenApp
from msgraph.generated.models.ios_home_screen_page import IosHomeScreenPage
from msgraph.generated.models.ios_notification_settings import IosNotificationSettings
from msgraph.generated.models.ios_notification_alert_type import IosNotificationAlertType
# To initialize your graph_client, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = IosDeviceFeaturesConfiguration(
odata_type = "#microsoft.graph.iosDeviceFeaturesConfiguration",
description = "Description value",
display_name = "Display Name value",
version = 7,
asset_tag_template = "Asset Tag Template value",
lock_screen_footnote = "Lock Screen Footnote value",
home_screen_dock_icons = [
IosHomeScreenFolder(
odata_type = "microsoft.graph.iosHomeScreenFolder",
display_name = "Display Name value",
pages = [
IosHomeScreenFolderPage(
odata_type = "microsoft.graph.iosHomeScreenFolderPage",
display_name = "Display Name value",
apps = [
IosHomeScreenApp(
odata_type = "microsoft.graph.iosHomeScreenApp",
display_name = "Display Name value",
bundle_i_d = "Bundle ID value",
),
],
),
],
),
],
home_screen_pages = [
IosHomeScreenPage(
odata_type = "microsoft.graph.iosHomeScreenPage",
display_name = "Display Name value",
icons = [
IosHomeScreenFolder(
odata_type = "microsoft.graph.iosHomeScreenFolder",
display_name = "Display Name value",
pages = [
IosHomeScreenFolderPage(
odata_type = "microsoft.graph.iosHomeScreenFolderPage",
display_name = "Display Name value",
apps = [
IosHomeScreenApp(
odata_type = "microsoft.graph.iosHomeScreenApp",
display_name = "Display Name value",
bundle_i_d = "Bundle ID value",
),
],
),
],
),
],
),
],
notification_settings = [
IosNotificationSettings(
odata_type = "microsoft.graph.iosNotificationSettings",
bundle_i_d = "Bundle ID value",
app_name = "App Name value",
publisher = "Publisher value",
enabled = True,
show_in_notification_center = True,
show_on_lock_screen = True,
alert_type = IosNotificationAlertType.Banner,
badges_enabled = True,
sounds_enabled = True,
),
],
)
result = await graph_client.device_management.device_configurations.post(request_body)
Para obter detalhes sobre como adicionar o SDK ao seu projeto e criar uma instância authProvider, consulte a documentação do SDK.
Veja a seguir um exemplo da resposta. Observação: o objeto response mostrado aqui pode estar truncado por motivos de concisão. Todas as propriedades serão retornadas de uma chamada real.