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:
Gary Sharp
2014-07-31 15:52:42 +10:00
parent 12fc071786
commit 3b0286fe11
7 changed files with 276 additions and 20 deletions
+26
View File
@@ -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; }
}
}