ossutil 2.0 new features
Compared with ossutil 1.0, ossutil 2.0 organizes commands in tiers and introduces updates to many items, such as configuration files, access credentials, and filters. This topic describes new features of ossutil 2.0.
|
New feature |
Description |
|
Command tiering |
ossutil 2.0 supports multiple tiers of commands:
|
|
Basic Configuration |
To avoid failures caused by missing configuration items when using ossutil, ensure that the following items are configured: AccessKey ID, AccessKey Secret, and region ID. The region ID is required, for the signature algorithm has been upgraded to V4. For more infomation, see Regions and endpoints |
|
Configuration file modification |
A configuration file can contain multiple profiles. A profile in a configuration file can be imported by using the --profile option. You can use the source-profile key to import settings from another profile in the configuration file. |
|
Extended access credential support |
|
|
Enhancements to the config command |
The config command provides interactive experience and supports basic settings:
|
|
Output formatting |
You can use the --output-format option to format command output in JSON, YAML, or XML. By default, output uses the raw format (XML or text). If you convert the output to XML from a different format, the root node of XML data is root, regardless of the root node name in the original format. |
|
Output filtering |
You can use the --output-query option to filter output. |
|
New documentation structure |
The documentation structure is improved for better clarity. Command line options are divided into global and local options in documents. |
|
Rich filter support |
You can specify filters in high-level commands for batch processing, such as ls, cp, and rm:
|
|
Unified control options for batch processing commands |
All batching processing commands support unified control options. These options allow you to:
|
|
Control on metadata and tag copy |
The --copy-props option is added for you to control the copy operations of metadata and tags. You can disable metadata and tag copy, copy only metadata, and copy metadata and tags. Note
If you do not specify this option, metadata and tags are copied. |
|
New environment variables |
ossutil 2.0 adds environment variables for the following credential-related parameters: region, endpoint, config-file, and profile. Environment variables allow you to specify access credentials in a more secure way than directly specifying them by using command-line parameters. |
|
Simulated command execution (--dry-run/-n) |
The --dry-run option allows you to perform a command test, without making any changes. |
|
Addressing style |
ossutil 2.0 adds the --addressing-style option, which allows you to specify an addressing style. The supported addressing styles are virtual domains, path-style addresses, and CNAME. |
|
Standard input support for parameters and command-line options |
The standard input allows you to chain commands by using the pipe symbol. |
|
Command alias |
ossutil 2.0 supports aliases for some commands. |
|
Standardized return codes |
Return codes are more standardized and consistent across commands. A non-zero return code indicates an error during command execution. Return codes that indicate errors vary with phases in which error occurred. This design enables efficient error handling based on return codes. |
|
User-friendly option settings |
|
|
Client-side auto time sync |
When the gap between the client-side time and the server-side time exceeds 15 minutes, the RequestTimeTooSkewed error is returned from the server. ossutil 2.0 automatically synchronizes time upon detection of the error. Note
Auto time synch is used in a client environment that has inconsistent timing with the server environment. |