You need to enable JavaScript to run this app.
云手机

云手机

复制全文
实例属性管理
更新实例属性 UpdatePodProperty
复制全文
更新实例属性 UpdatePodProperty

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

使用说明

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

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

注意事项

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

请求说明

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

请求参数

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

Query

参数

类型

是否必选

示例值

描述

Action

String

UpdatePodProperty

接口名称。当前 API 的名称为 UpdatePodProperty

Version

String

2025-05-01

接口版本。当前 API 的版本为 2025-05-01

Body

参数

类型

是否必选

示例值

描述

ProductId

String

1591495366954xxxxxx

实例所归属的业务 ID,可在云手机控制台-业务管理-业务详情中获取。

PodId

String

7294157141458xxxxxx

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

说明

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

PodIdList

Array of String

[7294157141458xxxxxx,72941579891458xxxxxx]

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

说明

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

PodSettings

Array of Settings

-

实例 Settings 属性列表。参看 Settings 数据结构说明。

PodProperties

Array of SystemProperty

-

实例系统属性列表,非持久化,立即生效,重启实例后失效。参看 SystemProperty 数据结构说明。

PodPersistProperties

Array of SystemProperty

-

实例系统属性列表,持久化,立即生效,重启实例后持久化保存。参看 SystemProperty 数据结构说明。

PhoneTemplateId

String

7658996557xxxxxxx

机型库 ID。可通过该参数更新实例所用的机型库。可选的机型库列表可通过 ListPhoneTemplate 接口获取。

Settings

参数

类型

是否必选

示例值

描述

SettingsName

String

locale_language

属性名称,已可修改的 Settings 属性及属性值,参考 Settings 属性列表

SettingsType

String

global

设置类型,取值如下:

  • global
  • secure
  • system

SettingsValue

String

zh-CN

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

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

SettingsValueType

String

string

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

  • int
  • long
  • string
  • float
  • bool

SystemProperty

参数

类型

是否必选

示例值

描述

SystemPropertyName

String

ro.product.name

属性名称,已可修改的系统属性及属性值,参考 System Properties 属性列表

SystemPropertyValue

String

samsung

属性值。

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

错误码

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

最近更新时间:2026.01.22 18:33:00
这个页面对您有帮助吗?
有用
有用
无用
无用