
Get the status of the queue manager - go
Get a list of users for an instance.
(mqcloud *MqcloudV1) GetQueueManagerStatus(getQueueManagerStatusOptions *GetQueueManagerStatusOptions) (result *QueueManagerStatus, response *core.DetailedResponse, err error)
(mqcloud *MqcloudV1) GetQueueManagerStatusWithContext(ctx context.Context, getQueueManagerStatusOptions *GetQueueManagerStatusOptions) (result *QueueManagerStatus, response *core.DetailedResponse, err error)
Request
Instantiate the GetQueueManagerStatusOptions struct and set the fields to
provide parameter values for the GetQueueManagerStatus method.
| parameter | WithContext method only |
|---|---|
ctxContext
|
A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. |
| GetQueueManagerStatusOptions | GetQueueManagerStatus options |
|---|---|
ServiceInstanceGuidRequired*
string |
The GUID that uniquely identifies the IBM® MQ as a Service instance. Possible values: length = 36, Value must match regular expression
Example: |
| QueueManagerId Required*
string |
The id of the queue manager to retrieve its full details. Possible values: length = 32, Value must match regular expression
Examples: |
Example request
getQueueManagerStatusOptions := mqcloudService.NewGetQueueManagerStatusOptions(
"a2b4d4bc-dadb-4637-bcec-9b7d1e723af8",
"b8e1aeda078009cf3db74e90d5d42328",
)
queueManagerStatus, response, err := mqcloudService.GetQueueManagerStatus(getQueueManagerStatusOptions)
if err != nil {
panic(err)
}
b, _ := json.MarshalIndent(queueManagerStatus, "", " ")
fmt.Println(string(b))
Response
| Response Body QueueManagerStatus
|
QueueManagerStatus |
|---|---|
statusAlways included*
string |
The deploying and failed states are not queue manager states, they are states which can occur
when the request to deploy has been fired, or with that request has failed without producing a queue
manager to have any state. The other states map to the queue manager states. State "ending" is
either Possible values:
[
|
| Status code | |
|---|---|
| 200 | Current status for the queue manager |
| 301 | URI has permanently Moved |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Method not allowed |
| 429 | Service Is Overused |
| 500 | Internal Server Error |
Example response
Success example
{
"status": "running"
}