オブジェクトのバッチ・インポート
Microsoft 365 オブジェクトのバッチをコンテナーにインポートします。
例
var context = PublicApi.GetContext("https://api.sp4c.storage-defender.ibm.com", "username", "password");
var profiles = context.TenantService.GetCredentialProfiles();
var biResult = context.TenantService.BatchImportObjects(new ImportObjectsModel()
{
Container = "Default Site Collection Container",
ImportMode = BatchImportMode.ServiceAccountProfile,
ProfileId = profiles.First().Id
IsUserEnableMFA = false,
O365UserName = "testuser@userdomain.onmicrosoft.com",
O365UserPassword = "******",
Objects = new List<string>() {"https://userdomain.sharepoint.com/sites/testteam"},
SharePointAdminUrl = "https://userdomain-admin.sharepoint.com",
ObjectType = RemoteNodeType.SiteCollection,
});
要求情報
オブジェクトのバッチをコンテナーにインポートする要求を表します。
| エレメント | 説明 | タイプ | 必須 |
|---|---|---|---|
| ContainerName | コンテナーの名前を設定します。 | ストリング | はい |
| ImportMode | Microsoft 365 環境から Microsoft 365 アカウントの情報を取得するために使用するメソッドを設定します。 | 列挙 有効値: サービス不能 (既存のサービス・アカウント・プロファイルを使用) AppProfile (既存のアプリ・プロファイルを使用) 手動アカウント ( Microsoft 365 アカウントを手動で指定) |
はい |
| プロフィルルド | Microsoft 365 サービス・アカウント・プロファイルまたはアプリ・プロファイルの ID を設定します。 | ストリング | |
| IsUserEnableMFA | アカウントで MFA が有効になっている場合は True。 それ以外の場合は false。 |
ブール | はい ( ImportMode が ManuallyAccountに設定されている場合)。 それ以外の場合は、いいえ。 |
| O365UserName | オブジェクトのバッチ・インポートの要件を満たす Microsoft 365 アカウントのユーザー名を設定します。 | ストリング | |
| O365UserPassword | アカウントのパスワードを設定します。 | ストリング | |
| SharePointAdminUrl | Share Point Online 管理センター URL を設定します。 | ストリング | |
| ObjectType | インポートするオブジェクトのタイプを設定します。 | 列挙 有効値: SiteCollection ( SharePoint サイトの場合) Mailbox (メールボックスの場合) OneDrive Office365Group ( Microsoft 365 グループの場合) |
はい |
| オブジェクト | インポートするオブジェクトを設定します。 | リスト<String> | はい |