文档首页/ 华为云命令行工具服务 KooCLI/ 用户指南/ 选项说明/ 打印命令调用过程中的调试信息
更新时间:2022-08-31 GMT+08:00

打印命令调用过程中的调试信息

KooCLI支持打印命令执行过程中的调试信息。在命令中添加“--debug”即可:

hcloud VPC ShowVpc/v3 --cli-region="ap-southeast-1" --project_id="0dd8cb****************19b5a84546" --vpc_id="0bbe****-****-****-****-****235be6e7" --debug
[debug info] 2022/06/21 19:59:25 Read and connection timeouts are 40s and 30s respectively.
[debug info] 2022/06/21 19:59:25 URL: https://vpc.ap-southeast-1.myhuaweicloud.com/v3/0dd8cb****************19b5a84546/vpc/vpcs/0bbe****-****-****-****-****235be6e7
[debug info] 2022/06/21 19:59:26 API response status code is 200.
[debug info] 2022/06/21 19:59:26 API response X-Request-Id is f9fd68****************2e48ec7f88.
{
  "vpc": {
    "id": "0bbe****-****-****-****-****235be6e7",
    "name": "CCI-VPC-*******",
    "description": "",
    "cidr": "192.***.*.*/**",
    "extend_cidrs": [],
    "status": "ACTIVE",
    "project_id": "0dd8cb****************19b5a84546",
    "enterprise_project_id": "0",
    "tags": [],
    "created_at": "2022-05-10T02:53:42Z",
    "updated_at": "2022-05-10T02:53:43Z",
    "cloud_resources": [
      {
        "resource_type": "routetable",
        "resource_count": 1
      },
      {
        "resource_type": "virsubnet",
        "resource_count": 1
      }
    ]
  },
  "request_id": "f9fd68****************2e48ec7f88"
}