|
|
@ -52,7 +52,7 @@ import java.util.List;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
|
|
|
),
|
|
|
|
tags = {
|
|
|
|
tags = {
|
|
|
|
@Tag(name = "devicemgt_windows", description = "")
|
|
|
|
@Tag(name = "windows", description = "")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@Api(value = "Windows Device Management Administrative Service",
|
|
|
|
@Api(value = "Windows Device Management Administrative Service",
|
|
|
@ -63,277 +63,407 @@ import java.util.List;
|
|
|
|
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
|
|
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
|
|
public interface DeviceManagementAdminService {
|
|
|
|
public interface DeviceManagementAdminService {
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/lock-devices")
|
|
|
|
@Path("/lock-devices")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "POST",
|
|
|
|
httpMethod = "POST",
|
|
|
|
value = "Adding a Device Lock on Windows devices.",
|
|
|
|
value = "Adding a Device Lock on Windows devices.",
|
|
|
|
notes = "Using this API you have the option of Device Windows device.",
|
|
|
|
notes = "Using this API you have the option of Device Windows device.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
authorizations = {
|
|
|
|
authorizations = {
|
|
|
|
@Authorization(
|
|
|
|
@Authorization(
|
|
|
|
value = "permission",
|
|
|
|
value = "permission",
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/lock",
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/lock",
|
|
|
|
description = "Lock Device")}
|
|
|
|
description = "Lock Device")}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 201,
|
|
|
|
code = 201,
|
|
|
|
message = "Created. \n Successfully scheduled the device lock operation.",
|
|
|
|
message = "Created. \n Successfully scheduled the device lock operation.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Type",
|
|
|
|
name = "Content-Type",
|
|
|
|
description = "Content type of the body"),
|
|
|
|
description = "Content type of the body"),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource was last modified. \n" +
|
|
|
|
description = "Date and time the resource was last modified. \n" +
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 303,
|
|
|
|
code = 303,
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.",
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.",
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 415,
|
|
|
|
code = 415,
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported.\n"),
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported.\n"),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while locking the device.")
|
|
|
|
"Server error occurred while locking the device.")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response lock(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
Response lock(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
name = "deviceIDs",
|
|
|
|
name = "deviceIDs",
|
|
|
|
value = "Provide the ID of the AWindows device. Multiple device IDs can be added by " +
|
|
|
|
value = "Provide the ID of the AWindows device. Multiple device IDs can be added by " +
|
|
|
|
"using comma separated values. ",
|
|
|
|
"using comma separated values. ",
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/disenroll-devices")
|
|
|
|
@Path("/disenroll-devices")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "POST",
|
|
|
|
httpMethod = "POST",
|
|
|
|
value = "Dis-enrol the windows Devices",
|
|
|
|
value = "Dis-enrol the windows Devices",
|
|
|
|
notes = "Dis-enroll on Android devices",
|
|
|
|
notes = "Dis-enroll on Android devices",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
tags = "Windows Device Management Administrative Service.",
|
|
|
|
tags = "Windows Device Management Administrative Service.",
|
|
|
|
authorizations = {
|
|
|
|
authorizations = {
|
|
|
|
@Authorization(
|
|
|
|
@Authorization(
|
|
|
|
value = "permission",
|
|
|
|
value = "permission",
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scope = "/device-mgt/devices/disenroll/windows",
|
|
|
|
scope = "/device-mgt/devices/disenroll/windows",
|
|
|
|
description = "Dis-enroll the windows devices ")}
|
|
|
|
description = "Dis-enroll the windows devices ")}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 201,
|
|
|
|
code = 201,
|
|
|
|
message = "Created. \n Successfully scheduled the Dis-enroll operation.",
|
|
|
|
message = "Created. \n Successfully scheduled the Dis-enroll operation.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Type",
|
|
|
|
name = "Content-Type",
|
|
|
|
description = "Content type of the body"),
|
|
|
|
description = "Content type of the body"),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource was last modified the last time.\n" +
|
|
|
|
description = "Date and time the resource was last modified the last time.\n" +
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 303,
|
|
|
|
code = 303,
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.\n",
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.\n",
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 415,
|
|
|
|
code = 415,
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while adding a Dis-enroll operation.")
|
|
|
|
"Server error occurred while adding a Dis-enroll operation.")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response disenroll(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
Response disenroll(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
name = "deviceIDs",
|
|
|
|
name = "deviceIDs",
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
"using comma separated values. ",
|
|
|
|
"using comma separated values. ",
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/wipe-devices")
|
|
|
|
@Path("/wipe-devices")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
produces = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "POST",
|
|
|
|
httpMethod = "POST",
|
|
|
|
value = "Factory Resetting an Windows Device",
|
|
|
|
value = "Factory Resetting an Windows Device",
|
|
|
|
notes = "Factory rest or erase all the data stored on the Windows devices" +
|
|
|
|
notes = "Factory rest or erase all the data stored on the Windows devices" +
|
|
|
|
"to restore them back to the original system.",
|
|
|
|
"to restore them back to the original system.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
authorizations = {
|
|
|
|
authorizations = {
|
|
|
|
@Authorization(
|
|
|
|
@Authorization(
|
|
|
|
value = "permission",
|
|
|
|
value = "permission",
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/wipe",
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/wipe",
|
|
|
|
description = "DeviceWipe")}
|
|
|
|
description = "DeviceWipe")}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 201,
|
|
|
|
code = 201,
|
|
|
|
message = "Created. \n Successfully scheduled the Data wipe operation.",
|
|
|
|
message = "Created. \n Successfully scheduled the Data wipe operation.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Type",
|
|
|
|
name = "Content-Type",
|
|
|
|
description = "Content type of the body"),
|
|
|
|
description = "Content type of the body"),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource was last modified." +
|
|
|
|
description = "Date and time the resource was last modified." +
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 303,
|
|
|
|
code = 303,
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.\n",
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.\n",
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 415,
|
|
|
|
code = 415,
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while adding the Data wipe operation.")})
|
|
|
|
"Server error occurred while adding the Data wipe operation.")})
|
|
|
|
Response wipe(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
Response wipe(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
name = "deviceIDs",
|
|
|
|
name = "deviceIDs",
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
"using comma separated values. ",
|
|
|
|
"using comma separated values. ",
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/ring-devices")
|
|
|
|
@Path("/ring-devices")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "POST",
|
|
|
|
httpMethod = "POST",
|
|
|
|
value = "Ringing Windows Devices",
|
|
|
|
value = "Ringing Windows Devices",
|
|
|
|
notes = "Ring Windows devices.",
|
|
|
|
notes = "Ring Windows devices.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
authorizations = {
|
|
|
|
authorizations = {
|
|
|
|
@Authorization(
|
|
|
|
@Authorization(
|
|
|
|
value="permission",
|
|
|
|
value = "permission",
|
|
|
|
scopes = { @AuthorizationScope(
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/ring",
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/ring",
|
|
|
|
description = "Ring Device") }
|
|
|
|
description = "Ring Device")}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 201,
|
|
|
|
code = 201,
|
|
|
|
message = "Created. \n Successfully scheduled the device ring operation.",
|
|
|
|
message = "Created. \n Successfully scheduled the device ring operation.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Type",
|
|
|
|
name = "Content-Type",
|
|
|
|
description = "Content type of the body"),
|
|
|
|
description = "Content type of the body"),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "ETag",
|
|
|
|
name = "ETag",
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Last-Modified",
|
|
|
|
name = "Last-Modified",
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 303,
|
|
|
|
code = 303,
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.",
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.",
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
|
name = "Content-Location",
|
|
|
|
name = "Content-Location",
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 400,
|
|
|
|
code = 400,
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 415,
|
|
|
|
code = 415,
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported.\n"),
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported.\n"),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while adding a new device ring operation.")
|
|
|
|
"Server error occurred while adding a new device ring operation.")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response ring(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
Response ring(@HeaderParam("Accept") String headerParam, @ApiParam(
|
|
|
|
name = "deviceIDs",
|
|
|
|
name = "deviceIDs",
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
"using comma separated values. ",
|
|
|
|
"using comma separated values. ",
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
|
|
|
|
@Path("/lock-reset-devices")
|
|
|
|
|
|
|
|
@ApiOperation(
|
|
|
|
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
|
|
|
|
httpMethod = "POST",
|
|
|
|
|
|
|
|
value = "Lock reset on Windows devices",
|
|
|
|
|
|
|
|
notes = "Lock reset on Windows devices.Its use to reset the device pass code",
|
|
|
|
|
|
|
|
response = Activity.class,
|
|
|
|
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
|
|
|
|
authorizations = {
|
|
|
|
|
|
|
|
@Authorization(
|
|
|
|
|
|
|
|
value = "permission",
|
|
|
|
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/lock-reset",
|
|
|
|
|
|
|
|
description = "Lock reset")}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
@ApiResponses(value = {
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 201,
|
|
|
|
|
|
|
|
message = "Created. \n Successfully scheduled the lock-reset operation.",
|
|
|
|
|
|
|
|
response = Activity.class,
|
|
|
|
|
|
|
|
responseHeaders = {
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Content-Location",
|
|
|
|
|
|
|
|
description = "URL of the activity instance that refers to the scheduled operation."),
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Content-Type",
|
|
|
|
|
|
|
|
description = "Content type of the body"),
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "ETag",
|
|
|
|
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Last-Modified",
|
|
|
|
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 303,
|
|
|
|
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the location header.\n",
|
|
|
|
|
|
|
|
responseHeaders = {
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Content-Location",
|
|
|
|
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 400,
|
|
|
|
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 415,
|
|
|
|
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 500,
|
|
|
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
|
|
|
"Server error occurred while adding adding a lock-reset operation.")
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
Response lockReset(@HeaderParam("Accept") String acceptHeader, @ApiParam(
|
|
|
|
|
|
|
|
name = "deviceIDs",
|
|
|
|
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
|
|
|
|
"using comma separated values. ",
|
|
|
|
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
|
|
|
|
@Path("/location")
|
|
|
|
|
|
|
|
@ApiOperation(
|
|
|
|
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
|
|
|
|
httpMethod = "POST",
|
|
|
|
|
|
|
|
value = "Requesting Location Coordinates",
|
|
|
|
|
|
|
|
responseContainer = "List",
|
|
|
|
|
|
|
|
notes = "Request location coordinates of Windows devices. \n" +
|
|
|
|
|
|
|
|
"Example: In situations where you have lost your device and need to find out where it is, " +
|
|
|
|
|
|
|
|
"you can use this REST API to get the location of the device.",
|
|
|
|
|
|
|
|
response = Activity.class,
|
|
|
|
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
|
|
|
|
authorizations = {
|
|
|
|
|
|
|
|
@Authorization(
|
|
|
|
|
|
|
|
value = "permission",
|
|
|
|
|
|
|
|
scopes = {@AuthorizationScope(
|
|
|
|
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/location",
|
|
|
|
|
|
|
|
description = "Get Device Location")}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
@ApiResponses(value = {
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 201,
|
|
|
|
|
|
|
|
message = "Created. \n Get-location operation has successfully been scheduled",
|
|
|
|
|
|
|
|
response = Activity.class,
|
|
|
|
|
|
|
|
responseHeaders = {
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Content-Location",
|
|
|
|
|
|
|
|
description = "URL of the activity instance that refers to the " +
|
|
|
|
|
|
|
|
"scheduled operation."),
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Content-Type",
|
|
|
|
|
|
|
|
description = "Content type of the body"),
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "ETag",
|
|
|
|
|
|
|
|
description = "Entity Tag of the response resource.\n" +
|
|
|
|
|
|
|
|
"Used by caches, or in conditional requests."),
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Last-Modified",
|
|
|
|
|
|
|
|
description = "Date and time the resource was last modified.\n" +
|
|
|
|
|
|
|
|
"Used by caches, or in conditional requests.")}),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 303,
|
|
|
|
|
|
|
|
message = "See Other. \n The source can be retrieved from the URL specified in the" +
|
|
|
|
|
|
|
|
" location header.",
|
|
|
|
|
|
|
|
responseHeaders = {
|
|
|
|
|
|
|
|
@ResponseHeader(
|
|
|
|
|
|
|
|
name = "Content-Location",
|
|
|
|
|
|
|
|
description = "The Source URL of the document.")}),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 400,
|
|
|
|
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 415,
|
|
|
|
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
|
|
|
|
@ApiResponse(
|
|
|
|
|
|
|
|
code = 500,
|
|
|
|
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
|
|
|
|
"Server error occurred while adding a new get-location operation.")})
|
|
|
|
|
|
|
|
Response getDeviceLocation(
|
|
|
|
|
|
|
|
@ApiParam(
|
|
|
|
|
|
|
|
name = "deviceIDs",
|
|
|
|
|
|
|
|
value = "Provide the ID of the Windows device. Multiple device IDs can be added by " +
|
|
|
|
|
|
|
|
"using comma separated values. ",
|
|
|
|
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/lock-reset-devices")
|
|
|
|
@Path("/reboot")
|
|
|
|
@ApiOperation(
|
|
|
|
@ApiOperation(
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
consumes = MediaType.APPLICATION_JSON,
|
|
|
|
httpMethod = "POST",
|
|
|
|
httpMethod = "POST",
|
|
|
|
value = "Lock reset on Windows devices",
|
|
|
|
value = "Rebooting Windows Devices",
|
|
|
|
notes = "Lock reset on Windows devices.Its use to reset the device pass code",
|
|
|
|
notes = "Reboot or restart your Windows devices.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
tags = "Windows Device Management Administrative Service",
|
|
|
|
authorizations = {
|
|
|
|
authorizations = {
|
|
|
|
@Authorization(
|
|
|
|
@Authorization(
|
|
|
|
value="permission",
|
|
|
|
value="permission",
|
|
|
|
scopes = { @AuthorizationScope(
|
|
|
|
scopes = { @AuthorizationScope(
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/lock-reset",
|
|
|
|
scope = "/device-mgt/devices/owning-device/operations/windows/reboot",
|
|
|
|
description = "Lock reset") }
|
|
|
|
description = "Reboot Device") }
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponses(value = {
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 201,
|
|
|
|
code = 201,
|
|
|
|
message = "Created. \n Successfully scheduled the lock-reset operation.",
|
|
|
|
message = "Created. \n Successfully scheduled the device reboot operation.",
|
|
|
|
response = Activity.class,
|
|
|
|
response = Activity.class,
|
|
|
|
responseHeaders = {
|
|
|
|
responseHeaders = {
|
|
|
|
@ResponseHeader(
|
|
|
|
@ResponseHeader(
|
|
|
@ -362,15 +492,16 @@ public interface DeviceManagementAdminService {
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
message = "Bad Request. \n Invalid request or validation error."),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 415,
|
|
|
|
code = 415,
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported."),
|
|
|
|
message = "Unsupported media type. \n The format of the requested entity was not supported.\n"),
|
|
|
|
@ApiResponse(
|
|
|
|
@ApiResponse(
|
|
|
|
code = 500,
|
|
|
|
code = 500,
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
message = "Internal Server Error. \n " +
|
|
|
|
"Server error occurred while adding adding a lock-reset operation.")
|
|
|
|
"Server error occurred while adding the new device reboot operation.")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Response lockReset(@HeaderParam("Accept") String acceptHeader, @ApiParam(
|
|
|
|
Response rebootDevice(
|
|
|
|
name = "deviceIDs",
|
|
|
|
@ApiParam(
|
|
|
|
value = "Provide the ID of the A Windows device. Multiple device IDs can be added by " +
|
|
|
|
name = "deviceIDs",
|
|
|
|
"using comma separated values. ",
|
|
|
|
value = "Provide the ID of the Android device. Multiple device IDs can be added using comma separated values. ",
|
|
|
|
required = true) List<String> deviceIds) throws WindowsDeviceEnrolmentException;
|
|
|
|
required = true)
|
|
|
|
|
|
|
|
List<String> deviceIDs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|