查询已创建的机型库的详细信息。您可以传入条件参数查询指定的机型库,也可以不传入条件参数查询机型库列表。
本接口的单用户 QPS 限制为 200 次/秒。超过限制,API 调用会被限流。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ListPhoneTemplate | 接口名称。当前 API 的名称为 ListPhoneTemplate。 |
| Version | String | 是 | 2025-05-01 | 接口版本。当前 API 的版本为 2025-05-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| PhoneTemplateName | String | 否 | Oppo1 | 机型库名称,账户下机型库名称唯一。 |
Status | Integer | 否 |
| 机型库状态。
|
| PhoneTemplateId | String | 否 | 7658996557xxxxxx | 机型库 ID。 |
| TagId | String | 否 | 7658996557xxxxxx | 机型库标签 ID。 |
| AospVersion | String | 否 | 10 | AOSP 版本号。 |
MaxResults | Integer | 否 |
| 分页查询时设置的每页行数。
|
| NextToken | String | 否 | AABCToken****** | 分页查询凭证,用于标记分页的位置。初次调用该接口时无需设置。下次查询时,取值为上一次 API 调用返回的 NextToken 参数值。NextToken 无效会从第一条记录开始返回,不会产生错误。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Row | Array of PhoneTemplate | - | 查询到的参数规则信息。参看 PhoneTemplate 定义。 |
| NextToken | String | AABCToken****** | 分页查询时,返回的下一页的 Token。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
Status | Integer |
| 机型库状态。
|
| AospVersion | String | 10 | AOSP 版本号。 |
| OverlayProperty | Array of SystemProperty | - | 实例 System Properties 系统属性。参看 SystemProperty 定义。 |
| OverlaySettings | Array of Settings | - | 实例 Settings 属性。参看 Settings 定义。 |
| PhoneTemplateId | String | 7658996557xxxxxx | 机型库 ID。 |
| PhoneTemplateName | String | Oppo1 | 机型库名称。 |
| OverlayPersistProperty | Array of SystemProperty | - | 实例初始化系统属性。参看 SystemProperty 定义。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| SystemPropertyName | String | ro.product.name | 属性名称,已可修改的系统属性及属性值,参考 System Properties 属性列表。 |
| SystemPropertyValue | String | samsung | 属性值。 |
SystemPropertyValueType | String |
| 属性值数据类型。取值如下:
|
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| SettingsName | String | locale_language | 属性名称,已可修改的 Settings 属性及属性值,参考 Settings 属性列表。 |
SettingsType | String |
| 设置类型,取值如下:
|
SettingsValue | String |
| 属性值数据类型,取值如下:
|
SettingsValueType | String |
| 属性值。各类型属性取值示例如下:
|
POST https://open.volcengineapi.com?Action=ListPhoneTemplate&Version=2025-05-01 { "PhoneTemplateName": "Oppo1", "Status": 1, "PhoneTemplateId": "7658996557xxxxxx", "TagId": "7658996557xxxxxx", "AospVersion": "10", "MaxResults": 10, "NextToken": "AABCToken******" }
{ "ResponseMetadata": { "Action": "ListPhoneTemplate", "Region": "cn-north-1", "Service": "ACEP", "Version": "2025-05-01", "RequestId": "20230604110420****100232280022D31" }, "Result": { "Row": [ { "Status": 1, "AospVersion": "10", "OverlayProperty": [ { "SystemPropertyName": "ro.product.name", "SystemPropertyValue": "samsung", "SystemPropertyValueType": "string" } ], "OverlaySettings": [ { "SettingsName": "locale_language", "SettingsType": "global", "SettingsValue": "zh-CN", "SettingsValueType": "string" } ], "PhoneTemplateId": "7658996557xxxxxx", "PhoneTemplateName": "Oppo1", "OverlayPersistProperty": [ { "SystemPropertyName": "ro.product.name", "SystemPropertyValue": "samsung", "SystemPropertyValueType": "string" } ] } ], "NextToken": "AABCToken******" } }
您可访问公共错误码,获取更多错误码信息。