Developer Documentation


The File.AddSpec structure describes the properties of the file to be uploaded.


Required Property Name Type Description
optional checksum_info FileChecksumInfo

The checksum of the file. If specified, the server will verify the checksum once the file is received. If there is a mismatch, the upload will fail. For ova files, this value should not be set. If unset, the server will not verify the checksum.

required name string

The name of the file being uploaded.

optional size integer

The file size, in bytes. If unset, the server will not verify it received the correct size.

optional source_endpoint ItemTransferEndpoint

Location from which the Content Library Service will fetch the file, rather than requiring a client to upload the file. This field is optional and it is only relevant when the value of File.AddSpec.source-type is PULL.

required source_type FileSourceType Enum

The source type (SourceType) from which the file content will be retrieved.

Property of


Was this page helpful?