Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

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
}
NOTE:

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.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback