Skip to main content

GET /csvRequest/jobs/{job_id}

Use this method to monitor the status of a management request using a bulk-import CSV file.

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/csvRequest/jobs/{job_id}

where {job_id} is the job ID that was returned by the POST /csvRequest method.

Query parameters

None

Request body

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.
404Not foundA specified resource cannot be found. A descriptive error message is returned in the response body.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
progressDoublePercentage complete of the bulk management job. This can be one of the following values.
  • 0.0. Created.
  • 50.0. In progress.
  • 100.0. Complete.
resultsArray of objectsResults of the bulk management jobs
 messageBundleStringLocation where messages.properties can be found if it is not located in the default task management bundle. This value is always com.lenovo.lxca.discovery.bundle.tasks.messages.
 messageIDStringMessage ID
 messageAttributesStringThis can be one of the following values.
  • device IP if not null
  • device serial number if not null
  • device UUID
 progressLongPercentage complete of the management job. If the job is complete, JOB_DONE is returned
 resultStringResult of the request. This can be one of the following values.
  • INCOMPLETE. The request is not complete.
  • SUCCESS. The request was successful.
  • FAILED. The request failed.
 resultLongDescriptionStringDetailed description of the result
 resultShortDescriptionStringSummarized description of the result
 statusObjectStatus details about the list of management steps
  descriptionArray of objectsList of message descriptions
   messageBundleStringLocation where messages.properties can be found if it is not located in the default task management bundle. This value is always com.lenovo.lxca.discovery.bundle.tasks.messages.
   messageIDStringMessage ID for the set of management steps
  percentageLongPercentage complete of the set of management steps
  stateStringState of the set of management steps. The can be one of the following values.
  • Error
  • Running
  • Running_Complete
  substatusArray of objectsResults of each of the task in the management job
   completedBooleanIndicates whether the task completed. This can be one of the following values.
  • true. The step has completed.
  • false. The task has not completed.
   idStringName of the management step
   longDescriptionStringLong message description
   messageBundleStringLocation where messages.properties can be found if it is not located in the default task management bundle. This value is always com.lenovo.lxca.discovery.bundle.tasks.messages.
   messageIDStringMessage ID of the management step
   progressIntegerProgress of the management step
   shortDescriptionStringShort message description
   startedBooleanIndicates if the management step has started. This can be one of the following values.
  • true. The step has started.
  • false. The step has not started.
   statusObjectStatus details about the individual management step
    percentageIntegerPercentage complete of the management step
    stateStringState of the management step. This can be one of the following values.
  • ERROR
  • PENDING
  • RUNNING
  • RUNNING_COMPLETE
    substatusArray of objectsResults of each of the subtask in the management job
   userActionStringAny user action that is required
 taskidIntegerTask ID
 time_spentLongDuration of the task in milliseconds
 uuidStringUUID
status Status of the management job. This can be one of the following values.
  • 0. Created.
  • 50. Incomplete.
  • 100. Done.
  • 101. Done_Warnimg.
The following example is returned if the request is successful.
{
"progress": 17.647058823529413,
"results": [{
"messageBundle": "com.lenovo.lxca.discovery.bundle.rest.messages",
"messageID": "0509_LONG",
"messageParameters": "10.243.3.55"
"progress": 17.647058823529413,
"result": "INCOMPLETE",
"resultLongDescription": "Management job is incomplete",
"resultShortDescription": "Incomplete",
"status": {
"description": [{
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1014_LONG"
}],
"percentage": 17.647058823529413,
"state": "Running",
"substatus": [{
"completed": true,
"id": "STARTING",
"longDescription": "Starting device management job",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1000_SHORT",
"progress": 100,
"shortDescription": "Starting",
"started": true,
"status": {
"percentage": 100,
"state": "Complete"
},
"userAction": ""
},
{
"completed": true,
"id": "NETWORK_CHOICE",
"longDescription": "Choosing best network path to manage the device",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1001_SHORT",
"progress": 100,
"shortDescription": "Network choice",
"started": true,
"status": {
"percentage": 100,
"state": "Complete"
},
"userAction": ""
},
{
"completed": true,
"id": "DESCRIPTOR",
"longDescription": "Creating hardware descriptor",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1002_SHORT",
"progress": 100,
"shortDescription": "Descriptor",
"started": true,
"status": {
"percentage": 100,
"state": "Complete"
},
"userAction": ""
},
{
"completed": true,
"id": "LOGIN",
"longDescription": "Logging in to device",
"messageID": "1003_SHORT",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"progress": 100,
"shortDescription": "Login",
"started": true,
"status": {
"percentage": 100,
"state": "Complete"
},
"userAction": ""
},
{
"completed": true,
"id": "DUPLICATE_CHECK",
"longDescription": "Checking for duplicates of device management",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1004_SHORT",
"progress": 100,
"shortDescription": "Duplicate check",
"started": true,
"status": {
"percentage": 100,
"state": "Complete"
},
"userAction": ""
},
{
"completed": false,
"id": "INVENTORY",
"longDescription": "Collecting device inventory",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1005_SHORT",
"progress": 0,
"shortDescription": "Inventory",
"started": true,
"status": {
"percentage": 0,
"state": "Running",
"substatus": [{
"completed": false,
"id": "INV_CHASSIS",
"longDescription": "Collecting chassis inventory",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1006_SHORT",
"progress": 0,
"shortDescription": "Chassis inventory",
"started": true,
"status": {
"percentage": 0,
"state": "Running"
},
"userAction": ""
},
{
"completed": false,
"id": "INV_NODES",
"longDescription": "Collecting node inventory",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1007_SHORT",
"progress": 0,
"shortDescription": "Node inventory",
"started": true,
"status": {
"percentage": 0,
"state": "Running"
},
"userAction": ""
},
{
"completed": false,
"id": "INV_IOMS",
"longDescription": "Collection I/O module inventory",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1008_SHORT",
"progress": 0,
"shortDescription": "I/O module inventory",
"started": true,
"status": {
"percentage": 0,
"state": "Running"
},
"userAction": ""
}]
},
"userAction": ""
},
{
"completed": false,
"id": "INTEROP_CHECK",
"longDescription": "Verifying device interoperability",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1009_SHORT",
"progress": 0,
"shortDescription": "Interoperability check",
"started": false,
"status": {
"percentage": 0,
"state": "Pending"
},
"userAction": ""
},
{
"completed": false,
"id": "CONFIGURATION",
"longDescription": "Configuring device for management",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1010_SHORT",
"progress": 0,
"shortDescription": "Configuration",
"started": false,
"status": {
"percentage": 0,
"state": "Pending",
"substatus": [{
"completed": false,
"id": "CFG_NTP",
"progress": 0,
"longDescription": "Configuring NTP",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1011_SHORT",
"started": false,
"status": {
"percentage": 0,
"state": "Pending"
},
"shortDescription": "NTP",
"userAction": ""
},
{
"completed": false,
"id": "CFG_DNS_UPD",
"longDescription": "Updating DNS servers ip addresses on CMM as part of the manage chassis
process.",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1067_SHORT",
"progress": 0,
"shortDescription": "Updating DNS servers ip addresses on CMM",
"started": false,
"status": {
"percentage": 0,
"state": "Pending"
},
"userAction": ""
},
{
"completed": false,
"id": "CFG_SECURITY",
"longDescription": "Configuring security",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1012_SHORT",
"progress": 0,
"shortDescription": "Security",
"started": false,
"status": {
"percentage": 0,
"state": "Pending"
},
"userAction": ""
},
{
"completed": false,
"id": "CFG_CMGMT",
"longDescription": "Putting device under centralized management",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1013_SHORT",
"progress": 0,
"shortDescription": "Centralized management",
"started": false,
"status": {
"percentage": 0,
"state": "Pending"
},
"userAction": ""
}]
},
"userAction": ""
},
{
"completed": false,
"id": "CFG_CABINET",
"longDescription": "Configuring Hardware location",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageID": "1097_SHORT",
"progress": 0,
"status": {
"percentage": 0,
"state": "Pending"
},
"shortDescription": "Configuring Hardware location",
"started": false,
"userAction": ""
}]
},
"taskid": 371,
"time_spent": 117527,
"uuid": "48331a223bf34fba90732b379b837b9c"
}],
"status": "INCOMPLETE"
}