du action

Use this action to return disk usage information for a specified directory in a NetStorage storage group.

Path Params
integer
required

The unique CP code that represents the root directory in the applicable NetStorage storage group.

Learn more about CP codes.

string
required

If applicable, any additional sub-directories that exist within the path to the desired file or symbolic link.

Headers
string
required

Form the header value as a query parameter string with these fields:

  • version=1. This value is constant.
  • action=du. This is the action for this API operation.

Optional parameters
You can append these optional parameters to the end of the header, prefaced by an ampersand ("&").

  • encoding=utf-8: Request the response in UTF-8 encoding.
string
required

This required header is referred to as [signature header 1].

X-Akamai-ACS-Auth-Data: [version], [0.0.0.0], [0.0.0.0], [current epoch time], [unique-number-id], [uploadAccountId]

  • [version]. Indicate your authentication encryption format.
  • [0.0.0.0]. This is a reserved field you specify as 0.0.0.0.
  • [current epoch time]. This is the time of your API client within one (1) minute of the current time.
  • [unique-number-id]. A random numeric ID your client creates to guarantee uniqueness to support multiple requests.
  • [uploadAccountId]. The name of an upload account with access to the target storage group.

Learn more about the "X-Akamai-ACS-Auth-Data" authentication header.

string
required

This required header is referred to as [signature header 2]. It's a Base64-encoded-signature comprised of HMAC-SHA256([key], [data] + [sign-string]).

Learn more about the "X-Akamai-ACS-Auth-Sign" authentication header.

string
required

This is your full NetStorage Usage API connection hostname.

Responses

400

Malformed request, such as unsupported encoding= value in X-Akamai-ACS-Action request header. There may be more information in the response body.

403

Forbidden operation, such as action=du in HTTP PUT request, or authentication or authorization error. There may be more information in the response body.

404

The object which is the subject of action=stat does not exist.

500

Internal error in the server. There will be more information in the response body.

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/xml