Access Minio Instance

Access Minio storage from the Web-UI, Minio Client Tool (mc), and client-SDKs, as illustrated in the following sections.

Minio Web-UI

After creating a Minio instance, you can access the storage using Minio-WebUI.

Get the Dashboard-URL using the cf service command: Cf service

Access the Dashboard URL https://d3ecc8f6-5684-4882-90c4-179285ff9b09.sys.YOUR-VMware using a web browser. Web browser

Minio Client Tool

Install mc and configure mc with the command:

mc config host add minio randomaccesskey randomsecretkey

Create a bucket:

mc mb minio/testbucket

Upload a file:

mc cp /tmp/piano.mp3 minio/testbucket

Download a file:

mc cp minio/testbucket/piano.mp3 /tmp/new-piano.mp3

For more information about using mc, read the documentation.

Client SDKs

Minio Client SDKs

Access Minio storage with the following Minio SDKs:

Here is an example Javascript code to upload a file using minio-js:

var Minio = require('minio')

// Instantiate the minio client with the endpoint
// and access keys as shown below.
var minioClient = new Minio.Client({
    endPoint: '',
    port: 443,
    secure: true,
    accessKey: 'randomaccesskey',
    secretKey: 'randomsecretkey'

// File that needs to be uploaded.
var file = '/tmp/photos-europe.tar'

// Make a bucket called europetrip.
minioClient.makeBucket('europetrip', '', function(err) {
    if (err) return console.log(err)

    // Using fPutObject API upload your file to the bucket europetrip.
    minioClient.fPutObject('europetrip', 'photos-europe.tar', file, 'application/octet-stream', function(err, etag) {
      if (err) return console.log(err)
      console.log('File uploaded successfully.')

Use the accessKey and secretKey that were used to create the Minio instance.

Amazon Client SDKs

Because Minio is Amazon S3 compatible, you can also access it with the AWS SDKs: