Where is Blob Storage REST API?

Where has Azure Blob Storage REST API reference gone?
All links to it became being redirected to http://azure.microsoft.com/en-us/documentation/
Is public REST API support discontinued and it becomes proprietary?

Hi,
I clicked on few of the links of main page link -
http://msdn.microsoft.com/en-us/library/azure/dd135733.aspx and I was able to open the operation details - For example,
List Containers-
http://msdn.microsoft.com/en-us/library/azure/dd179352.aspx
Put Blob -
http://msdn.microsoft.com/en-us/library/azure/dd179451.aspx
Delete Blob -
http://msdn.microsoft.com/en-us/library/azure/dd179413.aspx
Hope this helps.
http://sanganakauthority.blogspot.com/

Similar Messages

  • Azure table storage rest API including

    How do I access my table storage using REST API. 
    Any example would be appreciated including enabling REST API.

    Hi,
    Please have a look at this article:
    http://blogs.msdn.com/b/tconte/archive/2011/08/10/accessing-windows-azure-blob-storage-using-jquery.aspx, hope it helps. We could also consider use
    Jquery to call codebehind to do some operation about Azure table storeage, if so we could choose azure SDK or azure storage rest API to do this.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Get blob properties REST API

    This REST API request for get blob:
    http://msdn.microsoft.com/en-us/library/azure/dd179440.aspx
    and get blob properties:
    http://msdn.microsoft.com/en-us/library/azure/dd179394.aspx
    look the same: https://myaccount.blob.core.windows.net/mycontainer/myblob
    When I issue this get request I get back both the property and the metadata. How do I just get the blob property? (I tried https://myaccount.blob.core.windows.net/mycontainer/myblob?comp=properties
    as a shot in the dark but that didn't work. I got a verb not recognized error.)

    HI
    The different is there Request Method:
    Get Blob is Get Method.
    GET Method Request URI
    Get Blob Properties  is Head Method.
    So when you create the Request, you need to set the Request Method to Head.
    request.Method = "Head";
    My Blog
    Please use Make as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • How to set CORS properties for BLOB Storage using node?

    Hi - I just got started with Azure using a Node-based web site and mobile services.
    I am following various documentation in order to provide an API for users to upload images via a time-restricted SAS for the BLOB Storage.
    In order to upload my image, I need to set the CORS configuration for the BLOB Storage. Unfortunately this cannot be done via the management portal.
    I'm unclear as to how to accomplish this. I'm considering using the startup.js file in my mobile service to make a post request to the BLOB Storage REST API:
    http://msdn.microsoft.com/en-us/library/windowsazure/hh452235.aspx
    Are there appropriate methods in the Node SDK to make this easier, especially the signing part?
    What is the recommended way for setting CORS properties for the BLOB Storage via Node?
    Thanks for your help
    Stefan

    Unfortunately Node SDK does not support CORS functionality yet. Your option would be to write code which consumes the REST API for setting CORS. Not sure if it helps but there's a free tool out there written by my company which you can use to set CORS
    on your storage account. More information about this tool can be found here:
    http://blog.cynapta.com/2013/12/cynapta-azure-cors-helper-free-tool-to-manage-cors-rules-for-windows-azure-blob-storage/
    Hope this helps.

  • What is the best way to get storage data for hard disk using REST api

    Hello All,
    Given that I have disk info for virtual machine/role from service management REST api (for example using
    GetRole) how I could retrieve container/blob related info for it?
    So I have credentials for service management REST API, I have OSVirtualHardDisk info, but I am not sure how to detect correctly to which storage account connect and than which container to use. Yes, I know that there is OSVirtualHardDisk .MediaLink property
    which contains storage account name and container inside of it but I am not sure it is good practice to assume about it format. Alternatively I have another solution - just retrieve all storage accounts from  Service management REST, then compare url
    of each account with disk's  MediaLink. And use appropriate storage account for further data retrieve.   But seem to me it could retrieve too many info. 
    So generally I am trying to find correct way to join  service management REST api and Storage Services REST API for disks

    Hi,
    From my experience, your first approach is correct. The media link exactly points to the location of the blob. With the link, you can access the blob if you have the storage account key. If you want to extract more information, such as what
    the container is and what the blob is, you can parse the link. 
      >> From my point of view it is bad way to retrieve storage account name and container.
    In addition, you are welcome to post feature requests on
    http://feedback.windowsazure.com/forums/34192--general-feedback
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Azure Rest API PUT Block Blob Returns "The specified resource does not exist" CORS

    I am trying to upload a file to Azure Blob storage. For some reason when I try to put a new block blob on in the storage it tells me the resource does not exist. I am sure it is something silly I am missing.
    According to the documentation:
    The Put Blob operation creates a new block blob or page blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put Blob; the content of the
    existing blob is overwritten with the content of the new blob. To perform a partial update of the content of a block blob, use the Put Block List (REST API) operation.
    CORS is setup and that seems okay.
    When I do a preflight and get this:
    Request URL:https://<account>.blob.core.windows.net/test/image.png
    Request Method:OPTIONS
    Status Code:200 OK
    Request Headers
    OPTIONS /test/image.png HTTP/1.1
    Host: <account>.blob.core.windows.net
    Connection: keep-alive
    Cache-Control: no-cache
    Pragma: no-cache
    Access-Control-Request-Method: PUT
    Origin: http://www.<site>.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
    Access-Control-Request-Headers: accept, content-type
    Accept: */*
    Referer: http://www.<site>.com/azure/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Response Headers
    HTTP/1.1 200 OK
    Transfer-Encoding: chunked
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 0d372e95-1524-460a-ab9c-7973d42a7070
    Access-Control-Allow-Origin: http://www.<site>.com
    Access-Control-Allow-Methods: PUT
    Access-Control-Allow-Headers: accept, content-type
    Access-Control-Max-Age: 36000
    Access-Control-Allow-Credentials: true
    Date: Thu, 27 Feb 2014 22:43:52 GMT
    But when I make the PUT request these are the results.
    Request URL:https://<account>.blob.core.windows.net/test/image.png
    Request Method:PUT
    Status Code:404 The specified resource does not exist.
    Request Headers
    PUT /test/image.png HTTP/1.1
    Host: <account>.blob.core.windows.net
    Connection: keep-alive
    Content-Length: 22787
    Cache-Control: no-cache
    Pragma: no-cache
    x-ms-blob-content-dis; filename = "image.png"
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
    Content-Type: image/png
    x-ms-blob-type: BlockBlob
    Accept: application/json, text/plain, */*
    x-ms-version: 2013-08-15
    Origin: http://www.<site>.com
    x-ms-date: Thu, 27 Feb 2014 23:19:19 GMT
    Referer: http://www.<site>.com/azure/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Response Headers
    HTTP/1.1 404 The specified resource does not exist.
    Content-Length: 223
    Content-Type: application/xml
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: d5a60c8b-356a-44ff-93af-0ea720b5591f
    x-ms-version: 2013-08-15
    Access-Control-Expose-Headers: x-ms-request-id,Server
    Access-Control-Allow-Origin: http://www.<site>.com
    Access-Control-Allow-Credentials: true
    Date: Thu, 27 Feb 2014 23:22:42 GMT

    Your request must be authenticated to be able to upload a blob. Please see our
    Windows Azure Storage: Introducing CORS blog post for more information on using Shared Access Signatures with CORS.

  • Azure Blob Storage API

    Hi,
    I'm starting to use Azure Java APIs; blob storage to be precise. I would like to know more about the Storage SDK. Have a specific question about Azure Storage SDK:
    Does it use REST APIs internally to store and retrieve files? How about the performance?
    Note: I'll be running all my code on a Azure Virtual Machine.
    Thanks in advance.

    You might want to post this in storage forum. Just my thoughts (not authoritative)
    I am not sure about the performance. I will expect Java SDK to use the REST service and performance targets are specified here.
    https://msdn.microsoft.com/en-us/library/azure/dn249410.aspx. Assuming you are trying to do read from with in the same region, performance should be good.
    Another tip to improve the performance is to create an affinity group and have virtual machines and storage accounts created with in same affinity group (which should give better performance, as affinity group is a small/nearby set with in a single region).
    More than API performance, I will suggest to choose the right design for your blob types, based on your requirements.
    https://msdn.microsoft.com/en-us/library/azure/ee691964.aspx

  • How to read azure storage data using JAVA with REST API

    Hi,
    We have a cloud service in our lab. We have enabled diagnostics
    in cloud services. So WADPerformanceCounterTable was created in storage account. Now , We want to read the WADPerformanceTable using
    JAVA with REST API. Is there any way to collect these details. please give me any
    sample code to connect azure storage using table service REST API.
    Thanks & Regards
    Rathidevi

    Hi,
    Please have a look at this article:
    https://convective.wordpress.com/2010/08/18/examples-of-the-windows-azure-storage-services-rest-api/, it demonstrate how to use table service Rest API, it also give us the code, hope this helps. Of course, the
    MSDN article could also help us coding.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Behavior of query to blob service with prefix/delimiter parameters with 2009-09-19 REST API

    I'm having trouble properly accessing the blob storage service using raw HTTP requests.  So far, listing raw container contents has worked as expected. Using just a delimiter to simulate directories in the root of the container also works fine. However,
    adding a prefix to the query to try to get the contents of "directories" one level down the hierarchy hasn't been successful - all that's returned is the name of the directory I'm trying to list.
    I have a container "con" with multiple blobs starting with the string "folder/". The result I'm expecting is a list of Blobs with names in the format "folder/filename" and BlobPrefixes with names like "folder/subfolder/".
    Here are the request and response:
    GET http://<account>.blob.core.windows.net/con?comp=list&restype=container&prefix=folder/&delimiter=/ HTTP/1.1
    Content-Length: 0
    x-ms-version: 2009-09-19
    Date: Fri, 25 Feb 2011 17:58:57 GMT
    Authorization: SharedKeyLite <account>:xE5XrRFmqd4z3go0mxyGpA045q8SEjUviAgqpElGA38=
    Host: <account>.blob.core.windows.net
    Connection: Keep-Alive
    Pragma: no-cache
    Cache-Control: no-cache
    User-Agent: blah
    HTTP/1.1 200 OK
    Content-Type: application/xml
    Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 44c02b08-0f20-4983-ac0f-cb98ce4d2761
    x-ms-version: 2009-09-19
    Date: Fri, 25 Feb 2011 17:59:05 GMT
    Content-Length: 261
    <?xml version="1.0" encoding="utf-8"?>
    <EnumerationResults ContainerName="http://<account>.blob.core.windows.net/con">
        <Prefix>folder/</Prefix>
        <Delimiter>/</Delimiter>
        <Blobs>
            <BlobPrefix>
                <Name>folder/</Name>
            </BlobPrefix>
        </Blobs>
        <NextMarker />
    </EnumerationResults>
    I only have this problem if I use API version 2009-09-19 - the same query works correctly with the old version:
    GET http://<account>.blob.core.windows.net/con?comp=list&restype=container&prefix=folder/&delimiter=/ HTTP/1.1
    Content-Length: 0
    Date: Fri, 25 Feb 2011 18:22:30 GMT
    Authorization: SharedKey <account>:ybzwdn6bgwhEU4ZSslAYDXr/fnYKRF4M0FGAa2cN1WI=
    Host: <account>.blob.core.windows.net
    Connection: Keep-Alive
    Pragma: no-cache
    Cache-Control: no-cache
    User-Agent: blah
    HTTP/1.1 200 OK
    Content-Type: application/xml
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 04ac2857-31cb-48d3-8647-3f97ba945749
    Date: Fri, 25 Feb 2011 18:22:38 GMT
    Content-Length: 3750
    <?xml version="1.0" encoding="utf-8"?>
    <EnumerationResults ContainerName="http://<account>.blob.core.windows.net/con">
        <Prefix>folder/</Prefix>
        <Delimiter>/</Delimiter>
        <Blobs>
            <Blob>
                <Name>folder/Copy (10) of notempty</Name>
                <Url>http://<account>.blob.core.windows.net/con/folder/Copy (10) of notempty</Url>
                <LastModified>Thu, 24 Feb 2011 22:58:27 GMT</LastModified>
                <Etag>0x8CDA28D7B734B7C</Etag>
                <Size>11</Size>
                <ContentType>application/octet-stream</ContentType>
                <ContentEncoding />
                <ContentLanguage />
            </Blob>
            <Blob>
                <Name>folder/Copy (2) of notempty</Name>
                <Url>http://<account>.blob.core.windows.net/con/folder/Copy (2) of notempty</Url>
                <LastModified>Thu, 24 Feb 2011 22:58:27 GMT</LastModified>
                <Etag>0x8CDA28D7BA24988</Etag>
                <Size>11</Size>
                <ContentType>application/octet-stream</ContentType>
                <ContentEncoding />
                <ContentLanguage />
            </Blob>
        </Blobs>
        <BlobPrefix>
            <Name>folder/subfolder/</Name>
        </BlobPrefix>
        <NextMarker />
    </EnumerationResults>
    I've tried using other clients (Cloud Storage Studio and the CloudBerry Explorer) and they have the same issue - "folders" show up in the container but are themselves empty when they shouldn't be. So, what am I missing here?

    My apologies upfront if I misread your explanation above, but you should get the entire listing when using prefix "folder/". For example, I get the below response when using the following request: GET /myfolder?restype=container&comp=list&prefix="0/"&delimiter="/"&timeout=90
    HTTP/1.1 with version = 2009-09-19. But looks like you did not get the blobs listed? Is that correct? If yes, can you re-run and provide me with account name and request id (please send it to jharidas at microsoft)? Request and response traces will be
    helpful.
    Thanks,
    jai
    <?xml version="1.0" encoding="utf-8"?>
    <EnumerationResults ContainerName="http://myaccount.blob.core.windows.net/myfolder">
    <Prefix>0/</Prefix>
    <Delimiter>/</Delimiter>
    <Blobs>
    <Blob>
    <Name>0/test0.jpg</Name>
    <Url>http://myaccount.blob.core.windows.net/myfolder/0/test0.jpg</Url>
    <Properties>
    </Properties>
    </Blob>
    <Blob>
    <Name>0/test1.jpg</Name>
    <Url>http://myaccount.blob.core.windows.net/myfolder/0/test1.jpg</Url>
    <Properties>
    </Properties>
    </Blob>
    <BlobPrefix>
    <Name>0/test1/</Name>
    </BlobPrefix>
    <Blob>
    <Name>0/test2.jpg</Name>
    <Url>http://myaccount.blob.core.windows.net/myfolder/0/test2.jpg</Url>
    <Properties>
    </Properties>
    </Blob>
    </Blobs>
    <NextMarker />
    </EnumerationResults>

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • How to determine mime type of multi-part message uploaded to rest api?

    I have a rest api that is used to upload data from different types of clients and serves as a proxy to write data to Azure blob storage. For testing, I'm using Fiddler on a PC.
    The code in my rest api that writes to blob storage looks like this:
    try
    await blockBlob.UploadFromStreamAsync(requestMessage.Content.ReadAsStreamAsync().Result);
    catch (Exception ex)
    HttpResponseMessage _hrm = new HttpResponseMessage(HttpStatusCode.InternalServerError);
    _hrm.ReasonPhrase = ex.Message;
    throw new HttpResponseException(_hrm);
    1 - How can I access the form-data that is included in the POST that has the original file name and the content-tyipe?
    2 - How can this info be passed to the blob when I write it out?  Currently, it is written out as a type of application/octet-stream instead of video/mp4.

    I think I found a solution using some other threads.  I'm not sure if it's the most performant or best but I'm able to get to the content-disposition and the content-type of the stream to get the details:
    Dictionary<string, string> lstLines = new Dictionary<string, string>();
    string[] _tmp;
    TextReader textReader = new StreamReader(requestMessage.Content.ReadAsStreamAsync().Result);
    string sLine = textReader.ReadLine();
    Regex regex = new Regex("(^content-type)|(^content-disposition)", RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline);
    while (sLine != ""
    && sLine != null)
    if (regex.Match(sLine).Success)
    _tmp = sLine.Split(':');
    lstLines.Add(_tmp[0], _tmp[1]);
    sLine = textReader.ReadLine();

  • Blob storage as output

    Hi All,
    I just started playing with the stream analytics to build a proof of concept app for our analytics. We're developing a widget that has millions of "loads" each day, these are the events we want to have analytics for.
    Due to the amount of data I'm trying to store the data in blob instead of sql. I've managed to configure the output to use blob storage. Is there a way to configure output to create a new blob every hour/day or similar? 
    BR,
    Max.

    Hi,
    I guess I can have a scheduled job running in my worker role that uses the management rest api to execute the following steps at predefined intervals.
    1. Stop the job
    2. Update the name of the job output file
    3. Start the job again using a custom time equal to when the job was stopped.
    Do you see any issues with this solution until support for partitioning the output is available?
    BR, Max.

  • SAP BO 4.1 Webi report sample with prompts to try Restful api

    I was not able to find, in the report demo samples available in the SAP BO 4.1 installation, a Webi report with prompts.
    I found many Webi reports samples but all are without prompts.
    I need at least one Webi report sample with prompts to try the Restful API http://localhost:6405/biprws/raylight/v1/documents/7090/parameters and http://localhost:6405/biprws/raylight/v1/documents/7090/schedules with parameters body.
    Where can I found such webi sample?
    Thanks,
    Riccardo

    As you have BI 4.1 installed, you could design a sample webi report using Webi Rich Client tool.
    Open Webi rich client, select the sample eFashion universe drag few objects in the query and a filter. Set the filter as a prompt and save the report to Enterprise.
    Now you could now use this sample report for your handson on REST SDK.
    -Bhushan

  • How to get permission of a sharepoint list for a user using REST api

    Hi there,
    I have a requirement where i need to check the access permission of a user against a List or Library only using REST api from my remote salesforce app. [I already have access token and I am able to view list, add item etc..]
    Say for example, I have to send the list name and user name, and get the result as Read, Write, Contribute(Manage), None. I need to display what permission does that user have for that List.
    How do I achieve this. Please help me.
    Thanks in advance.

    Hi,
    For High and low bits, we can create a new SP.BasePermissions object to use like below:
    function success(data){
    var permissions = new SP.BasePermissions();
    permissions.set(SP.PermissionKind.manageLists);
    var hasPermission = permissions.hasPermissions(data.d.EffectiveBasePermissions.High, data.d.EffectiveBasePermissions.Low);
    Here is a detailed article for your reference:
    http://www.lifeonplanetgroove.com/checking-user-permissions-from-the-sharepoint-2013-rest-api/
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Post/Create a poll using Yammer REST API

    Hi everybody,
    I have been working on a project where there is a requirement to develop a custom web part that displays the feeds from Yammer. Also, the logged in user should be able to post messages, attachments, polls from the web part.
    I was able to post messages and attachments using rest api and with yammer embed. But I couldn't find any information/documentation on how to post/create a poll via Yammer API using JavaScript. I've browsed through the documentation provided by Yammer( https://developer.yammer.com/documentation/ )
    and googled a lot, but couldn't get any help.
    Any suggestions regarding this would be highly appreciated.
    Regards,
    Srivikas Nallamilli.
    -- Thanks & Regards, Srivikas.

    Hi,
    Use the same API that you use to fetch messages from yammer i.e https://www.yammer.com/api/v1/messages.json
    When you post a poll, above api will return json respose something as below:
    "external_references":[
    "meta":{
    "requested_poll_interval":60,
    "realtime":{
    "uri":"https://7-791.rt.yammer.com/cometd/",
    "authentication_token":<TOKEN>
    "channel_id":<CHANNEL ID>
    "last_seen_message_id":null,
    "current_user_id":1530316230,
    "followed_references":[
    "ymodules":[
    "id":12147685,
    "inline_html":"<INLINE HTML>",
    "viewer_id":1530316230
    "newest_message_details":null,
    "feed_name":"Company Feed",
    "feed_desc":"",
    "direct_from_body":false
    you will get the poll message in inline html section highlighted in code above.
    Let me know if it works.
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for