Products: getAppRestrictionsSchema

この商品の構成可能なプロパティを定義するスキーマを取得します。すべての商品にはスキーマがありますが、管理対象の構成が定義されていない場合、このスキーマは空になります。このスキーマを使用すると、管理者がプロダクトを構成できる UI にデータを入力できます。 この API を使用して取得したスキーマに基づいてマネージド構成を適用するには、Play によるマネージド構成をご覧ください。

リクエスト

HTTP リクエスト

GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/appRestrictionsSchema

パラメータ

パラメータ名 説明
パスパラメータ
enterpriseId string 企業の ID。
productId string 商品の ID。
省略可能なクエリ パラメータ
language string ユーザーが希望する言語の BCP47 タグ(例: 「en-US」、「de」)。

承認

このリクエストには、次のスコープによる認証が必要です。

範囲
https://www.googleapis.com/auth/androidenterprise

詳細については、認証と承認のページをご覧ください。

リクエスト本文

このメソッドをリクエストの本文に含めないでください。

レスポンス

成功すると、このメソッドは次の構造を含むレスポンスの本文を返します。

{
  "kind": string,
  "restrictions": [
    {
      "key": string,
      "title": string,
      "restrictionType": string,
      "description": string,
      "entry": [
        string
      ],
      "entryValue": [
        string
      ],
      "defaultValue": {
        "type": string,
        "valueBool": boolean,
        "valueString": string,
        "valueInteger": integer,
        "valueMultiselect": [
          string
        ]
      },
      "nestedRestriction": [
        (AppRestrictionsSchemaRestriction)
      ]
    }
  ]
}
プロパティ名 説明 備考
restrictions[] list このスキーマを構成する一連の制限。
restrictions[].key string 制限の識別にプロダクトが使用する一意のキー(例: com.google.android.gm.fieldname)。
restrictions[].title string 制限の名前。
restrictions[].restrictionType string 制限のタイプ。

有効な値は次のとおりです。
  • bool
  • bundle
  • bundleArray
  • choice
  • hidden
  • integer
  • multiselect
  • string
restrictions[].description string 制限についての詳しい説明(制限の影響について詳しく説明します)。
restrictions[].entry[] list choice または multiselect の制限について、人が読める形式の名前のリスト。
restrictions[].entryValue[] list choice または multiselect の制限について、エントリが読み取り可能な値のリスト。これらの値は、choice 制限の場合は単一の string 値として使用し、multiselect 制限の場合は stringArray で使用する必要があります。
restrictions[].defaultValue nested object 制限のデフォルト値。bundlebundleArray の制限にデフォルト値はありません。
restrictions[].defaultValue.type string 指定する値の型。

有効な値は次のとおりです。
  • bool
  • bundle
  • bundleArray
  • choice
  • hidden
  • integer
  • multiselect
  • string
restrictions[].defaultValue.valueBool boolean ブール値 - タイプが bool の場合にのみ表示されます。
restrictions[].defaultValue.valueString string 文字列値 - 文字列、選択、非表示のタイプで使用されます。
restrictions[].defaultValue.valueInteger integer 整数値 - タイプが整数の場合にのみ存在します。
restrictions[].defaultValue.valueMultiselect[] list 文字列値のリスト - タイプが複数選択の場合にのみ存在します。
restrictions[].nestedRestriction[] list bundle または bundleArray の制限については、ネストされた制限のリスト。bundle 制限は常に bundleArray 制限内にネストされ、bundleArray 制限は 2 階層以下に制限されます。
kind string 非推奨です。