Method: systemapks.variants.list
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Renvoie la liste des variantes d'APK système créées précédemment.
Requête HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
packageName |
string
Nom de package de l'application.
|
versionCode |
string (int64 format)
Code de version de l'app bundle.
|
Corps de la requête
Le corps de la requête doit être vide.
Corps de la réponse
Réponse à la liste des variantes d'APK système créées précédemment.
Si la requête aboutit, le corps de la réponse contient des données qui ont la structure suivante :
Représentation JSON |
{
"variants": [
{
object (Variant )
}
]
} |
Champs |
variants[] |
object (Variant )
Toutes les variantes de l'APK système ont été créées.
|
Champs d'application des autorisations
Requiert le niveau d'accès OAuth suivant :
https://www.googleapis.com/auth/androidpublisher
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eRetrieves a list of previously created system APK variants for a specific app and version code.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP GET request with path parameters for package name and version code.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns a JSON response containing an array of system APK variants.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details retrieving a list of system APK variants. The key action is a `GET` HTTP request to a specified URL, incorporating the app's package name and App Bundle version code as path parameters. The request body is empty. A successful response contains a JSON object with a \"variants\" array, where each element represents a system APK variant. The operation requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.SystemApksListResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns the list of previously created system APK variants.\n\nHTTP request\n\n`GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Package name of the app. |\n| `versionCode` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The version code of the App Bundle. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body Response to list previously created system APK variants.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------|\n| ``` { \"variants\": [ { object (/android-publisher/api-ref/rest/v3/systemapks.variants#Variant) } ] } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------|\n| `variants[]` | `object (`[Variant](/android-publisher/api-ref/rest/v3/systemapks.variants#Variant)`)` All system APK variants created. |\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]