- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Need an API endpoint to fetch the information of s...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:44 AM
06-15-2023 04:44 AM
Need an API endpoint to fetch the information of specific workers' nodes from the cluster
As per attatched screenshot of cluster Nodes where on selction of i icon - we see there is an API (check horizontal scrollbar) which displays the metadata of nodes - like labels.
We are not able to consume the same via morpheus API.
Kindly help us with the same

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 03:50 AM
06-26-2023 03:50 AM
Re: Need an API endpoint to fetch the information of specific workers' nodes from the cluster
I am trying api-config API.
It is not giving me api key.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 07:56 AM
06-15-2023 07:56 AM
Re: Need an API endpoint to fetch the information of specific workers' nodes from the cluster
Hi @Khushbu ,
While there is not a direct API endpoint for that information there are a few places you could start.
There is an API endpoint for Get Cluster Workers that will provide perhaps some of the data you are looking for.
Additionally, using the API endpoint for Get API Config you could utilize a task to then query the K8s cluster directly for the data you are looking for. Something along the lines of:
import requests
import pp
morpheus = "https://YOURFQDN"
clusterId = YOURCLUSTERID
morpheusToken = "YOURTOKEN"
url = morpheus + "/api/clusters/" + str(clusterId) + "/api-config"
headers = {
"accept": "application/json",
"authorization": "Bearer " + morpheusToken
}
response = requests.get(url, headers=headers, verify=False)
json = response.json()
serviceUrl = json['serviceUrl']
serviceToken = json['serviceToken'].strip()
url = serviceUrl + "/api/v1/nodes"
headers = {
"Authorization": "Bearer %s" % serviceToken
}
response = requests.get(url, headers=headers, verify=False)
pp(response.json())
That script could be further manipulated to capture the data you are looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 06:28 AM
06-22-2023 06:28 AM
Re: Need an API endpoint to fetch the information of specific workers' nodes from the cluster
That API-Config endpoint gives you an API key for your K8s cluster to query that directly via an API. We present you Morpheus labels, but not the meta information of the nodes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 04:58 AM
06-22-2023 04:58 AM
Re: Need an API endpoint to fetch the information of specific workers' nodes from the cluster
I tried above given solution. But no API is giving us lables associated with cluster node.
So, do we have any api for that?