You need to enable JavaScript to run this app.
导航
更新实例属性 UpdatePodProperty
最近更新时间:2025.10.28 18:02:59首次发布时间:2025.10.28 14:59:37
复制全文
我的收藏
有用
有用
无用
无用

更新指定实例的属性信息,包括系统属性(PodPersistProperties)和设置(PodSettings)。

使用说明

在关机和开机状态下调用该接口时,接口行为如下:

  • 关机状态下调用:Settings、持久化和非持久化 property 在实例开机后立即生效。
  • 开机状态下调用:Settings、持久化和非持久化 property 立即生效。

注意事项

本接口的单用户 QPS 限制为 50 次/秒。超过限制,API 调用会被限流。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=UpdatePodProperty&Version=2025-05-01

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringUpdatePodProperty接口名称。当前 API 的名称为 UpdatePodProperty
VersionString2025-05-01接口版本。当前 API 的版本为 2025-05-01

Body

参数类型是否必选示例值描述
ProductIdString1591495366954xxxxxx实例所归属的业务 ID,可在云手机控制台-业务管理-业务详情中获取。

PodId

String

7294157141458xxxxxx

实例 ID,可通过调用 ListPod 接口获取。
若仅需更新单个实例的属性,请使用该参数。

说明

批量操作实例更新属性,请使用 PodIdList 参数。

PodIdList

Array of String

[7294157141458xxxxxx,72941579891458xxxxxx]

实例 ID 列表,若需一次性更新多个实例的属性,请使用该参数。支持批量操作的实例数上限为 200。

说明

更新单个实例属性,请使用 PodId 参数。

PodSettingsArray of Settings-实例 Settings 属性列表。参看 Settings数据结构说明。
PodPropertiesArray of SystemProperty-实例系统属性列表,非持久化,立即生效,重启实例后失效。参看 SystemProperty数据结构说明。
PodPersistPropertiesArray of SystemProperty-实例系统属性列表,持久化,立即生效,重启实例后持久化保存。参看 SystemProperty数据结构说明。
PhoneTemplateIdString7658996557xxxxxxx机型库 ID。可通过该参数更新实例所用的机型库。可选的机型库列表可通过 ListPhoneTemplate 接口获取。

Settings

参数类型是否必选示例值描述
SettingsNameStringlocale_language属性名称,已可修改的 Settings 属性及属性值,参考 Settings 属性列表

SettingsType

String

global

设置类型,取值如下:

  • global
  • secure
  • system

SettingsValue

String

zh-CN

属性值数据类型,取值如下:

  • int
  • long
  • string
  • float
  • bool

SettingsValueType

String

string

属性值。各类型属性取值示例如下:

  • bool: "true"、"false"
  • int\long: "21312"
  • float: "2131.09"
  • string: "safehg"

SystemProperty

参数类型是否必选示例值描述
SystemPropertyNameStringro.product.name属性名称,已可修改的系统属性及属性值,参考 System Properties 属性列表
SystemPropertyValueStringsamsung属性值。

SystemPropertyValueType

String

string

属性值数据类型。取值如下:

  • int
  • long
  • string
  • float
  • bool

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

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"
    }
}

错误码

您可访问公共错误码,获取更多错误码信息。