添加/更新 RIP 配置文件
RIP 配置链接到由其 ComputerGUID 标识的特定计算机。 如果任何 RIP 配置文件带有 找到ComputerGUID ,更新 RIP 配置文件,否则添加新的 RIP 配置文件。
网址:
发布 http://api.aurelon.com/api/v2/配置
请求标头:
内容类型:多部分/表单数据
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
请求正文:
表格数据1:必填
-
- 名称:JsonString
- 内容类型:应用程序/json
- {“计算机GUID”:“00000000-0000-0000-0000-000000000000”}
RIP 计算机的 GUID 作为 ComputerGUID 传递
表格数据2:必填
-
- 名称:RIP.xml(输入文件元素可以有任何名称)
- 内容类型:应用程序/xml
- 配置的 XML 文件
回复:
响应的内容类型为 JSON 格式
成功:
- 200 OK:“配置成功添加”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 415 不支持的媒体类型: {“消息”:“此请求格式不正确”}
- 40 1 Unauthorized : {“Message”: “”HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””ComputerGUID” required”}
- 400 错误请求: {“消息”:“验证 ComputerGUID 失败”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
XML配置文件示例:这里
获取配置
如果找到,则下载带有ComputerGUID的 RIP 配置文件。
网址:
获取http://api.aurelon.com/api/v2/configuration/<计算机GUID>
请求标头:
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
回复:
内容类型为 application/xml,包含 RIP 计算机配置的 XML。 或内容类型为 application/json 时出现错误内容。
成功:
- 200 OK:配置 XML
错误:
- 401 Unauthorized : {“Message”: “Invalid MisKey”}
- 401 Unauthorized : {“Message”:””HardwareHash” 标头无效”}
- 404 Not Found : {“Message”:”ComputerGUID not found”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
获取站点列表
接收由其序列号标识的活动站点列表
网址:
获取http://api.aurelon.com/api/v2/configuration/sites
请求标头:
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
回复:
内容类型 application/json 并包含由序列号标识的已知站点的 JSON。
成功:
- 200 OK : 站点数组
前任:
[{
“SiteGUID”:”8447e5b0-99ac-11e7-a2d0-215af4f8ef85″,
“序列号”:333674,
“位置”:空,
}, {
…
}]
错误:
- 401 Unauthorized : {“Message”: “Invalid MisKey”}
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
获取站点配置
接收序列号的活动设备/队列和 RIP 列表
网址:
获取http://api.aurelon.com/api/v2/configuration/site/<序列号>
请求标头:
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
回复:
内容类型为 application/json,包含序列号标识的站点上已知配置的 JSON。
成功:
- 200 OK:计算机阵列、设备及其队列。
前任:
[{
“ComputerGUID”:”8447e5b0-99ac-11e7-a2d0-215af4f8ef85″,
“名称”:”myrip.company.domain”,
“修改”:”2018-06-27T07:56:36Z”,
“设备”:[{
“DeviceGUID”:”6da06b44-20ee-11e6-b287-07f164aa386e”,
“名称”:”Durst Rhotex 322″,
“修改”:”2018-06-27T07:56:36Z”,
“驱动程序ID”:1601
}, {
…
}]
}, {
…
}]
错误:
- 401 Unauthorized : {“Message”: “Invalid MisKey”}
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 404 未找到: {“消息”:“未找到序列号”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
配置同步
更新 RIP 中的活动设备/队列列表
网址:
POST http://api.aurelon.com/api/v2/configuration/sync
请求标头:
内容类型:应用程序/json
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
请求正文:
JSON 对象包含:
- ComputerGUID – 必需 – 计算机 GUID
- 设备列表 – 必需 – 每个设备的对象数组。 每个对象包含:
- DeviceGUID – 必需 – RIP 上的活动设备 GUID
- QueueList – RIP 上的活动队列 GUID 数组
回复:
包含操作结果的内容类型 application/json。
成功:
- 200 OK: “配置成功保存”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 415 不支持的媒体类型: {“消息”:“此请求格式不正确”}
- 401 Unauthorized : {“Message”: “”HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””ComputerGUID” required”}
- 400 错误请求: {“Message”:””DeviceList” field is required”}
- 400 错误请求: {“Message”:””QueueList” field is required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
添加/更新 RIP
如果找到任何具有ComputerGUID的 RIP,则更新 RIP,否则添加新的 RIP。
网址:
发布http://api.aurelon.com/api/v2/configuration/rip
请求标头:
内容类型:应用程序/json
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
请求正文:
JSON 对象包含:
- ComputerGUID – 必需–计算机 GUID
- ComputerName – 计算机名称或 DNS 名称
- 操作系统– 操作系统类型和版本
回复:
包含操作结果的内容类型 application/json。
成功:
- 200 OK: “计算机详细信息已成功保存”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 415 不支持的媒体类型: {“消息”:“预期类型:应用程序/json”}
- 401 Unauthorized : {“Message”: “”HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””ComputerGUID” required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
添加/更新设备
如果任何具有DeviceGUID的设备 发现设备已更新,否则添加新设备(如果它是许可证的一部分)。 如果 DeviceGUID 不是许可证的一部分,则会返回错误。
网址:
发布http://api.aurelon.com/api/v2/configuration/device
请求标头:
内容类型:应用程序/json
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
请求正文:
JSON 对象包含:
- DeviceGUID – 必需– 设备 GUID
- ComputerGUID – 必需 – 安装此设备的 RIP
- 姓名
- 类型
- 媒体类型
- 媒体尺寸
- 媒体源
- 制造商
- 模型
- DriverID (来自 HUB 数据库的唯一驱动程序 ID)
- 连接URI
回复:
包含操作结果的内容类型 application/json。
成功:
- 200 OK : “设备保存成功”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorized : {“Message”:”Invalid MisKey”}
- 404 Not Found : {“Message”:”DeviceGUID is not found”}
- 415 不支持的媒体类型: {“消息”:“此请求格式不正确”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””DeviceGUID” required”}
- 400 错误请求: {“Message”:””ComputerGUID” required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
添加/更新队列
如果找到任何具有QueueGUID的队列,则更新该队列,否则添加一个新队列。
网址:
POST http://api.aurelon.com/api/v2/configuration/queue
请求标头:
内容类型:应用程序/json
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
请求正文:
JSON 对象包含:
- QueueGUID – 必需– 队列 GUID
- DeviceGUID – 必需
- 个人资料名称
- 姓名
- 媒体类型
- 媒体尺寸
- 媒体源
- 队列类型
- 驱动程序设置
回复:
包含操作结果的内容类型 application/json。
成功:
- 200 OK : “队列保存成功”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorized : {“Message”:”Invalid MisKey”}
- 404 Not Found : {“Message”:”DeviceGUID is not found”}
- 415 不支持的媒体类型: {“消息”:“预期类型:应用程序/json”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””DeviceGUID” required”}
- 400 错误请求: {“Message”:””QueueGUID” required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
删除设备
删除指定的设备。
网址:
删除http://api.aurelon.com/api/v2/configuration/device/<设备GUID>
请求标头:
内容类型:应用程序/json
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
回复:
包含操作结果的内容类型 application/json。
成功:
- 200 OK : “设备删除成功”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorized : {“Message”:”Invalid MisKey”}
- 404 Not Found : {“Message”:”DeviceGUID is not found”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””DeviceGUID” value required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}
删除队列
删除指定队列。
网址:
删除http://api.aurelon.com/api/v2/configuration/queue/<队列GUID>
请求标头:
内容类型:应用程序/json
MisKey :见认证
HardwareHash :见认证
序列号:见认证
应用程序版本:请参阅身份验证
回复:
包含操作结果的内容类型 application/json。
成功:
- 200 OK : “设备删除成功”
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorized : {“Message”:”Invalid MisKey”}
- 404 未找到: {“消息”:“未找到 QueueGUID”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 400 错误请求: {“Message”:””QueueGUID” value required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}