调用DescribeDeviceValiditySchema根据机型获取验证schema。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | DescribeDeviceValiditySchema | 系统规定参数。取值:DescribeDeviceValiditySchema。 | 
| ProjectId | String | 是 | PIC3UA0V | 项目ID | 
| DeviceModel | String | 否 | model_2nd | 机型信息 | 
| RegionId | String | 否 | cn-shanghai | 地域ID | 
| SchemaVersion | String | 否 | 1.0 | schema版本 | 
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| ItemList | 验证schema列表 | ||
| Description | String | 机型验证信息 | 描述信息 | 
| EnumListStr | String | [a,b] | 枚举值的字符串信息 | 
| ExclusiveMaximum | Boolean | false | 是否不包含最大值 | 
| ExclusiveMinimum | Boolean | true | 是否不包含最小值 | 
| ItemType | String | boolean | 数据类型 | 
| MaxLength | Integer | 10 | 最大长度 | 
| Maximum | Float | 10 | 最大数量 | 
| MinLength | Integer | 5 | 最小长度 | 
| Minimum | Float | 5 | 最小数量 | 
| Path | String | /havc/oil_level | 路径 | 
| Required | String | true | 是否是必须的 | 
| Type | String | string | 类型 | 
| RequestId | String | 629586FE-CB2E-4742-995E-121F952CEB72 | 请求ID | 
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeDeviceValiditySchema
&ProjectId=PIC3UA0V
&<公共请求参数>
正常返回示例
XML 格式
                  
<DescribeDeviceValiditySchemaResponse>
	  <RequestId>E94C9864-56FB-44AD-AC0C-A1CEFB332254</RequestId>
	  <ItemList>
		    <description>开机时长</description>
		    <enumListStr></enumListStr>
		    <exclusiveMaximum></exclusiveMaximum>
		    <exclusiveMinimum></exclusiveMinimum>
		    <itemType></itemType>
		    <maxLength></maxLength>
		    <maximum></maximum>
		    <minLength></minLength>
		    <minimum></minimum>
		    <path>/system/environment_variables/system_runtime</path>
		    <required>false</required>
		    <type>string</type>
	  </ItemList>
	  <ItemList>
		    <description>客户端Ip</description>
		    <enumListStr></enumListStr>
		    <exclusiveMaximum></exclusiveMaximum>
		    <exclusiveMinimum></exclusiveMinimum>
		    <itemType></itemType>
		    <maxLength></maxLength>
		    <maximum></maximum>
		    <minLength></minLength>
		    <minimum></minimum>
		    <path>/system/environment_variables/ip</path>
		    <required>false</required>
		    <type>string</type>
	  </ItemList>
</DescribeDeviceValiditySchemaResponse>JSON 格式
                  
{
	"ItemList":[
		{
			"description":"开机时长",
			"path":"/system/environment_variables/system_runtime",
			"type":"string",
			"required":false
		},
		{
			"description":"客户端Ip",
			"path":"/system/environment_variables/ip",
			"type":"string",
			"required":false
		}
	],
	"RequestId":"E94C9864-56FB-44AD-AC0C-A1CEFB332254"
}错误码
访问错误中心查看更多错误码。