New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azure-container-api

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-container-api

Get's container list from Azure API

  • 1.3.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

azure-container-api

Usage

npm install --save azure-container-api
import container from 'azure-container-api';

const storage = {
  container: 'test',
  account: 'azure-account-name-here',
  accessKey: 'azure-storage-access-key-here',
};

var prefix = null; // path prefix

var nextMarker = null;
var targetLocation = 0;

var continuationToken = nextMarker ? {nextMarker: nextMarker, targetLocation: targetLocation} : null;

const options = {
  maxResults: 25,
  date: { year: 2013, month: 7, day: 27 },
};

container.getContentFromContainer(storage, prefix, continuationToken, options, function(err, blobs, continuationToken) {

  /*  blobs: array of entries:

    [
      {
        name: 'xxxx',
        properties: {
          'last-modified': 'Thu, 10 Sep 2015 21:03:26 GMT',
          'etag': '0x8D2BA2345B07FCF',
          'content-length': # bytes,
          'content-type': 'application/octet-stream',
          'content-encoding': ,
          'content-language': ,
          'content-md5': ,
          'cache-control': ,
          'content-disposition':,
          'blobtype': ,
          'leasestatus': ,
          'leasestate':
        }
      }
    ]


  */


});

See properties reference: https://msdn.microsoft.com/en-us/library/azure/dd179394.aspx

Options

date (Optional)

FAQs

Package last updated on 22 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc