'Get value of k8s service connection in Azure DevOps

We have many k8s service connections in our Azure DevOps that contains KubeConfig:

enter image description here

When I edit a connection I can't see the existing KubeConfig value.

Is there a way to find the existing value? (I searched for rest api but couldn't find something useful).

BTW - we are using Azure DevOps Server 2020, so I can access the DB if needed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source