Validate Item Updatesession File
Validates the files in the update session with the referenced identifier and ensures all necessary files are received. In the case where a file is missing, this operation will return its name in the File.ValidationResult.missing-files set. The user can add the missing files and try re-validating. For other type of errors, File.ValidationResult.invalid-files will contain the list of invalid files. if you do not have all of the privileges described as follows: - Operation execution requires System.Anonymous.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the update session to validate. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
A validation result containing missing files or invalid files and the reason why they are invalid.
{
"has_errors": false,
"invalid_files": [
{
"error_message": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": {
"key": {
"d": 0,
"dt": "string",
"format": "SHORT_DATE",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
},
"name": "string"
}
],
"missing_files": [
"string"
]
}
Whether the validation was succesful or not. In case of errors, the File.ValidationResult.missing-files and File.ValidationResult.invalid-files will contain at least one entry.
A list containing the files that have been identified as invalid and details about the error.
A set containing the names of the files that are required but the client hasn’t added.
Errors
com.vmware.vapi.std.errors.not_allowed_in_current_state : if the update session is not in the ACTIVE state, or if some of the files that will be uploaded by the client aren’t received correctly.
com.vmware.vapi.std.errors.not_found : if no update session with the given identifier exists.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=validate
x-vmw-doc-operation: validate