Removes a directory from the left-side navigation pane of DataAnalysis.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UmountDirectory

The operation that you want to perform. Set the value to UmountDirectory.

TargetType String No META_ALBUM

The type of the directory that you want to remove from the left-side navigation pane of DataAnalysis. Example: META_ALBUM, which indicates the data album.

TargetId String No album.339

The ID of the directory that you want to remove from the left-side navigation pane of DataAnalysis. This parameter is used together with the TargetType parameter.

For example, if you set the TargetType parameter to META_ALBUM, you must set the TargetId parameter to the ID of the related data album. You can call the ListMetaCollections operation to obtain the ID of the data album. The ID is indicated by the QualifiedName parameter.

TargetUserId String No 1234567890

The ID of the specified user in the tenant.

  • If you do not specify TargetUserId, your directory is removed.
  • If you specify TargetUserId, a directory of the specified user is removed.

Response parameters

Parameter Type Example Description
RequestId String 0bc5aa2716455247597991794e65bd

The ID of the request. You can use the ID to troubleshoot issues.

HttpStatusCode Integer 200

The HTTP status code returned. The value 200 indicates that the request was successful.

Data Integer 1

The number of directories that are removed. Valid values:

  • 0: No directories are removed. The left-side navigation pane may not contain the specified directory.
  • 1: One directory is removed.
ErrorMessage String You have no permission.

The error message returned if the request failed.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
ErrorCode String 200

The error code returned. The value 200 indicates that the remove task is successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UmountDirectory
&TargetType=META_ALBUM
&TargetId=album.339
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UmountDirectoryResponse>
    <RequestId>0bc5aa2716455247597991794e65bd</RequestId>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>1</Data>
    <ErrorMessage>You have no permission.</ErrorMessage>
    <Success>true</Success>
    <ErrorCode>200</ErrorCode>
</UmountDirectoryResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "0bc5aa2716455247597991794e65bd",
  "HttpStatusCode" : 200,
  "Data" : 1,
  "ErrorMessage" : "You have no permission.",
  "Success" : true,
  "ErrorCode" : 200
}

Error codes

For a list of error codes, see Service error codes.