LibraryItemUpdatesessionFileAddSpec

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


Properties

string
name Required

The name of the file being uploaded.


source_type Required

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

Possible values are: NONEPUSHPULL


checksum_info Optional

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.


integer
size Optional

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


source_endpoint Optional

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.

JSON Example

{
    "name": "string",
    "source_type": "enum"
}
Feedback

Was this page helpful?