Cloud Storage

Microsoft Azure Blob Storage

To allow our servers to save files on a Microsoft Azure Blob Storage, the following parameters to send the request are available:

FieldDescriptionRequiredDefault
output_target.typeSpecifies the type of output target, in this case azure.YesN/A
output_target.parameters.containerThe name of the container that will contain the uploaded files.YesN/A
output_target.parameters.fileComplete path to where the file will be uploaded, e.g. folder-inside-container/image.jpeg.YesN/A
output_target.credentials.accountnameCan be found in the storage account dashboard. It's the name before the blob.core.windows.netURL.YesN/A
output_target.credentials.accountkeyCan be found in the storage account dashboard under the Access Keys menu entry.YesN/A

Please note that in some circumstances (e.g. already existing filename on the cloud) the upload can be refused. For these reasons, it's highly recommended to upload converted files in new directories.

POST /jobs HTTP/1.1
Host: api2.online-convert.com
x-oc-api-key: <your API key here>
Content-Type: application/json
Cache-Control: no-cache

{
    "input": [{
        "type": "remote",
        "source": "https://static.online-convert.com/example-file/raster%20image/jpg/example_small.jpg"
    }],
    "conversion": [{
        "target": "png",
        "output_target": [{
            "type": "azure",
            "parameters": {
                "container": "the name of your container",
                "file": "file-will-be-uploaded/here.png"
            },
            "credentials": {
                "accountname": "your account name",
                "accountkey": "your account key"
            }
        }]
    }]
}
curl -X POST \
  https://api2.online-convert.com/jobs \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'x-oc-api-key: <your API key here>' \
  -d '{
    "input": [{
        "type": "remote",
        "source": "https://static.online-convert.com/example-file/raster%20image/jpg/example_small.jpg"
    }],
    "conversion": [{
        "target": "png",
        "output_target": [{
            "type": "azure",
            "parameters": {
                "container": "the name of your container",
                "file": "file-will-be-uploaded/here.png"
            },
            "credentials": {
                "accountname": "your account name",
                "accountkey": "your account key"
            }
        }]
    }]
}'

results matching ""

    No results matching ""