Device - Create File Upload Sas Uri

This method is used to retrieve a storage SAS URI to upload a file.
This method is used to retrieve a storage SAS URI to upload a file. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload for more information.

POST https://fully-qualified-iothubname.azure-devices.net/devices/{deviceId}/files?api-version=2018-06-30

URI Parameters

Name In Required Type Description
deviceId
path True
  • string

Device ID.

api-version
query True
  • string

Version of the Api.

Request Body

Name Type Description
blobName
  • string

Name of the blob.

Responses

Name Type Description
200 OK

The file Upload response object

Definitions

FileUploadRequest
FileUploadResponse

FileUploadRequest

Name Type Description
blobName
  • string

Name of the blob.

FileUploadResponse

Name Type Description
blobName
  • string
containerName
  • string
correlationId
  • string
hostName
  • string
sasToken
  • string