次の方法で共有


certificateBasedApplicationConfiguration を作成する

名前空間: microsoft.graph

重要

Microsoft Graph の /beta バージョンの API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 v1.0 で API を使用できるかどうかを確認するには、Version セレクターを使用します。

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

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

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

アクセス許可

この API の最小特権としてマークされているアクセス許可またはアクセス許可を選択します。 アプリで必要な場合にのみ、より高い特権のアクセス許可またはアクセス許可を使用します。 委任されたアクセス許可とアプリケーションのアクセス許可の詳細については、「 アクセス許可の種類」を参照してください。 これらのアクセス許可の詳細については、 アクセス許可のリファレンスを参照してください

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

委任されたシナリオでアプリケーション証明書信頼機関を構成するには、呼び出し元のユーザーにも少なくともアプリケーション管理者またはクラウド アプリケーション管理者Microsoft Entraロールを割り当てる必要があります。

HTTP 要求

POST /directory/certificateAuthorities/certificateBasedApplicationConfigurations

要求ヘッダー

名前 説明
Authorization ベアラー {token}。 必須です。 認証と承認の詳細については、こちらをご覧ください。
Content-Type application/json. 必須です。

要求本文

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

メモ: テナントごとに最大 100 個の証明書ベースのアプリケーション構成オブジェクトが許可されます。 これには、削除されたオブジェクトまたはアクティブなオブジェクトが含まれます。

certificateBasedApplicationConfiguration を作成するときに、次のプロパティを指定できます。

プロパティ 説明
description String 構成の説明。 省略可能です。
displayName String 構成のフレンドリ名。 省略可能です。
trustedCertificateAuthorities certificateAuthorityAsEntity 信頼された証明機関の一覧を表す複数値プロパティ。 証明書ベースのアプリケーション構成を作成するときは、少なくとも 1 つの信頼された証明機関を指定する必要があります。

応答

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

要求

POST https://graph.microsoft.com/beta/certificateAuthorityPath/certificateBasedApplicationConfigurations
Content-Type: application/json

{
  "displayName": "Tenant Trusted Certificate Chain of Trust for Application Configuration",
  "description": "The Trusted Certificate Chain of Trust containing a certificate chain used by the Tenant app policy, to only allow application certificates from this issuer.",
  "trustedCertificateAuthorities ": [
    {
      "isRootAuthority": true,
      "certificate": "MIIHMDCCBRigAwIBAgITWgAAmdzMYKZPslw+twABAACZ"
    }
  ]
}

応答

次の例は応答を示しています。

注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": {
    "@odata.type": "#microsoft.graph.certificateBasedApplicationConfiguration",
    "id": "d5b0af1c-9376-6b66-16b6-e402965862c1",
    "deletedDateTime": "String (timestamp)",
    "displayName": "Tenant Trusted Certificate Chain of Trust for Application Configuration",
    "description": "The Trusted Certificate Chain of Trust containing a certificate chain used by the Tenant app policy, to only allow application certificates from this issuer.",
    "trustedCertificateAuthorities ": [
      {
        "isRootAuthority": true,
        "certificate": "MIIHMDCCBRigAwIBAgITWgAAmdzMYKZPslw+twABAACZ"
      }
    ]
  }
}