|
|
@ -165,6 +165,13 @@ import java.util.Map;
|
|
|
|
roles = {"Internal/devicemgt-user"},
|
|
|
|
roles = {"Internal/devicemgt-user"},
|
|
|
|
permissions = {"/device-mgt/devices/change-status"}
|
|
|
|
permissions = {"/device-mgt/devices/change-status"}
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
@Scope(
|
|
|
|
|
|
|
|
name = "Update status of a given operation",
|
|
|
|
|
|
|
|
description = "Updates the status of a given operation of a given device",
|
|
|
|
|
|
|
|
key = "dm:devices:ops:status:update",
|
|
|
|
|
|
|
|
roles = {"Internal/devicemgt-user"},
|
|
|
|
|
|
|
|
permissions = {"/device-mgt/devices/operations/status-update"}
|
|
|
|
|
|
|
|
),
|
|
|
|
@Scope(
|
|
|
|
@Scope(
|
|
|
|
name = "Enroll Device",
|
|
|
|
name = "Enroll Device",
|
|
|
|
description = "Register a device",
|
|
|
|
description = "Register a device",
|
|
|
@ -2714,12 +2721,12 @@ public interface DeviceManagementService {
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "PUT",
|
|
|
|
httpMethod = "PUT",
|
|
|
|
value = "Update status of a given opeation",
|
|
|
|
value = "Update status of a given operation",
|
|
|
|
notes = "Updates the status of a given operation of a given device in Entgra IoT Server.",
|
|
|
|
notes = "Updates the status of a given operation of a given device in Entgra IoT Server.",
|
|
|
|
tags = "Device Management",
|
|
|
|
tags = "Device Management",
|
|
|
|
extensions = {
|
|
|
|
extensions = {
|
|
|
|
@Extension(properties = {
|
|
|
|
@Extension(properties = {
|
|
|
|
@ExtensionProperty(name = Constants.SCOPE, value = "dm:devices:ops:view")
|
|
|
|
@ExtensionProperty(name = Constants.SCOPE, value = "dm:devices:ops:status:update")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|