Feature: Disco Device Registration
A method of 'Enrolling' devices which only updates the Disco database (makes no changes to clients or AD). Can be easily called from a script and used to add servers or any custom device.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Disco.Models.ClientServices
|
||||
{
|
||||
public class Register
|
||||
{
|
||||
[Required]
|
||||
public string DeviceUUID { get; set; }
|
||||
[Required]
|
||||
public string DeviceSerialNumber { get; set; }
|
||||
|
||||
[Required]
|
||||
public string DeviceDNSDomainName { get; set; }
|
||||
[Required]
|
||||
public string DeviceComputerName { get; set; }
|
||||
[Required]
|
||||
public bool DeviceIsPartOfDomain { get; set; }
|
||||
|
||||
[Required]
|
||||
public string DeviceManufacturer { get; set; }
|
||||
[Required]
|
||||
public string DeviceModel { get; set; }
|
||||
[Required]
|
||||
public string DeviceModelType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
namespace Disco.Models.ClientServices
|
||||
{
|
||||
public class RegisterResponse
|
||||
{
|
||||
public string SessionId { get; set; }
|
||||
|
||||
public string DeviceDomainName { get; set; }
|
||||
public string DeviceComputerName { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user