更新指定实例的属性信息,包括系统属性(PodPersistProperties)和设置(PodSettings)。
在关机和开机状态下调用该接口时,接口行为如下:
本接口的单用户 QPS 限制为 50 次/秒。超过限制,API 调用会被限流。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 |
| 接口名称。当前 API 的名称为 |
Version | String | 是 |
| 接口版本。当前 API 的版本为 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
ProductId | String | 是 | 1591495366954xxxxxx | 实例所归属的业务 ID,可在云手机控制台-业务管理-业务详情中获取。 |
PodId | String | 否 | 7294157141458xxxxxx | 实例 ID,可通过调用 ListPod 接口获取。 说明 批量操作实例更新属性,请使用 |
PodIdList | Array of String | 否 | [7294157141458xxxxxx,72941579891458xxxxxx] | 实例 ID 列表,若需一次性更新多个实例的属性,请使用该参数。支持批量操作的实例数上限为 200。 说明 更新单个实例属性,请使用 |
PodSettings | Array of Settings | 否 | - | 实例 Settings 属性列表。参看 Settings 数据结构说明。 |
PodProperties | Array of SystemProperty | 否 | - | 实例系统属性列表,非持久化,立即生效,重启实例后失效。参看 SystemProperty 数据结构说明。 |
PodPersistProperties | Array of SystemProperty | 否 | - | 实例系统属性列表,持久化,立即生效,重启实例后持久化保存。参看 SystemProperty 数据结构说明。 |
PhoneTemplateId | String | 否 | 7658996557xxxxxxx | 机型库 ID。可通过该参数更新实例所用的机型库。可选的机型库列表可通过 ListPhoneTemplate 接口获取。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
SettingsName | String | 是 |
| 属性名称,已可修改的 Settings 属性及属性值,参考 Settings 属性列表。 |
SettingsType | String | 是 |
| 设置类型,取值如下:
|
SettingsValue | String | 是 |
| 属性值。各类型属性取值示例如下:
|
SettingsValueType | String | 是 |
| 属性值数据类型,取值如下:
|
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
SystemPropertyName | String | 是 |
| 属性名称,已可修改的系统属性及属性值,参考 System Properties 属性列表。 |
SystemPropertyValue | String | 是 |
| 属性值。 |
SystemPropertyValueType | String | 是 |
| 属性值数据类型。取值如下:
|
本接口无特有的返回参数。更多信息请参见返回结构。
POST https://open.volcengineapi.com?Action=UpdatePodProperty&Version=2025-05-01 { "ProductId": "1591495366954xxxxxx", "PodId": "7294157141458xxxxxx", "PodSettings": [ { "SettingsName": "locale_language", "SettingsType": "global", "SettingsValue": "zh-CN", "SettingsValueType": "string" } ], "PodProperties": [ { "SystemPropertyName": "ro.product.name", "SystemPropertyValue": "samsung", "SystemPropertyValueType": "string" } ], "PodPersistProperties": [ { "SystemPropertyName": "ro.product.name", "SystemPropertyValue": "samsung", "SystemPropertyValueType": "string" } ], "PhoneTemplateId": "7658996557xxxxxxx" }
{ "ResponseMetadata": { "Action": "UpdatePodProperty", "Region": "cn-north-1", "Service": "ACEP", "Version": "2025-05-01", "RequestId": "20230604110420****100232280022D31" } }
您可访问公共错误码,获取更多错误码信息。