Method: projects.apps.getAabInfo

取得 Firebase 應用的 Android App Bundle (AAB) 資訊。

HTTP請求

GET https://firebaseappdistribution.googleapis.com/v1/{name=projects/*/apps/*/aabInfo}

URL 使用gRPC 轉碼語法。

路徑參數

參數
name

string

必需的。要檢索的AabInfo資源的名稱。

格式: projects/{projectNumber}/apps/{appId}/aabInfo

授權需要對擁有指定資源name的 Firebase 專案具有以下IAM權限:

  • firebaseappdistro.releases.list

請求正文

請求內文必須為空。

響應體

如果成功,回應正文包含具有以下結構的資料:

Firebase 應用的 Android App Bundle (AAB) 資訊。

JSON 表示
{
  "name": string,
  "integrationState": enum (IntegrationState),
  "testCertificate": {
    object (TestCertificate)
  }
}
領域
name

string

AabInfo資源的名稱。

格式: projects/{projectNumber}/apps/{app}/aabInfo

integrationState

enum ( IntegrationState )

應用程式包整合狀態。僅適用於 Android 應用程式。

testCertificate

object ( TestCertificate )

為應用程式產生的應用程式包測試證書。在為此應用程式上傳第一個應用程式包後設定。

授權範圍

需要以下 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

有關更多信息,請參閱OAuth 2.0 概述

整合狀態

AAB整合現狀

列舉
AAB_INTEGRATION_STATE_UNSPECIFIED Aab 整合狀態未指定
INTEGRATED應用程式可以接收應用程式包上傳
PLAY_ACCOUNT_NOT_LINKED Firebase 專案未連結至 Play 開發者帳戶
NO_APP_WITH_GIVEN_BUNDLE_ID_IN_PLAY_ACCOUNT關聯的 Play 開發者帳戶中沒有具有相同捆綁包 ID 的應用程式
APP_NOT_PUBLISHED Play 開發者帳號中的應用程式未處於已發佈狀態
AAB_STATE_UNAVAILABLE Play 應用程式狀態不可用
PLAY_IAS_TERMS_NOT_ACCEPTED不接受 Play IAS 條款

測試證書

應用程式包測試證書

JSON 表示
{
  "hashSha1": string,
  "hashSha256": string,
  "hashMd5": string
}
領域
hashSha1

string

用於撤銷 AAB 的測試憑證的 SHA1 雜湊值的十六進位字串

hashSha256

string

用於撤銷 AAB 的測試憑證的 SHA256 雜湊的十六進位字串

hashMd5

string

用於撤銷 AAB 的測試憑證的 MD5 雜湊值的十六進位字串