Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.
Koo Command Line Interface
Koo Command Line Interface
- Function Overview
- What's New
- Service Overview
- Getting Started
-
User Guide
- Configuration Management
- HTTP Proxy
- Commonly Used Commands
-
Options
- Option Overview
- Printing Help Information
- Printing Debugging Information
- Checking Command
- Specifying Region
- Calling APIs with an Account in Non-configuration Mode
- Calling APIs with AK/SK in Non-configuration Mode
- Calling APIs with a Token in Non-configuration Mode
- Calling APIs Using an Agency in Non-configuration Mode
- Specifying Account ID
- Specifying Profile
- Specifying Authentication Mode
- Specifying Output Format
- Passing API Parameters with JSON File
- Specifying Request Timeouts
- Specifying Retry Count
- Skipping HTTPS Request Certificate Verification
- Specifying a Domain Name
- Obtaining CLI Examples on API Explorer
- Using KooCLI in Non-configuration Mode
- Obtaining Authentication Information
-
FAQs
- Overview
- Authentication
- Profiles
- Metadata Cache
- Logs
- Network Connections
- Cloud Services
- Cloud Service APIs
- Regions
-
Parameters
- What Are KooCLI System Parameters?
- Why Am I Seeing a Message Indicating an Invalid Parameter?
- Why Are Old and New KooCLI System Parameters (Such as region and cli-region) Available? Which Parameters Are Recommended?
- Why Am I Seeing a Message Indicating a Duplicate Parameter?
- How Do I Use cli-jsonInput?
- When Can I Use cli-jsonInput?
- Why Am I Seeing a Message Indicating an Unsupported Parameter Position or Type?
- How Do I Leave a Body Parameter Empty for Cloud Service APIs?
- Interactive Mode and Autocomplete
-
Output Formats
- What Output Formats Are Supported by KooCLI?
- How Do I Define a JMESPath Expression?
- Which KooCLI System Parameters Are Related to Data Output? Which Ones Are Recommended?
- How Do I Use cli-output, cli-query, and cli-output-num?
- How Do I Use cli-output-rows, cli-output-cols, and cli-output-num? What Are the Precautions?
- How Do I Use cli-json-filter? What Are the Precautions?
- Other
- Videos
On this page
Show all
Help Center/
Koo Command Line Interface/
User Guide/
Options/
Calling APIs with an Account in Non-configuration Mode
Calling APIs with an Account in Non-configuration Mode
Updated on 2023-02-27 GMT+08:00
Add the --cli-username, --cli-password, and --cli-domain options in a command to call a cloud service API with an account in non-configuration mode.
hcloud EVS UpdateVolume --cli-region="eu-west-101" --volume_id="aed9****-****-****-****-****0e3219cf" --project_id="0dd8cb****************19b5a84546" --volume.name="ecs-abcd" --volume.description="volume test" --cli-username=s******1 --cli-password=****** --cli-domain=s******1 { "id": "aed9****-****-****-****-****0e3219cf", "links": [ { "href": "https://evs.eu-west-101.myhuaweicloud.eu/v2/0dd8cb****************19b5a84546/volumes/aed9****-****-****-****-****0e3219cf", "rel": "self" }, { "href": "https://evs.eu-west-101.myhuaweicloud.eu/0dd8cb****************19b5a84546/volumes/aed9****-****-****-****-****0e3219cf", "rel": "bookmark" } ], "name": "ecs-abcd", "status": "in-use", "attachments": [ { "server_id": "4f06****-****-****-****-****04dd856a", "attachment_id": "773d****-****-****-****-****e4f3b6f0", "attached_at": "2022-05-11T02:27:44.453029", "host_name": null, "volume_id": "aed9****-****-****-****-****0e3219cf", "device": "/dev/vda", "id": "aed9****-****-****-****-****0e3219cf" } ], "description": "volume test", "size": 40, "metadata": { "billing": "1", "readonly": "False", "attached_mode": "rw" }, "bootable": "true", "availability_zone": "", "os-vol-host-attr:host": null, "source_volid": null, "snapshot_id": null, "created_at": "2022-05-11T02:27:09.279069", "volume_type": "SAS", "shareable": "false", "multiattach": false, "os-vol-tenant-attr:tenant_id": null, "os-volume-replication:extended_status": null, "volume_image_metadata": null }
To call a cloud service API in this mode, use a custom parameter to pass the username and password in the command. This ensures account security and prevents peeping when you input your password.
Parent topic: Options
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.