
Get details of a queue manager - go
Get the details of a given queue manager.
(mqcloud *MqcloudV1) GetQueueManager(getQueueManagerOptions *GetQueueManagerOptions) (result *QueueManagerDetails, response *core.DetailedResponse, err error)
(mqcloud *MqcloudV1) GetQueueManagerWithContext(ctx context.Context, getQueueManagerOptions *GetQueueManagerOptions) (result *QueueManagerDetails, response *core.DetailedResponse, err error)
Request
Instantiate the GetQueueManagerOptions struct and set the fields to provide
parameter values for the GetQueueManager 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. |
| Path Parameters | |
|---|---|
service_instance_guidRequired*
string |
The GUID that uniquely identifies the IBM® MQ as a Service instance. Possible values: length = 36, Value must match regular expression
Example: |
queue_manager_idRequired*
string |
The id of the queue manager to retrieve its full details. Possible values: length = 32, Value must match regular expression
Example: |
| GetQueueManagerOptions | The GetQueueManager options |
|---|---|
ServiceInstanceGuidRequired*
string |
The GUID that uniquely identifies the IBM MQ as a Service service instance. Possible values: length = 36, Value must match regular expression
Example: |
QueueManagerIdRequired*
string |
The id of the queue manager to retrieve its full details. Possible values: length = 32, Value must match regular expression
|
Example request
getQueueManagerOptions := mqcloudService.NewGetQueueManagerOptions(
"a2b4d4bc-dadb-4637-bcec-9b7d1e723af8",
"b8e1aeda078009cf3db74e90d5d42328",
)
queueManagerDetails, response, err := mqcloudService.GetQueueManager(getQueueManagerOptions)
if err != nil {
panic(err)
}
b, _ := json.MarshalIndent(queueManagerDetails, "", " ")
fmt.Println(string(b))
Response
| QueueManagerDetails | The details of the queue manager |
|---|---|
IDAlways included*
string |
The ID of the queue manager which was allocated on creation, and can be used for delete calls. |
NameAlways included*
string |
A queue manager name conforming to MQ restrictions. Possible values: 1 ≤ length ≤ 48, Value must match regular expression
|
DisplayNameAlways included*
string |
A displayable name for the queue manager - limited only in length. Possible values: length ≤ 150 |
LocationAlways included*
string |
The locations in which the queue manager could be deployed. Possible values: 2 ≤ length ≤ 150, Value must match regular expression
Example: |
SizeAlways included*
string |
The queue manager sizes of deployment available. Possible values:
[ Example: |
StatusURIAlways included*
string |
A reference uri to get deployment status of the queue manager. |
VersionAlways included*
string |
The MQ version of the queue manager. Possible values: 7 ≤ length ≤ 15, Value must match regular expression
Example: |
WebConsoleURLAlways included*
string |
The url through which to access the web console for this queue manager. |
RestApiEndpointURLAlways included*
string |
The url through which to access REST APIs for this queue manager. |
AdministratorApiEndpointURLAlways included*
string |
The url through which to access the Admin REST APIs for this queue manager. |
ConnectionInfoURIAlways included*
string |
The uri through which the CDDT for this queue manager can be obtained. |
DateCreatedAlways included*
strfmt.DateTime |
RFC3339 formatted UTC date for when the queue manager was created. Example: |
UpgradeAvailableAlways included*
bool |
Describes whether an upgrade is available for this queue manager. Example: |
AvailableUpgradeVersionsURIAlways included*
string |
The uri through which the available versions to upgrade to can be found for this queue manager. |
HrefAlways included*
string |
The URL for this queue manager. |
| Status code | |
|---|---|
| 200 | Description of the queue manager |
| 301 | URI has permanently Moved |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Resource not foud |
| 429 | Service Is Overused |
| 500 | Internal Server Error |
Example response
Success example
{
"id": "b8e1aeda078009cf3db74e90d5d42328",
"name": "testqm",
"display_name": "Test QM",
"location": "ibmcloud_us_south",
"size": "xsmall",
"status_uri": "/v1/a2b4d4bc-dadb-4637-bcec-9b7d1e723af8/queue_managers/b8e1aeda078009cf3db74e90d5d42328/status",
"version": "9.3.2_2",
"web_console_url": "https://web-testqm-fc4f.qm1.eu-de.mq.appdomain.cloud/ibmmq/console",
"rest_api_endpoint_url": "https://web-testqm-fc4f.qm1.eu-de.mq.appdomain.cloud/ibmmq/rest/v3/messaging/qmgr/testqm/queues/<queue_name>/message",
"administrator_api_endpoint_url": "https://web-testqm-fc4f.qm1.eu-de.mq.appdomain.cloud/ibmmq/rest/v3/admin/qmgr/testqm",
"connection_info_uri": "/v1/a2b4d4bc-dadb-4637-bcec-9b7d1e723af8/queue_managers/b8e1aeda078009cf3db74e90d5d42328/connection_info",
"date_created": "2023-07-19T14:46:05Z",
"upgrade_available": false,
"available_upgrade_versions_uri": "/v1/a2b4d4bc-dadb-4637-bcec-9b7d1e723af8/queue_managers/b8e1aeda078009cf3db74e90d5d42328/available_versions",
"href": "https://api.private.eu-de.mq2.cloud.ibm.com/v1/a2b4d4bc-dadb-4637-bcec-9b7d1e723af8/queue_managers/b8e1aeda078009cf3db74e90d5d42328"
}