You need to enable JavaScript to run this app.
导航
【旧版】创建机型参数规则 AddPropertyRule
最近更新时间:2025.10.30 14:41:35首次发布时间:2024.09.23 20:27:38
复制全文
我的收藏
有用
有用
无用
无用

创建机型参数库,创建云手机时可从机型库里匹配一组预设参数。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=AddPropertyRule&Version=2023-10-30

请求参数

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

Query

参数类型是否必选示例值描述
ActionStringAddPropertyRule接口名称。当前 API 的名称为 AddPropertyRule
VersionString2023-10-30接口版本。当前 API 的版本为 2023-10-30

Body

参数类型是否必选示例值描述
RuleNameStringOppo1机型参数规则名称,账户下规则名称唯一,长度不能超过 200 个字符。
OverlayPropertyArray of SystemProperty-实例 Settings 系统属性,非持久化,立即生效,重启实例后失效;详细信息,参考 SystemProperty定义。
OverlayPersistPropertyArray of SystemProperty-实例初始化系统属性,持久化,重启实例后生效;详细信息,参考 SystemProperty定义:适用于只读系统属性,或 AOSP 原生非持久化的系统属性的修改,如 ro.product.model。
OverlaySettingsArray of Settings-实例 Settings 属性列表;详细信息,参考 Settings定义。

SystemProperty

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

SystemPropertyValue

String

samsung

属性值。取值如下:

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

说明

SystemPropertyValueType 参数取值不同,该 SystemPropertyValue 参数对应的取值不同。

SystemPropertyValueType

String

string

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

  • int
  • long
  • string
  • float
  • bool

Settings

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

SettingsType

String

global

设置类型,取值如下:

  • global:全局设置
  • secure:安全设置
  • system:系统设置

SettingsValueType

String

string

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

  • int
  • long
  • string
  • float
  • bool

SettingsValue

String

on

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

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

返回参数

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

请求示例

POST https://open.volcengineapi.com?Action=AddPropertyRule&Version=2023-10-30
{
    "RuleName": "Oppo1",
    "OverlayProperty": [
        {
            "SystemPropertyName": "ro.product.name",
            "SystemPropertyValue": "samsung",
            "SystemPropertyValueType": "string"
        }
    ],
    "OverlayPersistProperty": [
        {
            "SystemPropertyName": "ro.product.name",
            "SystemPropertyValue": "samsung",
            "SystemPropertyValueType": "string"
        }
    ],
    "OverlaySettings": [
        {
            "SettingsName": "locale_language",
            "SettingsType": "global",
            "SettingsValue": "on",
            "SettingsValueType": "string"
        }
    ]
}

返回示例

{
    "ResponseMetadata": {
        "Action": "AddPropertyRule",
        "Region": "cn-north-1",
        "Service": "ACEP",
        "Version": "2023-10-30",
        "RequestId": "20230604110420****100232280022D31"
    },
    "Result": "success"
}

错误码

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