Calling APIs with an Account in Non-configuration Mode
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.
cloud EVS UpdateVolume --cli-region="{region}" --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.{Endpoint}/v2/0dd8cb****************19b5a84546/volumes/aed9****-****-****-****-****0e3219cf",
"rel": "self"
},
{
"href": "https://evs.{Endpoint}/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": "{region}",
"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.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot