El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.
Listing Files in Favorites
Function
List files in favorites. Up to 100 files are supported each time.
URI
GET /koodrive/ose/v1/star/files
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
pageSize |
No |
Integer |
Number of records to be returned on each page. Default and maximum value: 100. It is possible that partial or empty result pages are returned before the end of the result list has been reached. |
pageCursor |
No |
String |
Current page cursor, which is obtained from nextCursor of the previous response. |
sortType |
No |
Integer |
Sorting type. 1: by the time when a file is added to favorites (default). |
sortDirection |
No |
Integer |
Sorting order. 1: ascending; 2: descending (default). |
fileType |
No |
String |
File type.
|
imageProcess |
No |
String |
Image operation, which can be used to specify the thumbnail size. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Authorization |
Yes |
String |
Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. For details about how to obtain an access token, see the corresponding developer guide. The format is Bearer+{access_token}. |
X-Traceid |
No |
String |
Message log trace ID. The value contains 58 bits. |
X-User-Id |
Yes |
String |
User ID, which is used for app authentication. |
X-Date |
Yes |
String |
Date, which is used for app authentication. |
Host |
Yes |
String |
Address, which is used for app authentication. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
nextCursor |
String |
Pagination cursor. If the cursor does not exist, the last record has been returned. |
autoDeleted |
Integer |
Number of automatically deleted files (original files have been physically deleted). |
starFiles |
Array of StarFileInfo objects |
Favorite file information. |
code |
String |
Response code. |
msg |
String |
Response information. |
Parameter |
Type |
Description |
---|---|---|
category |
String |
Type. The value is drive#file. |
id |
String |
File ID. |
fileName |
String |
File name, which contains up to 250 characters. |
fileType |
String |
File type, which is input externally. |
mimeType |
String |
Content type. |
favorite |
Boolean |
Whether the file is added to favorites. |
recycled |
Boolean |
Whether the file is moved to the recycle bin. |
parentFolder |
Array of strings |
List of parent directory IDs. Currently, only the first ID is used. |
properties |
Map<String,String> |
Common user-defined attributes of the file. The number of key-value pairs cannot exceed 30. A single key-value pair can contain up to 124 characters. |
containers |
Array of strings |
Space ID. |
createdTime |
String |
File creation time. |
editedTime |
String |
File modification time. |
editedByMe |
Boolean |
Whether the file is modified by you. |
owners |
Array of User objects |
Owner. |
lastEditor |
User object |
Last editor. |
fullFileSuffix |
String |
Complete file name extension, which is the characters following the first period (.) in the name. |
fileSuffix |
String |
File name extension, which is the last character string of fullFileExtension. |
size |
Integer |
File size. |
sha256 |
String |
SHA256 of the file. |
attachments |
Array of Attachment objects |
Attachment (purpose and attachment). Only the app ID of the risk control service is returned. |
downloadLinks |
Array of DownloadLink objects |
Link for downloading FileProxy files. |
userProperties |
PrivateProperties object |
User attributes. |
starredTime |
String |
Time when the file is added to favorites. |
filePath |
String |
File location, specific to the team name. |
spaceType |
String |
Space type.
|
invalid |
Integer |
Whether the file has expired. *0: normal; 1: expired. |
hidden |
Boolean |
Whether the file is hidden. |
userCapabilities |
userCapabilities object |
User permissions. |
Parameter |
Type |
Description |
---|---|---|
category |
String |
Type. The value is drive#user. |
userId |
String |
Huawei user ID. |
displayName |
String |
Display name of the user. |
me |
Boolean |
Whether you are the user. |
permissionId |
String |
Permission ID. |
Parameter |
Type |
Description |
---|---|---|
usage |
String |
Default usage: content or thumbnail. This parameter is customizable. |
assetId |
String |
Asset ID |
length |
Long |
File size. |
versionId |
String |
Asset version ID. |
mimeType |
String |
MIME type. |
hash |
String |
Hash of the resource associated with the asset. |
sha256 |
String |
SHA256 of the resource associated with the asset. |
createdTime |
String |
Time when the data is created. |
modifiedTime |
String |
Time when the data is last modified. |
attributes |
Map<String,Object> |
Type attributes. |
asset |
Asset object |
Asset. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Asset ID |
versionId |
String |
Asset version ID. |
version |
Long |
Version number. |
mimeType |
String |
MIME type |
keepPolicy |
Integer |
Storage policy of historical versions.
|
state |
Integer |
Data status.
|
createdTime |
String |
Time when the data is created. |
modifiedTime |
String |
Time when the data is last modified. |
lastModifyingUser |
String |
UPID of the user that last modifies the data. |
resource |
Resource object |
Resource. |
cipher |
Cipher object |
Cipher. |
attributes |
Map<String,Object> |
Type attributes. A key consists of letters and digits and starts with a letter. A value cannot contain emojis. The size of an attribute is not limited, but the total size cannot exceed 16 KB. Attribute options:
|
properties |
Map<String,String> |
Extended attributes. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID of the file resource. |
hash |
String |
Hash of the file resource. |
length |
Long |
Size of the file resource. |
sha256 |
String |
SHA256 of the file (used for integrity check). |
type |
Integer |
Resource type.
|
state |
Integer |
Data status.
|
sliceSize |
Long |
Part size. |
hfek |
String |
Hash of the FEK of the encrypted file. This parameter is applicable when type is set to 0. |
iv |
String |
IV of the encrypted file. This parameter is applicable when type is set to 0. |
createdTime |
String |
Time when the data is created. |
modifiedTime |
String |
Time when the data is last modified. |
objects |
Array of SliceObject objects |
Part object, which is applicable when type is set to 0 or 3. |
attributes |
Map<String,Object> |
Type attributes. |
properties |
Map<String,String> |
Extended attributes. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Part ID. |
number |
Integer |
Part No., starting from 0. This parameter is not applicable when type is set to 12. |
start |
Long |
Start position of a part, which is not applicable when type is set to 12. |
sha256 |
String |
SHA256 of the part (or SHA256 of the ciphertext if the part is encrypted.) |
length |
Long |
Part length (or ciphertext length if the part is encrypted). |
bucket |
String |
OBS bucket information. |
createdTime |
String |
Time when the data is created. |
modifiedTime |
String |
Time when the data is last modified. |
uploadUrl |
EndpointURL object |
Upload URL. |
downloadUrl |
EndpointURL object |
Download URL. |
uploadId |
String |
Multipart upload ID. This parameter is applicable when type is set to 12 and uploadMode is set to multipart. |
attributes |
Map<String,Object> |
Type attributes. |
properties |
Map<String,String> |
Extended attributes. |
images |
Array of Images objects |
Thumbnail. |
Parameter |
Type |
Description |
---|---|---|
url |
String |
URL |
method |
String |
http method |
headers |
Map<String,String> |
http headers |
forms |
Map<String,String> |
Form parameter, which is applicable when type is set to 12 and uploadMode is set to post. |
partId |
String |
Multipart parameter, which is applicable when type is set to 12 and uploadMode is set to multipart. |
Parameter |
Type |
Description |
---|---|---|
process |
String |
File resource name. |
downloadUrl |
EndpointURLMetadata object |
URL structure for file upload or download. |
Parameter |
Type |
Description |
---|---|---|
algorithm |
String |
Encryption algorithm. |
hfek |
String |
Hash of the FEK of the encrypted file. This parameter is applicable when type is set to 0 or 4. |
iv |
String |
IV of the encrypted file. This parameter is applicable when type is set to 0 or 4. |
dataType |
Integer |
Data type.
|
keychains |
Array of Keychain objects |
Keychain. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Key UUID. |
type |
Integer |
Key type.
|
algorithm |
String |
Encryption algorithm. |
ekey |
String |
Encrypted key. |
Parameter |
Type |
Description |
---|---|---|
usage |
String |
Default usage: content or thumbnail. This parameter is customizable. |
downloadLink |
String |
Attachment download link. |
version |
Integer |
Attachment version. |
Parameter |
Type |
Description |
---|---|---|
attributes |
Map<String,Object> |
Type attributes (The size of a single attribute is not limited, but the total size cannot exceed 16 KB.) |
properties |
Map<String,String> |
Extended attributes (The size of a single attribute is not limited, but the total size cannot exceed 16 KB.) |
Parameter |
Type |
Description |
---|---|---|
addChildNodePermission |
Boolean |
Whether the user can add sub-directories or sub-files. |
copyPermission |
Boolean |
Whether the user can copy files. |
deletePermission |
Boolean |
Whether the user can delete files. |
downloadPermission |
Boolean |
Whether the use can download content. |
editPermission |
Boolean |
Whether the user can edit files. |
listChildNodePermission |
Boolean |
Whether the user can list sub-directories or sub-files. |
removeChildNodePermission |
Boolean |
Whether the user can move sub-directories. |
renameFilePermission |
Boolean |
Whether the user can rename files. |
shareFilePermission |
Boolean |
Whether the user can share files. |
uploadPermission |
Boolean |
Whether the user can upload files. |
viewPermission |
Boolean |
Whether the user can preview files. |
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot