CLI Users

On this page, you can find an explanation of how to create and manage CLI Users in the Cloud Console.

Table of contents

  1. CLI Users page
  2. Create a CLI User
  3. Download RC File of the CLI User
  4. Edit a CLI User 
  5. Change the password of the CLI User 
  6. Delete a CLI User 

CLI Users page

To get to the CLI Users page on the Homepage you need to select the Security from the VIRTUAL DATACENTER block and click the CLI Users TAB:

secur

cli1

This action will redirect you to the CLI Users page where you can find all created CLI Users, Create buttonSearch bar and Actions icon which opens a list of available management actions for the selected CLI User:

cli2

Actions icon opens the next list of available management actions with the selected CLI User:

  • Download RC File - by this option you can get the RC file of the selected CLI User;
  • Edit - by this option you can change the Name of the selected CLI User;
  • Change password - by this option you can change the password of the selected CLI User;
  • Delete - this option is for the CLI User deletion.

So, from this page you can:

  • review all created CLI Users;
  • create more CLI Users;
  • edit the Name of the CLI Users;
  • change the password of the CLI Users;
  • delete unnecessary CLI Users.

Create a CLI User

To create a new CLI User you need to do the following:

  • open the CLI Users page and click on the CREATE CLI USER icon in the upper left corner: cli3
  • on the next opened Create CLI User window specify:
    • Name: in this field you set a name for the CLI User, it can contain only latin letters (a-z, A-Z), digits (0-9), hyphen (-), underscore (_) and must be at most 220 characters long; 
    • Password: in this field you set the password for the CLI User, it must contain at least one Latin letter in upper case (A-Z), one Latin letter in lower case (a-z), digit (0-9) and special character ( !"#$%&'()*+,-./:;<=>?@[]^_`{|}~) and must be at least 8 characters long; 
    • Confirm password;

cli4

After fields were specified, click on the CREATE icon and the newly created CLI User will be added to the CLI Users page:

cli5

Download RC File of the CLI User

To download the RC File that pertains to the CLI User do the following:

  • to identify this desired CLI User on the CLI Users page;
  • click on the Actions icon  ssh9  and select the Download RC File in the list of available options;

After these steps, the RC file of the selected CLI User will be downloaded.

Next you need:

  • Place RC File of the created CLI User to your Virtual Machine:
    vi openrc

    Сheck that there were indicated the correct OS_USERNAME and  OS_PROJECT_ID and press  Esc:wq, then Enter to save the changes:

    #!/usr/bin/env bash

        # To use an OpenStack cloud you need to authenticate against the Identity

        # service named keystone, which returns a **Token** and **Service Catalog**.

        # The catalog contains the endpoints for all services the user/tenant has

        # access to - such as Compute, Image Service, Identity, Object Storage, Block

        # Storage, and Networking (code-named nova, glance, keystone, swift,

        # cinder, and neutron).

        #

        # *NOTE*: Using the 3 *Identity API* does not necessarily mean any other

        # OpenStack API is version 3. For example, your cloud provider may implement

        # Image API v1.1, Block Storage API v2, and Compute API v2.0. OS_AUTH_URL is

        # only for the Identity API served through keystone.

        export OS_AUTH_URL=https://upper-austria.ventuscloud.eu:443/v3

        # With the addition of Keystone we have standardized on the term **project**

        # as the entity that owns the resources.

        export OS_PROJECT_ID=681b1b8861fb45e899953da558f22f37

        export OS_PROJECT_NAME="Test1:TestPr"

        export OS_USER_DOMAIN_NAME="ventus"

        if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi

        export OS_PROJECT_DOMAIN_ID="e1780e7170674d5684076a726f683cfd"

        if [ -z "$OS_PROJECT_DOMAIN_ID" ]; then unset OS_PROJECT_DOMAIN_ID; fi

        # unset v2.0 items in case set

        unset OS_TENANT_ID

        unset OS_TENANT_NAME

        # In addition to the owning entity (tenant), OpenStack stores the entity

        # performing the action as the **user**.

        export OS_USERNAME="Test1:testCLIuser"

        # With Keystone you pass the keystone password.

        echo "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: "

        read -sr OS_PASSWORD_INPUT

        export OS_PASSWORD=$OS_PASSWORD_INPUT

        # If your configuration has multiple regions, we set that information here.

        # OS_REGION_NAME is optional and only valid in certain environments.

        export OS_REGION_NAME="Upper-Austria"

        # Don't leave a blank variable, unset it if it was empty

        if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi

        export OS_INTERFACE=public

        export OS_IDENTITY_API_VERSION=3
  • Execute openrc starting with dot:
    . openrc
  • Provide the password of the created CLI User and hit Enter - this password will be used to authenticate you in the Cloud Console.

Edit a CLI User 

To edit a CLI User you need to do the following:

  • identify CLI User you want to edit on the CLI Users page;
  • click on the Actions icon  ssh9  and select the Edit in the list of available options;
  • on the next opened Edit CLI User window, update the CLI User Name and click on the SAVE  icon:

cli6

After these steps, the selected CLI User Name will be updated.

Change the password of the CLI User 

To change the password of the CLI User you need to do the following:

  • identify CLI User whose password you want to change on the CLI Users page;
  • click on the Actions icon  ssh9  and select the Change password in the list of available options;
  • on the next opened Change password window, update come up with the new password (it must contain at least one Latin letter in upper case (A-Z), one Latin letter in lower case (a-z), digit (0-9) and special character ( !"#$%&'()*+,-./:;<=>?@[]^_`{|}~) and must be at least 8 characters long), confirm it and click on the SAVE  icon:

cli7

After these steps, the password of the selected CLI User will be updated.

Delete a CLI User 

To delete a CLI User  you need to do the next:

  • identify this unnecessary CLI User on the CLI Users page;
  • click on the Actions icon  ssh9  and select the Delete in the list of available options;
  • on the next opened Confirmation window confirm the CLI User deletion:

cli8

After these steps, the selected CLI User will be deleted.