none
Listing Servers and Databases by Azure Rest API using C#

    Question

  • Hi,

    How to list all Servers and all database by Azure Rest API's using C# and VS2012 environment.

    If any sample code is provided, appreciated.

    Thanks.


    • Edited by GanjiSiva Wednesday, December 16, 2015 12:55 PM
    Wednesday, December 16, 2015 12:53 PM

All replies

  • Hi,

    When you say Servers and databases, is this in reference to Azure Storage?
    The following REST APIs are used to list resources in Azure Storage:

    List Containers

    Account

    Lists all of the containers in a storage account.

    List Blobs

    Container

    Lists all of the blobs in a container.

    List Queues

    Lists all queues under the given account.

    Query Tables

    Enumerates the tables in a storage account.

    List Shares

    Storage account

    GET

    Lists all the file shares in a storage account

    List Directories and Files

    Directory

    GET

    Lists files and directories within the share or specified directory.

    Query String Params, Response Body

    List Ranges

    File

    GET

    Returns a list of active ranges for the file. Active ranges are those that have been populated with data using Put Range API.

    Name,

    Query String Param, Response Body

    Also you could use List Storage Accounts to list the storage accounts that are available in the specified subscription.

    Regards,
    Malar.

    Thursday, December 17, 2015 6:27 AM