- 产品介绍
- 系统模块
- user
- role
- tenant
- post
- dict
- dept
- config
- api
- systemApi
- systemDepartment
- menu
- systemRole
- systemRoleApi
- systemRoleMenu
- admin
- notice
- /systemGET
- /system/serverGET
- 获取验证码GET
- 日志模块
- 代码生成
- 可视化
- 功能模块
- 模拟设备
- gb28181测试
- 设备管理
- 设备告警
- 设备命令
- 设备分组
- 产品OTA
- 产品管理
- 产品分类
- 产品参数模板
- 边缘管理
- 任务调度
- 任务日志
- 日志信息
- 规则链
- 规则链日志
- system
- 摄像头通道
- 摄像头
- 摄像头视频流
- datasetfield
- datasettable
- datasource
- screen
- datasetgroup
修改DataSource信息
PUT
/visual/datasource
datasource
请求参数
Body 参数application/json
RoleId
integer <int64>
必需
createBy
integer <int64>
必需
createTime
string <date-time>
必需
db
object (entity.VisualDb)
必需
config
string
必需
dbname
string
必需
host
string
必需
password
string
必需
port
integer <int64>
必需
schema
string
必需
username
string
必需
orgId
integer <int64>
必需
owner
string
必需
sourceComment
string
必需
sourceId
string
必需
sourceName
string
必需
sourceType
string
必需
status
string
必需
updateTime
string <date-time>
必需
示例
{
"RoleId": 0,
"createBy": 0,
"createTime": "2019-08-24T14:15:22Z",
"db": {
"config": "string",
"dbname": "string",
"host": "string",
"password": "string",
"port": 0,
"schema": "string",
"username": "string"
},
"orgId": 0,
"owner": "string",
"sourceComment": "string",
"sourceId": "string",
"sourceName": "string",
"sourceType": "string",
"status": "string",
"updateTime": "2019-08-24T14:15:22Z"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://101.35.247.125:7788/visual/datasource' \
--header 'Content-Type: application/json' \
--data-raw '{
"RoleId": 0,
"createBy": 0,
"createTime": "2019-08-24T14:15:22Z",
"db": {
"config": "string",
"dbname": "string",
"host": "string",
"password": "string",
"port": 0,
"schema": "string",
"username": "string"
},
"orgId": 0,
"owner": "string",
"sourceComment": "string",
"sourceId": "string",
"sourceName": "string",
"sourceType": "string",
"status": "string",
"updateTime": "2019-08-24T14:15:22Z"
}'
返回响应
🟢200OK
application/json
Body
object {0}
示例
{}