Windows10XTrustedRootCertificate を作成する

名前空間: microsoft.graph

重要:Microsoft は Intune /beta API をサポートしていますが、より頻繁に変更される可能性があります。 可能な場合は、バージョン v1.0 を使用することをお勧めします。 バージョン セレクターを使用して、バージョン v1.0 で API が使用できるかどうかを確認します。

注:Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。

新しい Windows10XTrustedRootCertificate オブジェクトを作成します。

この API は、次の国内クラウド展開で使用できます。

グローバル サービス 米国政府機関 L4 米国政府機関 L5 (DOD) 21Vianet が運営する中国
✅ ✅ ✅ ✅

アクセス許可

この API を呼び出すには、次のいずれかのアクセス許可が必要です。 アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。

アクセス許可の種類 アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント) DeviceManagementServiceConfig.ReadWrite.All
委任 (個人用 Microsoft アカウント) サポートされていません。
アプリケーション DeviceManagementServiceConfig.ReadWrite.All

HTTP 要求

POST /deviceManagement/resourceAccessProfiles

要求ヘッダー

ヘッダー 値
Authorization ベアラー {token}。 必須です。 認証と認可についての詳細をご覧ください。
承諾 application/json

要求本文

要求の本文で、windows10XTrustedRootCertificate オブジェクトの JSON 表現を指定します。

次の表に、Windows10XTrustedRootCertificate を作成するときに必要なプロパティを示します。

プロパティ 型 説明
id 文字列 deviceManagementResourceAccessProfileBase から継承されたプロファイル識別子
version Int32 deviceManagementResourceAccessProfileBase から継承されたプロファイルのバージョン
displayName 文字列 プロファイルの表示名 deviceManagementResourceAccessProfileBase から継承
説明 String プロファイルの説明 deviceManagementResourceAccessProfileBase から継承
creationDateTime DateTimeOffset DateTime プロファイルが作成されました deviceManagementResourceAccessProfileBase から継承
lastModifiedDateTime DateTimeOffset DateTime プロファイルが最後に変更されました 継承元 deviceManagementResourceAccessProfileBase
roleScopeTagIds String collection スコープ タグ deviceManagementResourceAccessProfileBase から継承されます
serverApplicabilityRules applicabilityRule collection deviceManagementResourceAccessProfileBase から継承されたデバイス構成プロファイルの適用性ルールの一覧
trustedRootCertificate Binary 信頼されたルート証明書
certFileName 文字列 UI に表示するファイル名。
destinationStore certificateDestinationStore 信頼されたルート証明書の宛先ストアの場所。 可能な値は computerCertStoreRoot、computerCertStoreIntermediate、userCertStoreIntermediate です。

応答

成功した場合、このメソッドは応答本文で 201 Created 応答コードと windows10XTrustedRootCertificate オブジェクトを返します。

例

要求

以下は、要求の例です。

POST https://graph.microsoft.com/beta/deviceManagement/resourceAccessProfiles
Content-type: application/json
Content-length: 599

{
  "@odata.type": "#microsoft.graph.windows10XTrustedRootCertificate",
  "version": 7,
  "displayName": "Display Name value",
  "description": "Description value",
  "creationDateTime": "2017-01-01T00:00:43.1365422-08:00",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "serverApplicabilityRules": [
    {
      "@odata.type": "microsoft.graph.applicabilityRule",
      "filterType": "include"
    }
  ],
  "trustedRootCertificate": "dHJ1c3RlZFJvb3RDZXJ0aWZpY2F0ZQ==",
  "certFileName": "Cert File Name value",
  "destinationStore": "computerCertStoreIntermediate"
}

応答

以下は、応答の例です。 注: 簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。 実際の呼び出しではすべてのプロパティが返されます。

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 712

{
  "@odata.type": "#microsoft.graph.windows10XTrustedRootCertificate",
  "id": "be0bfd01-fd01-be0b-01fd-0bbe01fd0bbe",
  "version": 7,
  "displayName": "Display Name value",
  "description": "Description value",
  "creationDateTime": "2017-01-01T00:00:43.1365422-08:00",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "serverApplicabilityRules": [
    {
      "@odata.type": "microsoft.graph.applicabilityRule",
      "filterType": "include"
    }
  ],
  "trustedRootCertificate": "dHJ1c3RlZFJvb3RDZXJ0aWZpY2F0ZQ==",
  "certFileName": "Cert File Name value",
  "destinationStore": "computerCertStoreIntermediate"
}