Products: getPermissions

このアプリに必要な Android アプリの権限を取得します。

リクエスト

HTTP リクエスト

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

パラメータ

パラメータ名 説明
パスパラメータ
enterpriseId string 企業の ID。
productId string 商品の ID。

承認

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

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

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

リクエスト本文

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

レスポンス

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

{
  "kind": "androidenterprise#productPermissions",
  "productId": string,
  "permission": [
    {
      "permissionId": string,
      "state": string
    }
  ]
}
プロパティ名 説明 備考
productId string 権限に関連するアプリの ID(例: app:com.google.android.gm)。
permission[] list アプリに必要な権限。
permission[].permissionId string 権限を一意に識別する不透明な文字列。
permission[].state string 権限が承認済みかどうか。

有効な値は次のとおりです。
  • accepted
  • required
kind string