Products: getAppRestrictionsSchema

<ph type="x-smartling-placeholder">をご覧ください。 このプロパティの構成可能なプロパティを定義するスキーマを取得します。 説明します。すべての商品にスキーマがありますが、このスキーマがない場合、このスキーマは空になる可能性があります 構成が定義されています。このスキーマを使用すると 管理者がプロダクトを設定できる 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 文字列値 - これは型が string、choice、非表示の場合に存在します。
restrictions[].defaultValue.valueInteger integer 整数値 - タイプが整数の場合にのみ存在します。
restrictions[].defaultValue.valueMultiselect[] list 文字列値のリスト - タイプが複数選択の場合にのみ存在します。
restrictions[].nestedRestriction[] list bundle または bundleArray 制限の場合、ネストされた制限のリスト。bundle 制限は常に bundleArray 制限内にネストされ、bundleArray 制限は 2 レベル以下の深さになります。
kind string 非推奨。