Method: systemapks.variants.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants
网址采用 gRPC 转码语法。
路径参数
参数 |
packageName |
string
应用的软件包名称。
|
versionCode |
string (int64 format)
App Bundle 的版本代码。
|
响应正文
对列出之前创建的系统 APK 变体的响应。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"variants": [
{
object (Variant )
}
]
} |
字段 |
variants[] |
object (Variant )
已创建所有系统 APK 变体。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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,["# Method: systemapks.variants.list\n\n- [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\n### HTTP 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\n### Path 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\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse 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\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]