Queries the information of all the parent folders of a specified folder.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ChildId | string | Yes | The ID of the subfolder. | fd-i1c9nr**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "83AFBEB6-DC03-406E-9686-867461FF6698",
"Folders": {
"Folder": [
{
"FolderId": "r-b1****",
"CreateTime": "2019-01-18T10:03:35.217Z",
"FolderName": "root"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter.ChildId | You must specify ChildId. | The ChildId parameter is not configured. Configure this parameter. |
400 | InvalidParameter.ChildId | The ChildId is invalid. | The value of the ChildId parameter is invalid. The value must start with r- followed by 6 characters or start with fd- followed by 10 characters. Valid characters are letters and digits. |
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The account is not used to enable a resource directory. Use the account to enable a resource directory first. |
404 | EntityNotExists.Folder | The resource directory folder does not exist. | The specified folder does not exist. Create such a folder first. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-05-18 | The Error code has changed | see changesets | ||||||
|