IBM Support

How can I get ICP cluster name using API?

Question & Answer


Question

I need to get the ICP cluster name programmatically.
Using kubectl command, it can be done by running:
kubectl -n kube-system get cm platform-auth-idp -o "jsonpath={.data['CLUSTER_NAME']}"
Can it be done using API as well?

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSBS6K","label":"IBM Cloud Private"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Product Synonym

icp;ibm cloud private

Document Information

Modified date:
27 May 2019

UID

ibm10885280