Azure api pupose

Shambhu Rai 1,406 Reputation points
2023-06-01T14:09:28.9633333+00:00

Hi expert,

what is exact purpose of Azure API... is it coomunicating with web interface like .net and java websites and get reponse and perform some tasks . what job it is doing in azure portal..

is it really doing swagger job? via running restapi for response in json format

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,827 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,477 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,378 questions
{count} votes

Accepted answer
  1. James Hamil 21,391 Reputation points Microsoft Employee
    2023-06-05T19:44:45.75+00:00

    Hi @Shambhu Rai , this intro document does a good job explaining what the REST API does and how you can use it. You mentioned you wanted an example with a linked service such as a database. This document details how you can list the containers in a storage account. For example, you can send this request:

    GET https://myaccount.blob.core.windows.net/?comp=list&maxresults=3 HTTP/1.1
    

    And you would receive back a detailed set of containers from your query:

    <?xml version="1.0" encoding="utf-8"?>  
    <EnumerationResults ServiceEndpoint="https://myaccount.blob.core.windows.net/">  
      <MaxResults>3</MaxResults>  
      <Containers>  
        <Container>  
          <Name>audio</Name>  
          <Properties>  
            <Last-Modified>Wed, 26 Oct 2016 20:39:39 GMT</Last-Modified>  
            <Etag>0x8CACB9BD7C6B1B2</Etag> 
            <PublicAccess>container</PublicAccess> 
          </Properties>  
        </Container>  
        <Container>  
          <Name>images</Name>  
          <Properties>  
            <Last-Modified>Wed, 26 Oct 2016 20:39:39 GMT</Last-Modified>  
            <Etag>0x8CACB9BD7C1EEEC</Etag>  
          </Properties>  
        </Container>  
        <Container>  
          <Name>textfiles</Name>  
          <Properties>  
            <Last-Modified>Wed, 26 Oct 2016 20:39:39 GMT</Last-Modified>  
            <Etag>0x8CACB9BD7BACAC3</Etag>  
          </Properties>  
        </Container>  
      </Containers>  
      <NextMarker>video</NextMarker>  
    </EnumerationResults>
    

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. James Hamil 21,391 Reputation points Microsoft Employee
    2023-06-01T23:17:07.44+00:00

    Hi @Shambhu Rai ,

    "Representational State Transfer (REST) APIs are service endpoints that support sets of HTTP operations (methods), which provide create, retrieve, update, or delete access to the service's resources." The Azure REST API lets you interface with Azure resources.

    For example from this document you can use the API to get a list of Azure subscriptions and their individual properties encoded in JSON format.

    {
        "value":[
            {
            "id":"/subscriptions/...",
            "subscriptionId":"...",
            "displayName":"My Azure Subscription",
            "state":"Enabled",
    
    "subscriptionPolicies":{
                "locationPlacementId":"Public_2015-09-01",
                "quotaId":"MSDN_2014-05-01",
                "spendingLimit":"On"}
            }
        ]
    }
    
    

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James