GET - managed call
Use the HTTP GET method with the call resource to request information
about the status of a Managed File Transfer managed call. You can query
only the managed calls that are initiated after the mqweb server is started.
- This resource is available only from version 3 of the IBM® MQ REST API.
- This resource is not available in a stand-alone IBM MQ Web Server installation. For more information about the installation options for the IBM MQ component that runs the administrative REST API, see The IBM MQ Console and REST API.
For more information about managed calls, see Managed calls.
Resource URL
https://mqweb.ibm.com:9443/ibmmq/rest/v3/admin/mft/call
returns the attributes of a specified managed call in the response body.
Optional query parameters
- attributes
- Specifies a comma-separated list of attributes to retrieve.
- limit
- Specifies the maximum number of managed calls to retrieve.
- after
- Specifies a managed call ID. All managed calls that are initiated after the specified managed call are retrieved. If you specify after, you cannot also specify before.
- before
- Specifies a managed call ID. All managed calls that are initiated before that particular managedncall are retrieved. If you specify before, you cannot also specify after.
Request headers
- Authorization
- This header must be sent if you are using basic authentication. For more information, see Using HTTP basic authentication with the REST API.
Request body format
None.
Security requirements
The caller must be authenticated to the mqweb server and must be a member of one or more of the
MFTWebAdmin, MFTWebAdminRO, or MQWebUser roles.
For more information about security for the administrative REST API, see IBM MQ Console and REST API security.
The security principal of the caller must be granted authority to subscribe to the
SYSTEM.FTE topic.
If token based security is used, the LTPA token that is used to authenticate the user must be provided with the request as a cookie. For more information about token-based authentication, see Using token-based authentication with the REST API.
Response status codes
- 200
- Manged call information retrieved successfully.
- 400
- Invalid data provided.
- 401
- Not authenticated.
- 403
- Access prohibited for one of the following reasons:
- Not authorized. The caller is authenticated to the mqweb server and is associated with a valid
principal. However, the principal is not a member of one or more of the
MFTWebAdmin,MFTWebAdminRO, orMQWebUserroles. For more information about the access that is required, see Security requirements. - Access prohibited in the current server environment. You cannot use the administrative REST API with the stand-alone IBM MQ Web Server.
- Not authorized. The caller is authenticated to the mqweb server and is associated with a valid
principal. However, the principal is not a member of one or more of the
- 404
- A managed call with the specified ID does not exist.
- 500
- Server issue or error code from IBM MQ.
- 503
- Queue manager not running.
Response headers
- Content-Type
- This header is returned with a value of
application/json;charset=utf-8. - ibm-mq-rest-mft-total-managed-calls
- This header is returned with a value that is the total number of managed calls that have details available in the mqweb server cache.
Response body format
call. Each element in the array is a JSON
object that represents information about a manged call. Each of these JSON objects can contain the
following objects and attributes. - job
- JSON object.
- name
- String
- agent
- JSON object.
- name
- String
- qmgrName
- String
- priority
- Integer
- userProperties
- JSON object
- command
- JSON object
- retryCount
- Integer
- retryWait
- Integer
- successReturnCode
- String
- type
- String
- executable
- JSON object
- name
- String
- arguments
- String
- antScript
- JSON object
- name
- String
- target
- String
- arguments
- JSON object
jcl- JSON object
- name
- String
- results
- JSON array
- returnCode
- Integer
- time
- String
- outcome
- String
- consoleOutput
- JSON array
- retries
- Integer
- finalOutcome
- String
- id
- String
- originator
- JSON object
- host
- String
- userId
- String
- mqmdUserId
- String
- status
- JSON object
- state
- String
- lastStatusUpdate
- String
- statistics
- JSON object
If an error occurs, see REST API error handling.
Examples
{
"call": [
{
"agent": {
"name": "SECURITIES.AGENT"
},
"id": "414D51204D4654514D20202020202020987C936103A80140",
"command": {
"retryWait": 0,
"successReturnCode": "0",
"retryCount": 0,
"type": "antScript",
"antScript": {
"name": "/usr/cmds/hubprocess.xml",
"arguments": "out.file=c:/temp/Catted.xsd",
"target": "concatenate"
}
},
"originator": {
"host": "host.johnwatson.com",
"userId": "john.watson"
},
"status": {
"state": "started"
}
}
]
}
started state:{
"call": [
{
"agent": {
"qmgrName": "SECURITIES.QM",
"name": "SECURITIES.AGENT"
},
"priority": 0,
"userProperties": {
"com.ibm.wmqfte.SourceAgent": "SECURITIES.AGENT",
"com.ibm.wmqfte.OriginatingUser": "john.watson",
"com.ibm.wmqfte.OriginatingHost": "host.johnwatosn.com",
"com.ibm.wmqfte.TransferId": "414d51204d4654514d20202020202020987c936103a80140",
"com.ibm.wmqfte.MqmdUser": "john.watson",
"com.ibm.wmqfte.Priority": "0",
"com.ibm.wmqfte.DestinationAgent": "SECURITIES.AGENT"
},
"command": {
"retryWait": 0,
"retryCount": 0,
"successReturnCode": "0"
"type":"antScript",
"antscript": {
"name": "/usr/sample/hubprocess.xml",
"target": "concatenate"
"arguments": "out.file=/usr/out/outfile.txt
in.file1=/usr/sample/input/infile1.txt
in.file2=/usr/sample/input/infile2.txt"
}
},
"id": "414D51204D4654514D20202020202020987C936103A80140",
"originator": {
"host": "host.johnwatson.com",
"mqmdUserId": "john.watson",
"userId": "john.watson"
},
"job": {
"name": "pushsecurities"
},
"status": {
"lastStatusUpdate": "2021-11-17T07:12:35.459Z",
"state": "started"
},
"statistics": {
"startTime": "2021-11-17T07:12:35.459Z"
}
}
]
}
failed
status.{
"call": [{
"agent": {
"qmgrName": "SECURITIES.QM",
"name": "SECURITIES.AGENT"
},
"priority": 0,
"userProperties": {
"com.ibm.wmqfte.SourceAgent": "SECURITIES.AGENT",
"com.ibm.wmqfte.OriginatingUser": "john.watson",
"com.ibm.wmqfte.OriginatingHost": "host.johnwatson.com",
"com.ibm.wmqfte.TransferId": "414d51204d4654514d20202020202020987c936103a80140",
"com.ibm.wmqfte.MqmdUser": "john.watson",
"com.ibm.wmqfte.Priority": "0",
"com.ibm.wmqfte.DestinationAgent": "SECURITIES.AGENT"
},
"results": {
"result": [{
"returnCode": 1,
"completionTime": 2021-11-23T03:40:05.794Z",
"outcome": "failure"
"consoleOutput": [
"BFGCL0207E: Target "concatenate1" does not exist in the project "null"."
]
}],
"retries": 0,
"finalOutcome": "failure"
},
"command": {
"retryWait": 0,
"retryCount": 0,
"type":"antScript",
"antscript": {
"name": "/usr/sample/hubprocess.xml",
"target": "concatenate"
"successReturnCode": "0"
"arguments": "out.file=/usr/out/outfile.txt
in.file1=/usr/sample/input/infile1.txt
in.file2=/usr/sample/input/infile2.txt"
}
},
"id": "414D51204D4654514D20202020202020987C936103A80140",
"originator": {
"host": "host.johnwatson.com",
"mqmdUserId": "john.watson",
"userId": "john.watson"
},
"job": {
"name": "pushsecurities"
},
"status": {
"lastStatusUpdate": "2021-11-17T07:12:35.459Z",
"state": "failed"
}
"statistics": {
"startTime":"2021-11-23T03:40:03.967Z",
"endTime":"2021-11-23T03:40:05.794Z"
}
}
]
}