Obtaining CLI Examples on API Explorer
API Explorer supports online API debugging and generates KooCLI examples for cloud service APIs. After configuring the parameters of an API on API Explorer, you can copy and use the relevant CLI Example.
The following figure shows the CDN API for creating an acceleration domain name on API Explorer. After you set the request parameters, the CLI example will be updated accordingly. You can save the command with the set request parameters. Later, you can directly invoke this command in KooCLI or integrate it into a script.
- On the API Explorer console, only the parameters with values specified are displayed in the CLI example.
- A CLI example carries information such as a project ID and region. To use the example in another project or region, replace the project ID and region with the corresponding values.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.