bucket |
Mandatory |
Bucket name |
prefix |
Optional |
Prefix of an object name for listing objects
NOTE:
If this parameter is left blank, all objects in the bucket are listed.
|
s |
Optional (additional parameter) |
Displays simplified query result.
NOTE:
In the simplified format, the returned result contains only the object name.
|
d |
Optional (additional parameter) |
Lists only objects and subdirectories in the current directory, instead of recursively listing all objects and subdirectories.
In big data scenarios, parallel file systems usually have deep directory levels and each directory has a large number of files. In such case, you are advised to use this parameter to limit the scope to list.
NOTE:
According to the naming conventions in OBS, a slash (/) is used as the directory separator.
|
v |
Optional (additional parameter) |
Lists versions of an object in a bucket. The result contains the latest version and historical versions (if any) of the object. |
marker |
Optional (additional parameter) |
Object name to start with when listing objects in a bucket. All objects are listed in lexicographical order by object name.
NOTE:
For details about how to use this parameter, see Listing.
|
versionIdMarker |
Optional (additional parameter). It must be used together with the v and marker parameters. |
Version ID to start with when listing versions of objects in a bucket. All versions and objects are listed in lexicographical order by object name and version ID.
NOTE:
If the value of versionIdMarker is not a version ID specified by marker, versionIdMarker is invalid.
|
bf |
Optional (additional parameter) |
Display formats of bytes in the listing result. Possible values are:
NOTE:
If this parameter is not configured, the display format of bytes in the result is determined by the humanReadableFormat parameter in the configuration file.
|
du |
Optional (additional parameter) |
Quickly returns the total size of listed objects, without displaying detailed object information. This parameter can be used together with other parameters.
NOTE:
If there are too many objects listed, wait for a while.
CAUTION:
- This parameter is only supported by obsutil 5.4.6 and later.
|
fs |
Optional (additional parameter) |
Specifies whether the method of listing parallel file systems is applied. If you are listing parallel file systems, you are recommended to add this parameter.
CAUTION:
- With this method, the listing time required varies largely depending on the directory structures.
- After this parameter is enabled, marker and limit will be ignored. Then, the buckets or parallel file systems (including directories) will be calculated.
- This parameter is only supported by obsutil 5.5.12 and later.
|
limit |
Optional (additional parameter) |
Maximum number of objects that can be listed. If the value is less than or equal to 0, all objects are listed. If it is left blank, 1,000 objects are listed by default.
NOTE:
If there are a large number of objects in a bucket, you are advised to set this parameter to limit the number of objects to be listed each time. If not all objects are listed, marker and versionIdMarker of the next request will be returned in the result, which you can use to list the remaining objects.
|
format |
Optional (additional parameter) |
Prints a listing result in the user-defined format. Currently, the value can only be default, indicating that the listing result is displayed in one row. |
config |
Optional (additional parameter) |
User-defined configuration file for executing the current command. To learn the parameters that can be configured in this file, see Configuration Parameters. |
e |
Optional (additional parameter) |
Specifies the endpoint. |
i |
Optional (additional parameter) |
Specifies the user's AK. |
k |
Optional (additional parameter) |
Specifies the user's SK. |
t |
Optional (additional parameter) |
Specifies the user's security token. |