Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. LIST BLOB
    The HTTPS request URI for the LIST BLOB operation just includes the container name. As the LIST operations lists all the blobs in the container. So the HTTPS request URI will be https://$($ownerAccount).blob.core.windows.net/$($container)?restype=container&comp=list&$($sasToekn) where $ownerAccount is the name of the storage account, $container is the name of the container and $sasToken is the the above generated Shared Access Signature Token.

    The HTTPS request and header syntax for LIST BLOB will be:

    Code Block
    titleSyntax for LIST BLOB
    collapsetrue
    Request Syntax
    GET https://$($ownerAccount).blob.core.windows.net/$($container)?restype=container&comp=list&$($sasToken)
    
    Request Headers
    x-ms-blob-type: BlockBlob
    x-ms-date: <date>
    x-ms-version: $Version
    


  2. GET BLOB
    The GET BLOB operation is used to read the blob content so it is required to pass the blob name with the URI. So the request URI for the GET BLOB will be https://$($ownerAccount).blob.core.windows.net/$($container)/$($blob)?$($sasToken) where $ownerAccount is the name of the storage account, $container is the name of the container, $blob is the name of the blob which is to be read and $sasToken is the the above generated Shared Access Signature Token
    The HTTPS request and Header syntax for GET BLOB will be:

    Code Block
    titleSyntax for GET BLOB
    collapsetrue
    Request Syntax
    GET https://$($ownerAccount).blob.core.windows.net/$($container)/$($blob)?$($sasToken)
    
    Request Headers
    x-ms-blob-type: BlockBlob
    x-ms-date: <date>
    x-ms-version: $Version
    
  3. PUT BLOB

    The PUT BLOB operation is used to create a blob. So the URI for the PUT BLOB operation includes the name of the blob to be created and the content of the blob is to be passed with the HTTPS request body. The URI will be https://$($ownerAccount).blob.core.windows.net/$($container)/$($blob)?$($sasToken) where $ownerAccount is the name of the storage account, $container is the name of the container, $blob is the name of the blob which is to be created in the container and $sasToken is the the above generated Shared Access Signature Token

    Code Block
    titleSyntax for PUT BLOB
    collapsetrue
    Request Syntax
    PUT https://$($ownerAccount).blob.core.windows.net/$($container)/$($blob)?$($sasToken)
    
    Request Headers
    x-ms-blob-type: BlockBlob
    x-ms-date: <date>
    x-ms-version: $Version
    Authorization="SharedKey <AccountName>:<Signature>"
    
    Request Body:
    <Content of the File>
    

...