reserved instanceIBM Cloud

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
ctx
Context
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
ServiceInstanceGuid
Required*
string

The GUID that uniquely identifies the IBM® MQ as a Service instance.

Possible values: length = 36, Value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/

Example: a2b4d4bc-dadb-4637-bcec-9b7d1e723af8

QueueManagerId
Required*
string

The id of the queue manager to retrieve its full details.

Possible values: length = 32, Value must match regular expression /^[0-9a-fA-F]{32}$/

Examples: b8e1aeda078009cf3db74e90d5d42328

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
status
Always 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 quiesing or ending immediately. State "ended" is either ended normally or endedimmediately. The others map one to one with queue manager states.

Possible values: [initializing,deploying,starting,running,stopping,

stopped,status_not_available,deleting,failed,upgrading_version,

updating_revision,initialization_failed,restoring_queue_manager,restoring_config,restore_failed,

suspended,resumable]

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"
}