Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Introduction

Updated on 2024-08-20 GMT+08:00

To manage resources in multiple regions or projects or use multiple accounts, add profiles to store fixed information in different scenarios. If you have configured multiple profiles, use --cli-profile to specify the name of the profile to be configured or used.

The following table lists the KooCLI profile parameters that can be modified.

Table 1 Profile parameters

Parameter

Description

cli-profile

Name of a profile. When you modify a profile without specifying this parameter, the default profile will be modified. To view the content of the default profile, run the hcloud configure show command.

cli-mode

Authentication mode. Options:

  • AKSK: permanent AK/SK (access key) or temporary AK/SK and SecurityToken (security credentials).
  • ecsAgency: Temporary authentication information is automatically obtained when you use KooCLI to call cloud service APIs on an Elastic Cloud Server (ECS).
  • SSO: After you enable IAM Identity Center and complete configurations, your users can log in to the unified portal with their username and password and access allocated resources under multiple accounts. They do not need to log in again before the authentication information expires.

cli-region

Region.

cli-access-key

Access key ID (AK). It must be modified together with SK.

cli-secret-key

Secret access key (SK). It must be modified together with AK.

cli-security-token

Temporary security credential. It is required when a temporary AK/SK is used for identity authentication. It must be reconfigured when it expires. Otherwise, the authentication cannot be completed when you call cloud service APIs.

cli-lang

Language of KooCLI. Options:

  • cn: Chinese
  • en: English

cli-offline

Specifies whether to use KooCLI offline mode. Options:

  • true (default value; use offline mode)
  • false (use online mode)

cli-project-id

Project ID.

cli-domain-id

ID of the account to which an IAM user belongs. This parameter is required when you call APIs of global services in AK/SK mode.

cli-custom

Specifies whether to configure custom parameters. Options:

  • true: Configure the custom parameters in the profile.
  • false: Default value, which means to configure the system parameters in the profile.

cli-read-timeout

I/O timeout, in seconds. The default value is 10, and the minimum value is 1.

cli-connect-timeout

Request connection timeout, in seconds. The default value is 5, and the minimum value is 1.

cli-retry-count

Number of connection attempts. The value ranges from 0 to 5, and the default value is 0.

cli-skip-secure-verify

Specifies whether to skip HTTPS certificate verification (not recommended). Options:

  • true: HTTPS certificate verification is skipped. This is not recommended for security purposes.
  • false: Default value, which means that HTTPS certificate verification is required.

cli-agree-privacy-statement

Whether to agree to the privacy statement. When using KooCLI for the first time, you will be prompted to read and agree to the privacy statement. In some special scenarios such as command execution with automation scripts, use this parameter to agree to the privacy statement. Options:

  • true: Agree with the privacy statement.
  • false (default): Disagree with the privacy statement.

cli-warning

Whether to display warnings during command execution. Disabling warnings can avoid interfering with result resolution during command execution with automation scripts. Options:

  • true (default): Display warnings during command execution.
  • false: Display no warnings during command execution.

cli-auth-encrypt

Whether to encrypt authentication information in the configuration file before storage. Options:

  • true (default): The authentication information is encrypted before storage.
  • false: The authentication information is not encrypted before storage.

cli-sso-start-url

User portal URL, which is generated after you enable IAM Identity Center.

cli-sso-region

Region where your IAM Identity Center instance is enabled.

cli-sso-account-name

Account name.

cli-sso-permission-set-name

Permission set name.

NOTE:
  • The value of --cli-custom indicates the type of the parameter to be set in the profile. If --cli-custom is set to false, the system parameters will be set. If --cli-custom is set to true, the custom parameters will be set.
  • When you set a system parameter for a profile that does not exist, the profile is created; if you do so for an existing profile, the profile is modified.
  • You cannot set custom parameters for a profile that does not exist. You cannot set both system parameters and custom parameters in the same command.
  • After you set system parameters or custom parameters for a profile, the profile then becomes the default.

Command for adding or modifying a profile:

hcloud configure set --param1=paramValue1 --param2=paramValue2 ...

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback