marjory-logo

Azure Files

Table of Contents


Contexts

account

Type Description isCrypt
string Your storage account name false

accountKey

Type Description isCrypt
string The access key associated to the storage account true

Actions

List Files

This request retrieves the list of files present in a file share.

Inputs

{
  "fileShareName": "myfileshare", /*Specify the name of your File Share(required)*/
  "directoryPath": "documents/",
}

Outputs

Http Code 200
{
    "content": [
        {
            "name": "string",
            "type": "string",
            "properties": {
                "content-length": "number",
                "last-modified": "string",
                "etag": "string",
                "content-type": "string"
            }
        }
    ]
}
Http Code 500
{
    "message": "string"
}

Create File Share

This action allows you to create a new file share in Azure Files by specifying the name of the share and the quota in gigabytes.

Inputs

{
  "fileShareName": "myfileshare", /*Specify the name of your File Share(required)*/
  "fileShareQuota": 1024, /*Specify the quota in gigabytes of your File Share*/
}

Outputs

Http Code 200
{
    "location": "string"
}
Http Code 500
{
    "message": "string"
}

Delete File

This action allows you to delete a file from a file share by specifying the path to the file.

Inputs

{
  "fileShareName": "myfileshare", /*Specify the name of your File Share(required)*/
  "filePath": "documents/file1.txt", /*(required)*/
}

Outputs

Http Code 200
"No content"
Http Code 500
{
    "message": "string"
}

Upload File

This action is used to upload a file to an existing file share by specifying the path to the file.

Inputs

{
  "fileShareName": "myfileshare", /*Specify the name of your File Share(required)*/
  "filePath": "documents/file1.txt", /*(required)*/
  "marjoryFile": { /*(required)*/
    "id": "string",
    "name": "string",
    "contentType": "string",
    "link": "string",
    "size": "number",
    "lastModified": "string",
  }
}

Outputs

Http Code 200
{
    "etag": "string"
}
Http Code 500
{
    "message": "string"
}

Download File

This action allows you to download a file from a file share by specifying the path to the file.

Inputs

{
  "fileShareName": "myfileshare", /*Specify the name of your File Share(required)*/
  "filePath": "documents/file1.txt", /*(required)*/
}

Outputs

Http Code 200
{
    "marjoryFile": {
        "name": "string",
        "link": "string",
        "id": "string",
        "lastModified": "string",
        "size": "number",
        "contentType": "string"
    }
}
Http Code 500
{
    "message": "string"
}
Version(s)
1.0.1