Cancels the directory quotas of a file system.

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 CancelDirQuota

The operation that you want to perform.

Set the value to CancelDirQuota.

FileSystemId String Yes 1ca404****

The ID of the file system.

Path String Yes /data/sub1

The absolute path of the directory.

UserType String Yes Uid

The type of the user.

Valid values:

  • Uid: user ID
  • Gid: user group ID
  • AllUsers: all users
UserId String No 500

The Uid or Gid of a user for whom you want to cancel the directory quota.

This parameter is required and valid only if the UserType is set to Uid or Gid.

Examples:

  • If you want to cancel a quota for a user whose UID is 500, set the UserType parameter to Uid and set the UserId parameter to 500.
  • If you want to cancel a quota for a group whose GID is 100, set the UserType parameter to Gid and set the UserId parameter to 100.

Response parameters

Parameter Type Example Description
RequestId String 5BC5CB97-9F28-42FE-84A4-0CD0DF42****

The ID of the request.

Success Boolean true

Indicates whether the request has succeeded.

Valid values:

  • true: The request has succeeded.
  • false: The request has failed.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CancelDirQuota
&FileSystemId=1ca404****
&Path=/data/sub1
&UserType=Uid
&<Common request parameters>

Sample success responses

XML format

<RequestId>5BC5CB97-9F28-42FE-84A4-0CD0DF42****</RequestId>
<Success>true</Success>

JSON format

{
	"RequestId": "5BC5CB97-9F28-42FE-84A4-0CD0DF42****",
	"Success": true
}

Error codes

For a list of error codes, visit the API Error Center.