Is there an API or any other way to get the subscription properties (such as name, status etc...). I've found management APIs for hosted services and deployments, but failed to find any for subscriptions.
thanks,
Nava
There is currently no such API.
I had the same question, and looks like now there is an API for that:
http://msdn.microsoft.com/en-us/library/azure/gg715315.aspx
Related
I can get available regions for any Azure service using this page
https://azure.microsoft.com/en-us/global-infrastructure/services/?products=storage
Is any API (REST for example or c#) to get this information programmatically?
Thanks.
NO, There is no API option currently available to get those services. You can provide your own feedback or requirement to get the support from the Azure Team.
I am using Microsoft azure rest API'S to get Information. I want to get Cost Information for Resources and Resource Groups for that subscription. I tried many apis but didn't work.. any help will be appreciated. Thanks
You may try Azure Cost Management Query REST API
Looking in the Azure portal, I can see monitoring charts for API apps and Web apps that return information on metrics such as number of requests, cpu time, data i/o, etc.
Is there an API that I can query that will return information on Azure app services?
If you just want to see the list of web apps within a resource group, this can simply be achieved using the Azure Resource Manager API, which is the default API used by the new portal.
We now even have a cool tool to explore these APIs, check https://azure.microsoft.com/en-in/blog/azure-resource-explorer-a-new-tool-to-discover-the-azure-api/
The API Reference itself is at https://msdn.microsoft.com/en-in/library/azure/dn790568.aspx
I think what you search is named : "Azure Monitoring Services API".
You can get/set metrics.
You can access to the API by a Nuget package :
PM> Install-Package Microsoft.WindowsAzure.Management.Monitoring
Yes, you can.
Please refer to Azure Insights REST API Reference.
I am trying to find a sample on how to create an Azure Website (web app) deployment slot via the REST API. Any pointers would be appreciated.
Thanks!
You can use the Azure Management libraries to do this directly to the API. You can find the Libraries here and a sample of how to use them here. An extra way to do it is use the Azure Resource Manager REST API directly.
Is there any API or class that helps the user to programmatically pull the details of hosted services in azure if user key-in's subscription id.
I could do the above with references you guys referred.
IS there any possibility to get Subscription details like subscription Name using Windows Azure API's
You would need both subscription id and the management certificate from the user. Once you have these two things, you could use Windows Azure Service Management REST API: http://msdn.microsoft.com/en-us/library/windowsazure/ee460799.aspx to get details about the hosted services.
have a look at the Service Management REST API
for security reasons, it's not going to be as easy as entering a subscription id though.