Skip to content
本页目录

 

ThingsKit物联网平台

开箱即用的物联网低代码平台

产品创建 | 编辑

接口地址:/api/yt/device_profile

请求方式:POST

请求数据类型:application/x-www-form-urlencoded,application/json

响应数据类型:*/*

请求示例:

javascript
{
  "deviceType": "",
  "id": "",
  "image": "",
  "name": "",
  "provisionType": "",
  "scriptId": "",
  "tbProfileId": "",
  "tenantId": "",
  "transportType": ""
}
1
2
3
4
5
6
7
8
9
10
11

请求参数:

参数名称参数说明请求类型是否必须数据类型
deviceProfileDTOReqDeviceProfileDTOReqbodytrueDeviceProfileDTOReq
  alarmProfile告警通知配置falseAlarmProfileDTO
    alarmContactId告警联系人 通知多人“,”号分隔truestring
    createTime创建时间falsestring
    creator创建用户falsestring
    defaultConfig租户默认配置falsestring
    description租户描述falsestring
    enabled租户状态:启用/禁用falseboolean
    icon租户图标falsestring
    idIDfalsestring
    messageMode消息通知方式:多种方式“,”号分隔 MessageTypeEnumtruestring
    name告警配置名称truestring
    organizationId组织IDtruestring
    organizationName组织名称falsestring
    remark告警配置备注falsestring
    roleIds租户角色列表falsearray
    status状态:0禁用 1启用falseinteger
    tenantExpireTime租户到期时间falsestring
    tenantId租户IDfalsestring
    tenantProfileId租户配置falsestring
    tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
    updateTime更新时间falsestring
    updater更新用户falsestring
  createTime创建时间falsestring(date-time)
  creator创建用户falsestring
  defaultfalseboolean
  defaultQueueName默认消息队列falsestring
  defaultRuleChainId关联规则链,默认关联根规则链falsestring
  description描述falsestring
  deviceCount产品下的设备数量falseinteger(int32)
  deviceType产品类型:GATEWAY,DIRECT_CONNECTION,SENSOR,可用值:DIRECT_CONNECTION,GATEWAY,SENSORtruestring
  idIDfalsestring
  image设备配置/产品图片falsestring
  name产品(设备配置)名称falsestring
  profileDatafalseDeviceProfileDataReq
    alarmsJSON array of alarm rules configuration per device profilefalsearray
      alarmTypeString value representing type of the alarmfalsestring
      clearRuleJSON object representing clear alarm rulefalseAlarmRuleReq
        alarmDetailsString value representing the additional details for an alarm rulefalsestring
        conditionJSON object representing the alarm rule conditionfalseAlarmConditionReq
          conditionJSON array of alarm condition filtersfalsearray
            keyJSON object for specifying alarm condition by specific keyfalseAlarmConditionFilterKeyReq
              keyString value representing the keyfalsestring
              typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESfalsestring
            predicateJSON object representing filter conditionfalseKeyFilterPredicate
            valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedfalseobject
            valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGfalsestring
          specJSON object representing alarm condition typefalseAlarmConditionSpec
        dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationfalseDashboardIdReq
          idID of the entity, time-based UUID v1truestring
        scheduleJSON object representing time interval during which the rule is activefalseAlarmScheduleReq
      createRulesComplex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more detailsfalseAlarmRuleReq
        alarmDetailsString value representing the additional details for an alarm rulefalsestring
        conditionJSON object representing the alarm rule conditionfalseAlarmConditionReq
          conditionJSON array of alarm condition filtersfalsearray
            keyJSON object for specifying alarm condition by specific keyfalseAlarmConditionFilterKeyReq
              keyString value representing the keyfalsestring
              typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESfalsestring
            predicateJSON object representing filter conditionfalseKeyFilterPredicate
            valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedfalseobject
            valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGfalsestring
          specJSON object representing alarm condition typefalseAlarmConditionSpec
        dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationfalseDashboardIdReq
          idID of the entity, time-based UUID v1truestring
        scheduleJSON object representing time interval during which the rule is activefalseAlarmScheduleReq
      idString value representing the alarm rule idfalsestring
      propagatePropagation flag to specify if alarm should be propagated to parent entities of alarm originatorfalseboolean
      propagateRelationTypesJSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.falsearray
      propagateToOwnerPropagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originatorfalseboolean
      propagateToTenantPropagation flag to specify if alarm should be propagated to the tenant entityfalseboolean
    configurationJSON object of device profile configurationfalseDeviceProfileConfiguration
    provisionConfigurationJSON object of provisioning strategy type per device profilefalseDeviceProfileProvisionConfigurationReq
    transportConfigurationJSON object of device profile transport configurationfalseDeviceProfileTransportConfiguration
  provisionType设备创建策略falsestring
  scriptId解析脚本IDfalsestring
  tbProfileIdTB设备配置IDfalsestring
  tenantId租户IDfalsestring
  thingsModel物模型false物模型
    accessMode读写模式:读r 写wfalsestring
    callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCfalsestring
    createTime创建时间falsestring
    creator创建用户falsestring
    defaultConfig租户默认配置falsestring
    description租户描述falsestring
    deviceProfileId设备配置IDfalsestring
    enabled租户状态:启用/禁用falseboolean
    eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOfalsestring
    functionJson功能jsonfalseJsonNode
    functionName功能名称falsestring
    functionType功能类型,可用值:events,properties,servicesfalsestring
    icon租户图标falsestring
    idIDfalsestring
    identifier功能标识falsestring
    name租户名称falsestring
    remark备注falsestring
    roleIds租户角色列表falsearray
    status状态:0待发布 1发布falseinteger
    tenantExpireTime租户到期时间falsestring
    tenantId租户IDfalsestring
    tenantProfileId租户配置falsestring
    tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
    updateTime更新时间falsestring
    updater更新用户falsestring
  transportType传输协议truestring
  typeTB设备配置类型,默认DEFAULTfalsestring
  updateTime更新时间falsestring(date-time)
  updater更新用户falsestring

响应参数:

参数名称参数说明类型
alarmProfile告警通知配置AlarmProfileDTO
  alarmContactId告警联系人 通知多人“,”号分隔string
  createTime创建时间string(date-time)
  creator创建用户string
  defaultConfig租户默认配置string
  description租户描述string
  enabled租户状态:启用/禁用boolean
  icon租户图标string
  idIDstring
  messageMode消息通知方式:多种方式“,”号分隔 MessageTypeEnumstring
  name告警配置名称string
  organizationId组织IDstring
  organizationName组织名称string
  remark告警配置备注string
  roleIds租户角色列表array
  status状态:0禁用 1启用integer(int32)
  tenantExpireTime租户到期时间string(date-time)
  tenantId租户IDstring
  tenantProfileId租户配置string
  tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
  updateTime更新时间string(date-time)
  updater更新用户string
createTime创建时间string(date-time)
creator创建用户string
defaultboolean
defaultQueueName默认消息队列string
defaultRuleChainId关联规则链,默认关联根规则链string
description描述string
deviceCount产品下的设备数量integer(int32)
deviceType产品类型:GATEWAY,DIRECT_CONNECTION,SENSOR,可用值:DIRECT_CONNECTION,GATEWAY,SENSORstring
idIDstring
image设备配置/产品图片string
name产品(设备配置)名称string
profileDataDeviceProfileDataRes
  alarmsJSON array of alarm rules configuration per device profilearray
    alarmTypeString value representing type of the alarmstring
    clearRuleJSON object representing clear alarm ruleAlarmRuleRes
      alarmDetailsString value representing the additional details for an alarm rulestring
      conditionJSON object representing the alarm rule conditionAlarmConditionRes
        conditionJSON array of alarm condition filtersarray
          keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
            keyString value representing the keystring
            typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
          predicateJSON object representing filter conditionKeyFilterPredicate
          valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
          valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
        specJSON object representing alarm condition typeAlarmConditionSpec
      dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
        entityTypestring,可用值:DASHBOARDstring
        idID of the entity, time-based UUID v1string
      scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
        type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
    createRulesComplex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more detailsAlarmRuleRes
      alarmDetailsString value representing the additional details for an alarm rulestring
      conditionJSON object representing the alarm rule conditionAlarmConditionRes
        conditionJSON array of alarm condition filtersarray
          keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
            keyString value representing the keystring
            typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
          predicateJSON object representing filter conditionKeyFilterPredicate
          valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
          valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
        specJSON object representing alarm condition typeAlarmConditionSpec
      dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
        entityTypestring,可用值:DASHBOARDstring
        idID of the entity, time-based UUID v1string
      scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
        type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
    idString value representing the alarm rule idstring
    propagatePropagation flag to specify if alarm should be propagated to parent entities of alarm originatorboolean
    propagateRelationTypesJSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.array
    propagateToOwnerPropagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originatorboolean
    propagateToTenantPropagation flag to specify if alarm should be propagated to the tenant entityboolean
  configurationJSON object of device profile configurationDeviceProfileConfiguration
  provisionConfigurationJSON object of provisioning strategy type per device profileDeviceProfileProvisionConfigurationRes
    provisionDeviceSecretstring
  transportConfigurationJSON object of device profile transport configurationDeviceProfileTransportConfiguration
provisionType设备创建策略string
scriptId解析脚本IDstring
tbProfileIdTB设备配置IDstring
tenantId租户IDstring
thingsModel物模型物模型
  accessMode读写模式:读r 写wstring
  callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
  createTime创建时间string(date-time)
  creator创建用户string
  defaultConfig租户默认配置string
  description租户描述string
  deviceProfileId设备配置IDstring
  enabled租户状态:启用/禁用boolean
  eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
  functionJson功能jsonJsonNode
  functionName功能名称string
  functionType功能类型,可用值:events,properties,servicesstring
  icon租户图标string
  idIDstring
  identifier功能标识string
  name租户名称string
  remark备注string
  roleIds租户角色列表array
  status状态:0待发布 1发布integer(int32)
  tenantExpireTime租户到期时间string(date-time)
  tenantId租户IDstring
  tenantProfileId租户配置string
  tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
  updateTime更新时间string(date-time)
  updater更新用户string
transportType传输协议string
typeTB设备配置类型,默认DEFAULTstring
updateTime更新时间string(date-time)
updater更新用户string

响应示例:

javascript
{
	"alarmProfile": {
		"alarmContactId": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"enabled": false,
		"icon": "",
		"id": "",
		"messageMode": "",
		"name": "",
		"organizationId": "",
		"organizationName": "",
		"remark": "",
		"roleIds": [],
		"status": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": ""
	},
	"createTime": "",
	"creator": "",
	"default": true,
	"defaultQueueName": "",
	"defaultRuleChainId": "",
	"description": "",
	"deviceCount": 0,
	"deviceType": "",
	"id": "",
	"image": "",
	"name": "",
	"profileData": {
		"alarms": [
			{
				"alarmType": "High Temperature Alarm",
				"clearRule": {
					"alarmDetails": "",
					"condition": {
						"condition": [
							{
								"key": {
									"key": "temp",
									"type": "TIME_SERIES"
								},
								"predicate": {},
								"value": {},
								"valueType": "NUMERIC"
							}
						],
						"spec": {}
					},
					"dashboardId": {
						"entityType": "DASHBOARD",
						"id": "784f394c-42b6-435a-983c-b7beff2784f9"
					},
					"schedule": {
						"type": ""
					}
				},
				"createRules": {},
				"id": "highTemperatureAlarmID",
				"propagate": true,
				"propagateRelationTypes": [],
				"propagateToOwner": true,
				"propagateToTenant": true
			}
		],
		"configuration": {},
		"provisionConfiguration": {
			"provisionDeviceSecret": ""
		},
		"transportConfiguration": {}
	},
	"provisionType": "",
	"scriptId": "",
	"tbProfileId": "",
	"tenantId": "",
	"thingsModel": {
		"accessMode": "",
		"callType": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"deviceProfileId": "",
		"enabled": false,
		"eventType": "",
		"functionJson": {},
		"functionName": "",
		"functionType": "",
		"icon": "",
		"id": "",
		"identifier": "",
		"name": "",
		"remark": "",
		"roleIds": [],
		"status": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": ""
	},
	"transportType": "",
	"type": "",
	"updateTime": "",
	"updater": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

删除

接口地址:/api/yt/device_profile

请求方式:DELETE

请求数据类型:application/x-www-form-urlencoded,application/json

响应数据类型:*/*

请求示例:

javascript
{
  "ids": [],
  "tenantId": ""
}
1
2
3
4

请求参数:

参数名称参数说明请求类型是否必须数据类型
deleteDTODeleteDTObodytrueDeleteDTO
  ids删除ID列表truearray
  tenantId租户IDfalsestring

导出

接口地址:/api/yt/device_profile/export

请求方式:POST

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

暂无

导入配置

接口地址:/api/yt/device_profile/import

请求方式:POST

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

暂无

默认设备配置

接口地址:/api/yt/device_profile/me/default

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

暂无

响应参数:

参数名称参数说明类型
createdTimeTimestamp of the profile creation, in millisecondsinteger(int64)
defaultUsed to mark the default profile. Default profile is used when the device profile is not specified during device creation.boolean
defaultDashboardIdReference to the dashboard. Used in the mobile application to open the default dashboard when user navigates to device details.DashboardIdRes
  entityTypestring,可用值:DASHBOARDstring
  idID of the entity, time-based UUID v1string(uuid)
defaultQueueNameReference to the rule engine queue. If present, the specified queue will be used to store all unprocessed messages related to device, including telemetry, attribute updates, etc. Otherwise, the 'Main' queue will be used to store those messages.string
defaultRuleChainIdReference to the rule chain. If present, the specified rule chain will be used to process all messages related to device, including telemetry, attribute updates, etc. Otherwise, the root rule chain will be used to process those messages.RuleChainId
  entityTypestring,可用值:RULE_CHAINstring
  idID of the entity, time-based UUID v1string(uuid)
descriptionDevice Profile description.string
firmwareIdReference to the firmware OTA package. If present, the specified package will be used as default device firmware.OtaPackageId
  entityTypestring,可用值:OTA_PACKAGEstring
  idID of the entity, time-based UUID v1string(uuid)
idJSON object with the device profile Id. Specify this field to update the device profile. Referencing non-existing device profile Id will cause error. Omit this field to create new device profile.DeviceProfileId
  entityTypestring,可用值:DEVICE_PROFILEstring
  idID of the entity, time-based UUID v1string(uuid)
imageEither URL or Base64 data of the icon. Used in the mobile application to visualize set of device profiles in the grid view.string
nameUnique Device Profile Name in scope of Tenant.string
profileDataComplex JSON object that includes addition device profile configuration (transport, alarm rules, etc).DeviceProfileDataRes
  alarmsJSON array of alarm rules configuration per device profilearray
    alarmTypeString value representing type of the alarmstring
    clearRuleJSON object representing clear alarm ruleAlarmRuleRes
      alarmDetailsString value representing the additional details for an alarm rulestring
      conditionJSON object representing the alarm rule conditionAlarmConditionRes
        conditionJSON array of alarm condition filtersarray
          keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
            keyString value representing the keystring
            typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
          predicateJSON object representing filter conditionKeyFilterPredicate
          valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
          valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
        specJSON object representing alarm condition typeAlarmConditionSpec
      dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
        entityTypestring,可用值:DASHBOARDstring
        idID of the entity, time-based UUID v1string
      scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
        type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
    createRulesComplex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more detailsAlarmRuleRes
      alarmDetailsString value representing the additional details for an alarm rulestring
      conditionJSON object representing the alarm rule conditionAlarmConditionRes
        conditionJSON array of alarm condition filtersarray
          keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
            keyString value representing the keystring
            typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
          predicateJSON object representing filter conditionKeyFilterPredicate
          valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
          valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
        specJSON object representing alarm condition typeAlarmConditionSpec
      dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
        entityTypestring,可用值:DASHBOARDstring
        idID of the entity, time-based UUID v1string
      scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
        type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
    idString value representing the alarm rule idstring
    propagatePropagation flag to specify if alarm should be propagated to parent entities of alarm originatorboolean
    propagateRelationTypesJSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.array
    propagateToOwnerPropagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originatorboolean
    propagateToTenantPropagation flag to specify if alarm should be propagated to the tenant entityboolean
  configurationJSON object of device profile configurationDeviceProfileConfiguration
  provisionConfigurationJSON object of provisioning strategy type per device profileDeviceProfileProvisionConfigurationRes
    provisionDeviceSecretstring
  transportConfigurationJSON object of device profile transport configurationDeviceProfileTransportConfiguration
provisionDeviceKeyUnique provisioning key used by 'Device Provisioning' feature.string
provisionTypeProvisioning strategy.,可用值:ALLOW_CREATE_NEW_DEVICES,CHECK_PRE_PROVISIONED_DEVICES,DISABLEDstring
softwareIdReference to the software OTA package. If present, the specified package will be used as default device software.OtaPackageId
  entityTypestring,可用值:OTA_PACKAGEstring
  idID of the entity, time-based UUID v1string(uuid)
tenantIdJSON object with Tenant Id that owns the profile.TenantId
  entityTypestring,可用值:TENANTstring
  idID of the entity, time-based UUID v1string(uuid)
transportTypeType of the transport used to connect the device. Default transport supports HTTP, CoAP and MQTT.,可用值:COAP,DEFAULT,LWM2M,MQTT,SNMP,TCPstring
typeType of the profile. Always 'DEFAULT' for now. Reserved for future use.,可用值:DEFAULTstring

响应示例:

javascript
{
	"default": false,
	"defaultDashboardId": {
		"entityType": "DASHBOARD",
		"id": "784f394c-42b6-435a-983c-b7beff2784f9"
	},
	"defaultQueueName": "",
	"defaultRuleChainId": {
		"entityType": "RULE_CHAIN",
		"id": "784f394c-42b6-435a-983c-b7beff2784f9"
	},
	"description": "",
	"firmwareId": {
		"entityType": "OTA_PACKAGE",
		"id": "784f394c-42b6-435a-983c-b7beff2784f9"
	},
	"id": {
		"entityType": "DEVICE_PROFILE",
		"id": "784f394c-42b6-435a-983c-b7beff2784f9"
	},
	"image": "",
	"name": "Moisture Sensor",
	"profileData": {
		"alarms": [
			{
				"alarmType": "High Temperature Alarm",
				"clearRule": {
					"alarmDetails": "",
					"condition": {
						"condition": [
							{
								"key": {
									"key": "temp",
									"type": "TIME_SERIES"
								},
								"predicate": {},
								"value": {},
								"valueType": "NUMERIC"
							}
						],
						"spec": {}
					},
					"dashboardId": {
						"entityType": "DASHBOARD",
						"id": "784f394c-42b6-435a-983c-b7beff2784f9"
					},
					"schedule": {
						"type": ""
					}
				},
				"createRules": {},
				"id": "highTemperatureAlarmID",
				"propagate": true,
				"propagateRelationTypes": [],
				"propagateToOwner": true,
				"propagateToTenant": true
			}
		],
		"configuration": {},
		"provisionConfiguration": {
			"provisionDeviceSecret": ""
		},
		"transportConfiguration": {}
	},
	"provisionDeviceKey": "",
	"provisionType": "",
	"softwareId": {
		"entityType": "OTA_PACKAGE",
		"id": "784f394c-42b6-435a-983c-b7beff2784f9"
	},
	"transportType": "",
	"type": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

选项列表

接口地址:/api/yt/device_profile/me/list{?deviceType}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
deviceType设备类型,可用值:DIRECT_CONNECTION,GATEWAY,SENSORqueryfalsestring

响应参数:

参数名称参数说明类型
bodyobject
statusCode可用值:ACCEPTED,ALREADY_REPORTED,BAD_GATEWAY,BAD_REQUEST,BANDWIDTH_LIMIT_EXCEEDED,CHECKPOINT,CONFLICT,CONTINUE,CREATED,DESTINATION_LOCKED,EXPECTATION_FAILED,FAILED_DEPENDENCY,FORBIDDEN,FOUND,GATEWAY_TIMEOUT,GONE,HTTP_VERSION_NOT_SUPPORTED,IM_USED,INSUFFICIENT_SPACE_ON_RESOURCE,INSUFFICIENT_STORAGE,INTERNAL_SERVER_ERROR,I_AM_A_TEAPOT,LENGTH_REQUIRED,LOCKED,LOOP_DETECTED,METHOD_FAILURE,METHOD_NOT_ALLOWED,MOVED_PERMANENTLY,MOVED_TEMPORARILY,MULTIPLE_CHOICES,MULTI_STATUS,NETWORK_AUTHENTICATION_REQUIRED,NON_AUTHORITATIVE_INFORMATION,NOT_ACCEPTABLE,NOT_EXTENDED,NOT_FOUND,NOT_IMPLEMENTED,NOT_MODIFIED,NO_CONTENT,OK,PARTIAL_CONTENT,PAYLOAD_TOO_LARGE,PAYMENT_REQUIRED,PERMANENT_REDIRECT,PRECONDITION_FAILED,PRECONDITION_REQUIRED,PROCESSING,PROXY_AUTHENTICATION_REQUIRED,REQUESTED_RANGE_NOT_SATISFIABLE,REQUEST_ENTITY_TOO_LARGE,REQUEST_HEADER_FIELDS_TOO_LARGE,REQUEST_TIMEOUT,REQUEST_URI_TOO_LONG,RESET_CONTENT,SEE_OTHER,SERVICE_UNAVAILABLE,SWITCHING_PROTOCOLS,TEMPORARY_REDIRECT,TOO_EARLY,TOO_MANY_REQUESTS,UNAUTHORIZED,UNAVAILABLE_FOR_LEGAL_REASONS,UNPROCESSABLE_ENTITY,UNSUPPORTED_MEDIA_TYPE,UPGRADE_REQUIRED,URI_TOO_LONG,USE_PROXY,VARIANT_ALSO_NEGOTIATESstring
statusCodeValueinteger(int32)

响应示例:

javascript
{
	"body": {},
	"statusCode": "",
	"statusCodeValue": 0
}
1
2
3
4
5

详情

接口地址:/api/yt/device_profile/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
ididpathtruestring

响应参数:

参数名称参数说明类型
alarmProfile告警通知配置AlarmProfileDTO
  alarmContactId告警联系人 通知多人“,”号分隔string
  createTime创建时间string(date-time)
  creator创建用户string
  defaultConfig租户默认配置string
  description租户描述string
  enabled租户状态:启用/禁用boolean
  icon租户图标string
  idIDstring
  messageMode消息通知方式:多种方式“,”号分隔 MessageTypeEnumstring
  name告警配置名称string
  organizationId组织IDstring
  organizationName组织名称string
  remark告警配置备注string
  roleIds租户角色列表array
  status状态:0禁用 1启用integer(int32)
  tenantExpireTime租户到期时间string(date-time)
  tenantId租户IDstring
  tenantProfileId租户配置string
  tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
  updateTime更新时间string(date-time)
  updater更新用户string
createTime创建时间string(date-time)
creator创建用户string
defaultboolean
defaultQueueName默认消息队列string
defaultRuleChainId关联规则链,默认关联根规则链string
description描述string
deviceCount产品下的设备数量integer(int32)
deviceType产品类型:GATEWAY,DIRECT_CONNECTION,SENSOR,可用值:DIRECT_CONNECTION,GATEWAY,SENSORstring
idIDstring
image设备配置/产品图片string
name产品(设备配置)名称string
profileDataDeviceProfileDataRes
  alarmsJSON array of alarm rules configuration per device profilearray
    alarmTypeString value representing type of the alarmstring
    clearRuleJSON object representing clear alarm ruleAlarmRuleRes
      alarmDetailsString value representing the additional details for an alarm rulestring
      conditionJSON object representing the alarm rule conditionAlarmConditionRes
        conditionJSON array of alarm condition filtersarray
          keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
            keyString value representing the keystring
            typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
          predicateJSON object representing filter conditionKeyFilterPredicate
          valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
          valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
        specJSON object representing alarm condition typeAlarmConditionSpec
      dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
        entityTypestring,可用值:DASHBOARDstring
        idID of the entity, time-based UUID v1string
      scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
        type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
    createRulesComplex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more detailsAlarmRuleRes
      alarmDetailsString value representing the additional details for an alarm rulestring
      conditionJSON object representing the alarm rule conditionAlarmConditionRes
        conditionJSON array of alarm condition filtersarray
          keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
            keyString value representing the keystring
            typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
          predicateJSON object representing filter conditionKeyFilterPredicate
          valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
          valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
        specJSON object representing alarm condition typeAlarmConditionSpec
      dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
        entityTypestring,可用值:DASHBOARDstring
        idID of the entity, time-based UUID v1string
      scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
        type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
    idString value representing the alarm rule idstring
    propagatePropagation flag to specify if alarm should be propagated to parent entities of alarm originatorboolean
    propagateRelationTypesJSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.array
    propagateToOwnerPropagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originatorboolean
    propagateToTenantPropagation flag to specify if alarm should be propagated to the tenant entityboolean
  configurationJSON object of device profile configurationDeviceProfileConfiguration
  provisionConfigurationJSON object of provisioning strategy type per device profileDeviceProfileProvisionConfigurationRes
    provisionDeviceSecretstring
  transportConfigurationJSON object of device profile transport configurationDeviceProfileTransportConfiguration
provisionType设备创建策略string
scriptId解析脚本IDstring
tbProfileIdTB设备配置IDstring
tenantId租户IDstring
thingsModel物模型物模型
  accessMode读写模式:读r 写wstring
  callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
  createTime创建时间string(date-time)
  creator创建用户string
  defaultConfig租户默认配置string
  description租户描述string
  deviceProfileId设备配置IDstring
  enabled租户状态:启用/禁用boolean
  eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
  functionJson功能jsonJsonNode
  functionName功能名称string
  functionType功能类型,可用值:events,properties,servicesstring
  icon租户图标string
  idIDstring
  identifier功能标识string
  name租户名称string
  remark备注string
  roleIds租户角色列表array
  status状态:0待发布 1发布integer(int32)
  tenantExpireTime租户到期时间string(date-time)
  tenantId租户IDstring
  tenantProfileId租户配置string
  tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
  updateTime更新时间string(date-time)
  updater更新用户string
transportType传输协议string
typeTB设备配置类型,默认DEFAULTstring
updateTime更新时间string(date-time)
updater更新用户string

响应示例:

javascript
{
	"alarmProfile": {
		"alarmContactId": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"enabled": false,
		"icon": "",
		"id": "",
		"messageMode": "",
		"name": "",
		"organizationId": "",
		"organizationName": "",
		"remark": "",
		"roleIds": [],
		"status": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": ""
	},
	"createTime": "",
	"creator": "",
	"default": true,
	"defaultQueueName": "",
	"defaultRuleChainId": "",
	"description": "",
	"deviceCount": 0,
	"deviceType": "",
	"id": "",
	"image": "",
	"name": "",
	"profileData": {
		"alarms": [
			{
				"alarmType": "High Temperature Alarm",
				"clearRule": {
					"alarmDetails": "",
					"condition": {
						"condition": [
							{
								"key": {
									"key": "temp",
									"type": "TIME_SERIES"
								},
								"predicate": {},
								"value": {},
								"valueType": "NUMERIC"
							}
						],
						"spec": {}
					},
					"dashboardId": {
						"entityType": "DASHBOARD",
						"id": "784f394c-42b6-435a-983c-b7beff2784f9"
					},
					"schedule": {
						"type": ""
					}
				},
				"createRules": {},
				"id": "highTemperatureAlarmID",
				"propagate": true,
				"propagateRelationTypes": [],
				"propagateToOwner": true,
				"propagateToTenant": true
			}
		],
		"configuration": {},
		"provisionConfiguration": {
			"provisionDeviceSecret": ""
		},
		"transportConfiguration": {}
	},
	"provisionType": "",
	"scriptId": "",
	"tbProfileId": "",
	"tenantId": "",
	"thingsModel": {
		"accessMode": "",
		"callType": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"deviceProfileId": "",
		"enabled": false,
		"eventType": "",
		"functionJson": {},
		"functionName": "",
		"functionType": "",
		"icon": "",
		"id": "",
		"identifier": "",
		"name": "",
		"remark": "",
		"roleIds": [],
		"status": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": ""
	},
	"transportType": "",
	"type": "",
	"updateTime": "",
	"updater": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

查询

接口地址:/api/yt/device_profile{?name,orderFiled,orderType,page,pageSize,transportType}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明是否必须数据类型
pagepagetrueint
pageSizepageSizetrueint
namenamefalsestring
transportTypetransportTypefalsestring
orderFiledorderFiledfalsestring
orderTypeorderType,可用值:ASC,DESCfalsestring

响应参数:

参数名称参数说明类型
itemsarray
  alarmProfile告警通知配置AlarmProfileDTO
    alarmContactId告警联系人 通知多人“,”号分隔string
    createTime创建时间string
    creator创建用户string
    defaultConfig租户默认配置string
    description租户描述string
    enabled租户状态:启用/禁用boolean
    icon租户图标string
    idIDstring
    messageMode消息通知方式:多种方式“,”号分隔 MessageTypeEnumstring
    name告警配置名称string
    organizationId组织IDstring
    organizationName组织名称string
    remark告警配置备注string
    roleIds租户角色列表array
    status状态:0禁用 1启用integer
    tenantExpireTime租户到期时间string
    tenantId租户IDstring
    tenantProfileId租户配置string
    tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
    updateTime更新时间string
    updater更新用户string
  createTime创建时间string(date-time)
  creator创建用户string
  defaultboolean
  defaultQueueName默认消息队列string
  defaultRuleChainId关联规则链,默认关联根规则链string
  description描述string
  deviceCount产品下的设备数量integer(int32)
  deviceType产品类型:GATEWAY,DIRECT_CONNECTION,SENSOR,可用值:DIRECT_CONNECTION,GATEWAY,SENSORstring
  idIDstring
  image设备配置/产品图片string
  name产品(设备配置)名称string
  profileDataDeviceProfileDataRes
    alarmsJSON array of alarm rules configuration per device profilearray
      alarmTypeString value representing type of the alarmstring
      clearRuleJSON object representing clear alarm ruleAlarmRuleRes
        alarmDetailsString value representing the additional details for an alarm rulestring
        conditionJSON object representing the alarm rule conditionAlarmConditionRes
          conditionJSON array of alarm condition filtersarray
            keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
              keyString value representing the keystring
              typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
            predicateJSON object representing filter conditionKeyFilterPredicate
            valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
            valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
          specJSON object representing alarm condition typeAlarmConditionSpec
        dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
          entityTypestring,可用值:DASHBOARDstring
          idID of the entity, time-based UUID v1string
        scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
          type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
      createRulesComplex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more detailsAlarmRuleRes
        alarmDetailsString value representing the additional details for an alarm rulestring
        conditionJSON object representing the alarm rule conditionAlarmConditionRes
          conditionJSON array of alarm condition filtersarray
            keyJSON object for specifying alarm condition by specific keyAlarmConditionFilterKeyRes
              keyString value representing the keystring
              typeThe key type,可用值:ATTRIBUTE,CONSTANT,ENTITY_FIELD,TIME_SERIESstring
            predicateJSON object representing filter conditionKeyFilterPredicate
            valueValue used in Constant comparison. For other types, such as TIME_SERIES or ATTRIBUTE, the predicate condition is usedobject
            valueTypeString representation of the type of the value,可用值:BOOLEAN,DATE_TIME,NUMERIC,STRINGstring
          specJSON object representing alarm condition typeAlarmConditionSpec
        dashboardIdJSON object with the dashboard Id representing the reference to alarm details dashboard used by mobile applicationDashboardIdRes
          entityTypestring,可用值:DASHBOARDstring
          idID of the entity, time-based UUID v1string
        scheduleJSON object representing time interval during which the rule is activeAlarmScheduleRes
          type可用值:ANY_TIME,CUSTOM,SPECIFIC_TIMEstring
      idString value representing the alarm rule idstring
      propagatePropagation flag to specify if alarm should be propagated to parent entities of alarm originatorboolean
      propagateRelationTypesJSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.array
      propagateToOwnerPropagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originatorboolean
      propagateToTenantPropagation flag to specify if alarm should be propagated to the tenant entityboolean
    configurationJSON object of device profile configurationDeviceProfileConfiguration
    provisionConfigurationJSON object of provisioning strategy type per device profileDeviceProfileProvisionConfigurationRes
      provisionDeviceSecretstring
    transportConfigurationJSON object of device profile transport configurationDeviceProfileTransportConfiguration
  provisionType设备创建策略string
  scriptId解析脚本IDstring
  tbProfileIdTB设备配置IDstring
  tenantId租户IDstring
  thingsModel物模型物模型
    accessMode读写模式:读r 写wstring
    callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
    createTime创建时间string
    creator创建用户string
    defaultConfig租户默认配置string
    description租户描述string
    deviceProfileId设备配置IDstring
    enabled租户状态:启用/禁用boolean
    eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
    functionJson功能jsonJsonNode
    functionName功能名称string
    functionType功能类型,可用值:events,properties,servicesstring
    icon租户图标string
    idIDstring
    identifier功能标识string
    name租户名称string
    remark备注string
    roleIds租户角色列表array
    status状态:0待发布 1发布integer
    tenantExpireTime租户到期时间string
    tenantId租户IDstring
    tenantProfileId租户配置string
    tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
    updateTime更新时间string
    updater更新用户string
  transportType传输协议string
  typeTB设备配置类型,默认DEFAULTstring
  updateTime更新时间string(date-time)
  updater更新用户string
totalinteger(int32)

响应示例:

javascript
{
	"items": [
		{
			"alarmProfile": {
				"alarmContactId": "",
				"createTime": "",
				"creator": "",
				"defaultConfig": "",
				"description": "",
				"enabled": false,
				"icon": "",
				"id": "",
				"messageMode": "",
				"name": "",
				"organizationId": "",
				"organizationName": "",
				"remark": "",
				"roleIds": [],
				"status": 0,
				"tenantExpireTime": "",
				"tenantId": "",
				"tenantProfileId": "",
				"tenantStatus": "",
				"updateTime": "",
				"updater": ""
			},
			"createTime": "",
			"creator": "",
			"default": true,
			"defaultQueueName": "",
			"defaultRuleChainId": "",
			"description": "",
			"deviceCount": 0,
			"deviceType": "",
			"id": "",
			"image": "",
			"name": "",
			"profileData": {
				"alarms": [
					{
						"alarmType": "High Temperature Alarm",
						"clearRule": {
							"alarmDetails": "",
							"condition": {
								"condition": [
									{
										"key": {
											"key": "temp",
											"type": "TIME_SERIES"
										},
										"predicate": {},
										"value": {},
										"valueType": "NUMERIC"
									}
								],
								"spec": {}
							},
							"dashboardId": {
								"entityType": "DASHBOARD",
								"id": "784f394c-42b6-435a-983c-b7beff2784f9"
							},
							"schedule": {
								"type": ""
							}
						},
						"createRules": {},
						"id": "highTemperatureAlarmID",
						"propagate": true,
						"propagateRelationTypes": [],
						"propagateToOwner": true,
						"propagateToTenant": true
					}
				],
				"configuration": {},
				"provisionConfiguration": {
					"provisionDeviceSecret": ""
				},
				"transportConfiguration": {}
			},
			"provisionType": "",
			"scriptId": "",
			"tbProfileId": "",
			"tenantId": "",
			"thingsModel": {
				"accessMode": "",
				"callType": "",
				"createTime": "",
				"creator": "",
				"defaultConfig": "",
				"description": "",
				"deviceProfileId": "",
				"enabled": false,
				"eventType": "",
				"functionJson": {},
				"functionName": "",
				"functionType": "",
				"icon": "",
				"id": "",
				"identifier": "",
				"name": "",
				"remark": "",
				"roleIds": [],
				"status": 0,
				"tenantExpireTime": "",
				"tenantId": "",
				"tenantProfileId": "",
				"tenantStatus": "",
				"updateTime": "",
				"updater": ""
			},
			"transportType": "",
			"type": "",
			"updateTime": "",
			"updater": ""
		}
	],
	"total": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118

保存物模型

接口地址:/api/yt/things_model

请求方式:POST

请求数据类型:application/x-www-form-urlencoded,application/json

响应数据类型:*/*

请求示例:

javascript
{
  "accessMode": "",
  "callType": "",
  "createTime": "",
  "creator": "",
  "defaultConfig": "",
  "description": "",
  "deviceProfileId": "",
  "enabled": false,
  "eventType": "",
  "functionJson": {},
  "functionName": "",
  "functionType": "",
  "icon": "",
  "id": "",
  "identifier": "",
  "name": "",
  "remark": "",
  "roleIds": [],
  "status": 0,
  "tenantExpireTime": "",
  "tenantId": "",
  "tenantProfileId": "",
  "tenantStatus": "",
  "updateTime": "",
  "updater": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

请求参数:

参数名称参数说明请求类型是否必须数据类型
物模型物模型bodytrue物模型
  accessMode读写模式:读r 写wfalsestring
  callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCfalsestring
  createTime创建时间falsestring(date-time)
  creator创建用户falsestring
  defaultConfig租户默认配置falsestring
  description租户描述falsestring
  deviceProfileId设备配置IDfalsestring
  enabled租户状态:启用/禁用falseboolean
  eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOfalsestring
  functionJson功能jsonfalseJsonNode
  functionName功能名称falsestring
  functionType功能类型,可用值:events,properties,servicesfalsestring
  icon租户图标falsestring
  idIDfalsestring
  identifier功能标识falsestring
  name租户名称falsestring
  remark备注falsestring
  roleIds租户角色列表falsearray
  status状态:0待发布 1发布falseinteger(int32)
  tenantExpireTime租户到期时间falsestring(date-time)
  tenantId租户IDfalsestring
  tenantProfileId租户配置falsestring
  tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
  updateTime更新时间falsestring(date-time)
  updater更新用户falsestring

响应参数:

参数名称参数说明类型
accessMode读写模式:读r 写wstring
callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
deviceProfileId设备配置IDstring
enabled租户状态:启用/禁用boolean
eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
functionJson功能jsonJsonNode
functionName功能名称string
functionType功能类型,可用值:events,properties,servicesstring
icon租户图标string
idIDstring
identifier功能标识string
name租户名称string
remark备注string
roleIds租户角色列表array
status状态:0待发布 1发布integer(int32)
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string

响应示例:

javascript
{
	"accessMode": "",
	"callType": "",
	"createTime": "",
	"creator": "",
	"defaultConfig": "",
	"description": "",
	"deviceProfileId": "",
	"enabled": false,
	"eventType": "",
	"functionJson": {},
	"functionName": "",
	"functionType": "",
	"icon": "",
	"id": "",
	"identifier": "",
	"name": "",
	"remark": "",
	"roleIds": [],
	"status": 0,
	"tenantExpireTime": "",
	"tenantId": "",
	"tenantProfileId": "",
	"tenantStatus": "",
	"updateTime": "",
	"updater": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

修改物模型

接口地址:/api/yt/things_model

请求方式:PUT

请求数据类型:application/x-www-form-urlencoded,application/json

响应数据类型:*/*

请求示例:

javascript
{
  "accessMode": "",
  "callType": "",
  "createTime": "",
  "creator": "",
  "defaultConfig": "",
  "description": "",
  "deviceProfileId": "",
  "enabled": false,
  "eventType": "",
  "functionJson": {},
  "functionName": "",
  "functionType": "",
  "icon": "",
  "id": "",
  "identifier": "",
  "name": "",
  "remark": "",
  "roleIds": [],
  "status": 0,
  "tenantExpireTime": "",
  "tenantId": "",
  "tenantProfileId": "",
  "tenantStatus": "",
  "updateTime": "",
  "updater": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

请求参数:

参数名称参数说明请求类型是否必须数据类型
物模型物模型bodytrue物模型
  accessMode读写模式:读r 写wfalsestring
  callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCfalsestring
  createTime创建时间falsestring(date-time)
  creator创建用户falsestring
  defaultConfig租户默认配置falsestring
  description租户描述falsestring
  deviceProfileId设备配置IDfalsestring
  enabled租户状态:启用/禁用falseboolean
  eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOfalsestring
  functionJson功能jsonfalseJsonNode
  functionName功能名称falsestring
  functionType功能类型,可用值:events,properties,servicesfalsestring
  icon租户图标falsestring
  idIDfalsestring
  identifier功能标识falsestring
  name租户名称falsestring
  remark备注falsestring
  roleIds租户角色列表falsearray
  status状态:0待发布 1发布falseinteger(int32)
  tenantExpireTime租户到期时间falsestring(date-time)
  tenantId租户IDfalsestring
  tenantProfileId租户配置falsestring
  tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
  updateTime更新时间falsestring(date-time)
  updater更新用户falsestring

响应参数:

参数名称参数说明类型
accessMode读写模式:读r 写wstring
callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
deviceProfileId设备配置IDstring
enabled租户状态:启用/禁用boolean
eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
functionJson功能jsonJsonNode
functionName功能名称string
functionType功能类型,可用值:events,properties,servicesstring
icon租户图标string
idIDstring
identifier功能标识string
name租户名称string
remark备注string
roleIds租户角色列表array
status状态:0待发布 1发布integer(int32)
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string

响应示例:

javascript
{
	"accessMode": "",
	"callType": "",
	"createTime": "",
	"creator": "",
	"defaultConfig": "",
	"description": "",
	"deviceProfileId": "",
	"enabled": false,
	"eventType": "",
	"functionJson": {},
	"functionName": "",
	"functionType": "",
	"icon": "",
	"id": "",
	"identifier": "",
	"name": "",
	"remark": "",
	"roleIds": [],
	"status": 0,
	"tenantExpireTime": "",
	"tenantId": "",
	"tenantProfileId": "",
	"tenantStatus": "",
	"updateTime": "",
	"updater": ""
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

删除

接口地址:/api/yt/things_model

请求方式:DELETE

请求数据类型:application/x-www-form-urlencoded,application/json

响应数据类型:*/*

请求示例:

javascript
{
  "ids": [],
  "tenantId": ""
}
1
2
3
4

请求参数:

参数名称参数说明请求类型是否必须数据类型
deleteDTODeleteDTObodytrueDeleteDTO
  ids删除ID列表truearray
  tenantId租户IDfalsestring

获取产品服务

接口地址:/api/yt/things_model/get_services/{deviceProfileId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
deviceProfileIddeviceProfileIdpathtruestring

响应参数:

参数名称参数说明类型
accessMode读写模式:读r 写wstring
callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
deviceProfileId设备配置IDstring
enabled租户状态:启用/禁用boolean
eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
functionJson功能jsonJsonNode
functionName功能名称string
functionType功能类型,可用值:events,properties,servicesstring
icon租户图标string
idIDstring
identifier功能标识string
name租户名称string
remark备注string
roleIds租户角色列表array
status状态:0待发布 1发布integer(int32)
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string

响应示例:

javascript
[
	{
		"accessMode": "",
		"callType": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"deviceProfileId": "",
		"enabled": false,
		"eventType": "",
		"functionJson": {},
		"functionName": "",
		"functionType": "",
		"icon": "",
		"id": "",
		"identifier": "",
		"name": "",
		"remark": "",
		"roleIds": [],
		"status": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": ""
	}
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

分页

接口地址:/api/yt/things_model/page{?deviceProfileId,functionType,nameOrIdentifier,orderFiled,orderType,page,pageSize}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
deviceProfileIddeviceProfileIdquerytruestring
pagepagequerytruestring
pageSizepageSizequerytruestring
nameOrIdentifiernameOrIdentifierqueryfalsestring
functionTypefunctionType,可用值:events,properties,servicesqueryfalsestring
orderFiledorderFiledqueryfalsestring
orderTypeorderType,可用值:ASC,DESCqueryfalsestring

响应参数:

参数名称参数说明类型
itemsarray
  accessMode读写模式:读r 写wstring
  callType调用方式:同步sync 异步async,可用值:ASYNC,SYNCstring
  createTime创建时间string(date-time)
  creator创建用户string
  defaultConfig租户默认配置string
  description租户描述string
  deviceProfileId设备配置IDstring
  enabled租户状态:启用/禁用boolean
  eventType事件类型:信息info 告警alert 故障error,可用值:ALERT,ERROR,INFOstring
  functionJson功能jsonJsonNode
  functionName功能名称string
  functionType功能类型,可用值:events,properties,servicesstring
  icon租户图标string
  idIDstring
  identifier功能标识string
  name租户名称string
  remark备注string
  roleIds租户角色列表array
  status状态:0待发布 1发布integer(int32)
  tenantExpireTime租户到期时间string(date-time)
  tenantId租户IDstring
  tenantProfileId租户配置string
  tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
  updateTime更新时间string(date-time)
  updater更新用户string
totalinteger(int32)

响应示例:

javascript
{
	"items": [
		{
			"accessMode": "",
			"callType": "",
			"createTime": "",
			"creator": "",
			"defaultConfig": "",
			"description": "",
			"deviceProfileId": "",
			"enabled": false,
			"eventType": "",
			"functionJson": {},
			"functionName": "",
			"functionType": "",
			"icon": "",
			"id": "",
			"identifier": "",
			"name": "",
			"remark": "",
			"roleIds": [],
			"status": 0,
			"tenantExpireTime": "",
			"tenantId": "",
			"tenantProfileId": "",
			"tenantStatus": "",
			"updateTime": "",
			"updater	": ""
		}
	],
	"total": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

物模型发布

接口地址:/api/yt/things_model/{deviceProfileId}

请求方式:PUT

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
deviceProfileIddeviceProfileIdpathtruestring

获取物模型TSL

接口地址:/api/yt/things_model/{functionType}/{deviceProfileId}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
functionTypefunctionType,可用值:events,properties,servicespathtruestring
deviceProfileIddeviceProfileIdpathtruestring

响应参数:

暂无

响应示例:

javascript
null
1