Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page

Show all

Querying Custom Parameters in the Profile List

Updated on 2023-02-27 GMT+08:00

Run the following command to query custom parameters in the profile list of KooCLI. The query result can be output in a table or in JSON or TSV format. By default, the query result is output in JSON format.

hcloud configure list --cli-custom=true

hcloud configure list --cli-custom=true
{
  "current": "test",
  "profiles": [
    {
      "name": "default",
      "custom": null
    },
    {
      "name": "test",
      "custom": {
        "password": {
          "value": "****",
          "isEncrypted": true
        },
        "projectId": {
          "value": "06810000000000000000000000f89d2e",
          "isEncrypted": false
        }
      }
    }
  ]
}

Encrypted custom parameter values are anonymized.

Use --cli-query to filter the query result, and use --cli-output to specify the output format. The default output format is JSON. In the following example, all custom parameters of a profile named test are queried, and the query result is output in JSON format:

hcloud configure list --cli-custom=true --cli-query="profiles[?name=='test'].custom" --cli-output=json
[
  {
    "password": {
      "isEncrypted": true,
      "value": "****"
    },
    "projectId": {
      "isEncrypted": false,
      "value": "06810000000000000000000000f89d2e"
    }
  }
]
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback