Skip to main content
Skip table of contents

listAsset

This command returns a list of all asset names currently stored on the PES  for scrambling and re-encryption, which match the regular expression in #PCDATA. The Result element contains Asset elements describing the matching assets. If no regular expression is given, all assets will be returned.

Input Parameters

FieldsValuesDescription
#PCDATAregexRegular expression to list subset assets 

Output Result

FieldsValuesDescription
CommandlistAssetEcho of the command element name
Code0
-1 
1
0 = success 
-1 = DTD Violation 
1 = Processing Error
NameA valid file nameThe name of the asset
SizeA decimal numberThe size of the asset file in bytes
TypeAn ASCII stringThe asset type

Processing Errors

  • "directory ....”  - some problem with the assetsdirectory"
  • "directory ....”  - some problem with the reencryptassetsdirectory"

Examples

Request

CODE
<listAssets>\.mpg$</listAssets>

Response On Success

CODE
<Result Command="listAssets" Code="0">
   <Asset Name="...." Size="..." Type="..." />
   <Asset Name="...." Size="..." Type="..." /> 
   <Asset Name="...." Size="..." Type="..." /> 
...
</Result>

Response On Failure

CODE
<Result Command="listAssets" Code="1">      
<Description>directory '/assets': access denied</Description>   
</Result>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.