
Return configuration options - go
Return configuration options (for example, available deployment locations, queue manager sizes).
(mqcloud *MqcloudV1) GetOptions(getOptionsOptions *GetOptionsOptions) (result *ConfigurationOptions, response *core.DetailedResponse, err error)
(mqcloud *MqcloudV1) GetOptionsWithContext(ctx context.Context, getOptionsOptions *GetOptionsOptions) (result *ConfigurationOptions, response *core.DetailedResponse, err error)
Request
Instantiate the GetOptionsOptions struct and set the fields to provide parameter
values for the GetOptions 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. |
| GetUsageDetailsOptions | The GetUsageDetails 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 request
getOptionsOptions := mqcloudService.NewGetOptionsOptions(
"a2b4d4bc-dadb-4637-bcec-9b7d1e723af8",
)
configurationOptions, response, err := mqcloudService.GetOptions(getOptionsOptions)
if err != nil {
panic(err)
}
b, _ := json.MarshalIndent(configurationOptions, "", " ")
fmt.Println(string(b))
Response
| Response Body ConfigurationOptions
|
ConfigurationOptions (for example, available deployment locations, queue manager sizes) |
|---|---|
locations[]string
|
List of deployment locations. Possible values: 1 ≤ number of items ≤ 20, 2 ≤ length ≤ 150, Value must match regular
expression |
sizes[]string
|
List of queue manager sizes. Possible values:
[ Possible values: 1 ≤ number of items ≤ 20 |
versions[]string
|
List of queue manager versions. Possible values: 1 ≤ number of items ≤ 12 |
latest_versionstring
|
The latest Queue manager version. Possible values: 7 ≤ length ≤ 15, Value must match regular expression
Example: |
| Status code | |
|---|---|
| 200 | Configuration options |
| 301 | URI has permanently Moved |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Resource not found |
| 429 | Service Is Overused |
| 500 | Internal Server Error |
Example response
Success example
{
"locations": [
"ibmcloud_eu_de"
],
"sizes": [
"xsmall",
"small",
"medium",
"large"
],
"versions": [
"9.3.3_1"
],
"latest_version": "9.3.3_1"
}