Cloud Device Registration Controller Resource

GET /cloud-device-registration

Response Body
media type data type description
application/json DeviceRegistrationCodeResponse (JSON)

Example

Request
GET /cloud-device-registration
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "error" : { },
  "errorBody" : "...",
  "user_code" : "...",
  "device_code" : "...",
  "verification_uri" : "...",
  "expires_in" : 12345
}
                
              

POST /cloud-device-registration/auth

Request Body
media type data type
application/json RegisterDeviceAndAppAuthRequest (JSON)
Response Body
media type data type description
application/json RegisterDeviceAndAppAuthResponse (JSON)

Example

Request
POST /cloud-device-registration/auth
Content-Type: application/json
Accept: application/json

                
{
  "device_code" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "errorCode" : "...",
  "errorBody" : "...",
  "access_token" : "..."
}
                
              

POST /cloud-device-registration/register

Request Body
media type data type
application/json RegisterDeviceAndAppsRequest (JSON)
Response Body
media type data type description
application/json RegisterDeviceAndAppsResponse (JSON)

Example

Request
POST /cloud-device-registration/register
Content-Type: application/json
Accept: application/json

                
{
  "access_token" : "...",
  "redirect_url" : "...",
  "limit" : 12345
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "errorCode" : "...",
  "errorBody" : "...",
  "tenant_id" : "...",
  "tenant_name" : "...",
  "applications" : [ {
    "appId" : "...",
    "error" : { },
    "id" : "...",
    "errorBody" : "...",
    "displayName" : "...",
    "clientSecret" : "..."
  }, {
    "appId" : "...",
    "error" : { },
    "id" : "...",
    "errorBody" : "...",
    "displayName" : "...",
    "clientSecret" : "..."
  } ]
}