Viewing configuration details of objects that can be named by using REST Administration APIs
System administrators can view configuration details of configuration objects for which the name can be configured.
You can use the Eclipse Amlen REST API GET method to view configuration details of a specified configuration object or all instances of a configuration object type. If the name of the configuration object is specified in the request, then the configuration details of that object are displayed. If the name of the configuration object is not specified in the request, then the response includes configuration details of all instances of that object type.
- CertificateProfile
- ClientCertificate
- ClientSet
- ConfigurationPolicy
- ConnectionPolicy
- DestinationMappingRule
- EndPoint
- LTPAProfile
- MessageHub
- MQTTClient
- OAuthProfile
- Plugin
- Protocol
- Queue
- QueueManagerConnection
- QueuePolicy
- SecurityProfile
- SubscriptionPolicy
- TopicPolicy
- TrustedCertificate
http://<admin-endpoint-IP:Port>/ima/v1/configuration/<ObjectType>/<ObjectName>
- ObjectType
- Specifies the type of configuration object.
- ObjectName
- Optional.
The following example shows a GET method to view configuration details of all endpoint objects by using cURL:
curl -X GET http://127.0.0.1:9089/ima/v1/configuration/Endpoint
The following example shows a successful response to the GET method to view configuration details of all endpoint objects by using cURL:
{
"Version": "v1",
"Endpoint": {
"DemoEndpoint": {
"Port": 10002,
"Enabled": false,
"Protocol": "All",
"Interface": "All",
"InterfaceName": "All",
"ConnectionPolicies": "DemoConnectionPolicy",
"TopicPolicies": "DemoTopicPolicy",
"SubscriptionPolicies": "DemoSubscriptionPolicy",
"MaxMessageSize": "4096KB",
"MessageHub": "DemoHub",
"EnableAbout": true,
"Description": "Unsecured endpoint for demonstration use only. By default,
both JMS and MQTT protocols are accepted."
},
"DemoMqttEndpoint": {
"Port": 1883,
"Enabled": false,
"Protocol": "MQTT",
"Interface": "All",
"InterfaceName": "All",
"ConnectionPolicies": "DemoConnectionPolicy",
"TopicPolicies": "DemoTopicPolicy",
"MaxMessageSize": "4096KB",
"MessageHub": "DemoHub",
"EnableAbout": true,
"Description": "Unsecured endpoint for demonstration use with MQTT protoco
l only. By default, it uses port 1003."
}
}
}
The following example shows a GET method to view configuration details of an endpoint called "MyEndpoint" by using cURL:
curl -X GET http://127.0.0.1:9089/ima/v1/configuration/Endpoint/MyEndpoint
The following example shows a successful example response to the GET method that was used to view configuration details of an endpoint called "MyEndpoint" :
{
"Version": "v1",
"EndPoint": {
"MyEndpoint": {
"Port": 16102,
"Enabled": false,
"Protocol": "All",
"Interface": "All",
"ConnectionPolicies": "MyConnectionPolicy",
"TopicPolicies": "MyTopicPolicy",
"MaxMessageSize": "4096KB",
"MessageHub": "MyHub",
"Description": "Unsecured endpoint for demonstration use only."
"InterfaceName": "",
"SecurityProfile": "",
"MaxSendSize": 16384,
"BatchMessages": true
}
}
}
The following example shows an unsuccessful example response to the GET method that was used to view configuration details of an endpoint called "MyEndpoint1" which does not exist :
curl -X GET \
-H 'Content-Type: application/json' \
http://127.0.0.1:9089/ima/v1/configuration/Endpoint/MyEndpoint1
{
"Version": "v1",
"Code": "CWLNA0113",
"Message": "The requested item is not found."
}