Failed Hosts Tasks
Get tasks details for hosts which failed while adding, deleting, configuring host config profile
Request
URI
POST
https://{api_host}/hybridity/api/ztp/tasks/hosts/failure-status
COPY
Request Body
List of hosts FQDN
failedHostsTasksRequest of type(s) application/json
Required
{
"hosts": [
"string"
]
}
array of string
hosts
Required
hosts
Responses
200
Successfully returned failed hosts tasks
Returns failedHostsTasksResponse of type(s) application/json
{
"hosts": {
"key": {
"domain_name": "domain_name",
"message": "message",
"tasks": [
{
"subTasks": [
null,
null
],
"name": "name",
"startTime": 5,
"progressInPercentage": 2,
"endTime": 5,
"type": "type",
"taskId": "taskId",
"statusMessage": "statusMessage",
"status": "status"
},
{
"subTasks": [
null,
null
],
"name": "name",
"startTime": 5,
"progressInPercentage": 2,
"endTime": 5,
"type": "type",
"taskId": "taskId",
"statusMessage": "statusMessage",
"status": "status"
}
]
}
}
}
object
hosts
Optional
hosts
301
API endpoint has permanently moved.
Returns redirectResponse of type(s) application/json
{
"redirectURL": "string"
}
string
redirectURL
Optional
redirectURL
Response Headers
string
Location
URI where the client will find the new endpoint.
400
Bad Request
Returns response of type(s) application/json
{
"warnings": [
{
"stack": "stack",
"code": "code",
"message": "message"
},
{
"stack": "stack",
"code": "code",
"message": "message"
}
],
"errors": [
{
"stack": "stack",
"code": "code",
"message": "message"
},
{
"stack": "stack",
"code": "code",
"message": "message"
}
]
}
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure
500
Internal Server Error
Returns response of type(s) application/json
{
"warnings": [
{
"stack": "stack",
"code": "code",
"message": "message"
},
{
"stack": "stack",
"code": "code",
"message": "message"
}
],
"errors": [
{
"stack": "stack",
"code": "code",
"message": "message"
},
{
"stack": "stack",
"code": "code",
"message": "message"
}
]
}