Update CI/Hostname Status

This API is used to update the status of CI/Hostname.

Update CI Status

Purpose To update CI status based on CI Id.
API URL https://<API URL>:<API Port>/v2/inventory/CIStatus/{orgentityid}
Authentication type Basic/Token
Method Type PUT
Example: https://<API URL>:<API Port> /v2/inventory/CIStatus/1

Input:

[
{
"TaskNumber": "",
"ScheduleId": "3",
"GroupId": "3",
"Status": "2",
"Remarks": "test",
"FileName": "",
"FilePath": "",
"HostName": "",
"ChangeNumber": ""
}
]

Parameters Returned in Response of API

Column Column type Value Remarks
TaskNumber string Task01 This field takes Task Number
ScheduleId string Fail/Success This field takes Schedule Id
GroupId string text This field takes Group Id
Status String 3 This field takes status
Remarks String Success This field takes remarks
FileName String Abc.log This field takes log filename
FilePath String C:\\test This field takes file path
HostName String Hostname This field takes Host name
ChangeNumber string Change1 This field takes change Number

Status Code:

Code Text
0 Queued
1 Initiated
2 In Progress
3 Failed
4 Successful
5 Pending for approval
6 Approved

Output:

{
 "Id": "xxxxxxxxxxxxxxxxxxx",
 "Status": "Success",
 "Message": "CI Status Updated Successfully"
}

Parameters Returned in Response of API

Column Column type Value Remarks
Id string Unique Identifier This field contain unique identifier
Status string Fail/Success Message
Message string text This field provide message