Mar 15 2019 05:36 AM
I would like to know if I can get subscription name for my Azure Resource, through REST API?
To add further, I even have subscription id, but wondering how to get subscription name?
Mar 17 2019 07:44 AM
SolutionHi @Vino55,
if I understand you need to access Azure's management Apis, for example, to list the subscriptions you can use this endpoint:
GET https://management.azure.com/subscriptions?api-version=2016-06-01
and to get information about a specific subscription you can use this endpoint
GET https://management.azure.com/subscriptions/{subscriptionId}?api-version=2016-06-01
(https://docs.microsoft.com/en-us/rest/api/resources/subscriptions/get#code-try-0)
and here is a list to the azure resource manager apis:
https://docs.microsoft.com/en-us/rest/api/resources/
Best regards.