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


name Required

The name of the file being uploaded.

source_type Required

The File.SourceType enumerated type defines how the file content is retrieved.
NONE : No source type has been requested.
PUSH : The client is uploading content using HTTP(S) PUT requests.
PULL : The server is pulling content from a URL. The URL scheme can be http, https, file, or ds.

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 as int64
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": "NONE"


Was this page helpful?