调用ImportDevices导入设备信息

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ImportDevices

系统规定参数。取值:ImportDevices。

DeviceList String [{"sbbm":"2312","sbqyxtmc":"s","xzqh":"31012004","fsbqyxtid":"123321","xnzzssywfzid":"","zsb":"0","sbcs":"1","sxjlx":"3","sxjgnlx":"5","sxjbgsx":"0","jq":"2","azdz":"s","lgbh":"","zbbz":"d","jd":"121.116188","wd":"31.150256","sxjwzlx":"0","sxjazwzsnw":"1","sxjjkfw":"0","xlaqms":"0","zcfs":"0","bmsx":"0","zsxlh":"","zsyxbs":"0","wxyym":"0","zszzyxq":"","lwsx":"0","jrwl":"2","sbqyxtipv4dz":"15.225.117.108","sbqyxtipv6dz":"","sbmacdz":"","sbqyxtdk":"5070","sbkl":"Admin12345","qysj":"","bfsj":"","sbzt":"1","spds":"0","ypbmgs":"0","ypbmml":"0","ypcyl":"0","jkdwlx":"2","jslx":"1","jsdwsbgs":"12","jsdwptgsdm":"1","sxjssbmjz":"0","cjdw":"sdas","whdw":"ds","sbqjbh":"123","sbdlzh":"admin","nvrtd":"9","nvrsbid":"213","nvrtdid":"2","gbwgip":"15.225.115.5","azgd":"","psjd":"","psfx":"","smym":"","llxy":1,"onvifyhm":"23","onvifmm":"admin123","onvifip":1,"onvifdk":1}]

要导入的设备信息字符串

ProjectId String 1

项目id

RegionId String cn-shanghai

区域id

VcsId String vcs_std-cn-78v15jq8p02

vcs实例id

返回数据

名称 类型 示例值 描述
Data

响应结果集

Failure

导入失败设备列表

DeviceCode String 34020000010172204207

设备编码

DeviceId String 74464485607216571

设备id

Success

导入成功设备列表

DeviceCode String 34020000010172204208

设备编码

DeviceId String 74464485607216572

设备id

Message String SUCCESS

响应状态描述信息

RequestId String C8F236E2-7DE4-427D-B609-D2F1FF3FA255

请求id

示例

请求示例


http(s)://[Endpoint]/?Action=ImportDevices
&DeviceList=[{"sbbm":"2312","sbqyxtmc":"s","xzqh":"31012004","fsbqyxtid":"123321","xnzzssywfzid":"","zsb":"0","sbcs":"1","sxjlx":"3","sxjgnlx":"5","sxjbgsx":"0","jq":"2","azdz":"s","lgbh":"","zbbz":"d","jd":"121.116188","wd":"31.150256","sxjwzlx":"0","sxjazwzsnw":"1","sxjjkfw":"0","xlaqms":"0","zcfs":"0","bmsx":"0","zsxlh":"","zsyxbs":"0","wxyym":"0","zszzyxq":"","lwsx":"0","jrwl":"2","sbqyxtipv4dz":"15.225.117.108","sbqyxtipv6dz":"","sbmacdz":"","sbqyxtdk":"5070","sbkl":"Admin12345","qysj":"","bfsj":"","sbzt":"1","spds":"0","ypbmgs":"0","ypbmml":"0","ypcyl":"0","jkdwlx":"2","jslx":"1","jsdwsbgs":"12","jsdwptgsdm":"1","sxjssbmjz":"0","cjdw":"sdas","whdw":"ds","sbqjbh":"123","sbdlzh":"admin","nvrtd":"9","nvrsbid":"213","nvrtdid":"2","gbwgip":"15.225.115.5","azgd":"","psjd":"","psfx":"","smym":"","llxy":1,"onvifyhm":"23","onvifmm":"admin123","onvifip":1,"onvifdk":1}]
&ProjectId=1
&RegionId=cn-shanghai
&VcsId=vcs_std-cn-78v15jq8p02
&<公共请求参数>

正常返回示例

JSON 格式

{
	"Data":{
		"Failure":[
			{
				"DeviceId":"74464485607216571",
				"DeviceCode":"34020000010172204207"
			}
		],
		"Success":[
			{
				"DeviceId":"74464485607216572",
				"DeviceCode":"34020000010172204208"
			}
		]
	},
	"Message":"SUCCESS",
	"RequestId":"C8F236E2-7DE4-427D-B609-D2F1FF3FA255",
	"Code":"0"
}

错误码

访问错误中心查看更多错误码。