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
Fields | Values | Description |
---|---|---|
#PCDATA | regex | Regular expression to list subset assets |
Output Result
Fields | Values | Description |
---|---|---|
Command | listAsset | Echo of the command element name |
Code | 0 -1 1 | 0 = success -1 = DTD Violation 1 = Processing Error |
Name | A valid file name | The name of the asset |
Size | A decimal number | The size of the asset file in bytes |
Type | An ASCII string | The asset type |
Processing Errors
- "directory ....” - some problem with the assetsdirectory"
- "directory ....” - some problem with the reencryptassetsdirectory"
Examples
Request
<listAssets>\.mpg$</listAssets>
Response On Success
<Result Command="listAssets" Code="0">
<Asset Name="...." Size="..." Type="..." />
<Asset Name="...." Size="..." Type="..." />
<Asset Name="...." Size="..." Type="..." />
...
</Result>
Response On Failure
<Result Command="listAssets" Code="1">
<Description>directory '/assets': access denied</Description>
</Result>