Register to ZTP.

Prev Next
Post
/ztp

Register to ZTP.

Security
HTTP
Type bearer
Body parameters

Token to register to ZTP with.

object
token
string Required

Registration token provided by ZTP.

Example<base64 token>
Responses
200

ZTP status.

object
registered
boolean

Whether the collective has registered to ZTP or not.

serviceNames
Array of string

List of ZTP services available to this collective.

string
consoleUrl
string

URL to the ZTP cloud console.

Examplehttp://user.ztp.console.com
400

JSON error. Check the JSON format.

object

Generic HTTP error.

id
string

Machine readable error code.

message
string

Human readable error details.

401

Token error. Login again.

object

Generic HTTP error.

id
string

Machine readable error code.

message
string

Human readable error details.

403

Insufficient permissions to access this resource.

object

Generic HTTP error.

id
string

Machine readable error code.

message
string

Human readable error details.

406

Invalid 'Accept' header.

object

Generic HTTP error.

id
string

Machine readable error code.

message
string

Human readable error details.

422

Request validation error. Check "errors" array for details.

Expand All
object

Http 422 error for object validation.

id
string

Machine readable error code.

message
string

Human readable error details.

errors
Array of object

List of fields with validation errors.

object
field
string

Name of the field that failed validation.

Examplename
message
string

Failure reason.

Examplemay not be null
500

Unexpected server side error.

object

Generic HTTP error.

id
string

Machine readable error code.

message
string

Human readable error details.