An OCI user is created using the configure cloudconnectoruser <username> command.

To create the OCI user:

Procedure

  1. Log in to the CLI shell.
  2. Execute the configure cloudconnectoruser <username> command.
  3. Enter the following details:

    The oci_credentials to enter the mentioned submode are as follows:

    • user : The user OCID.

    • key_content: The private key content for signing AP (replace every next line with \n character while copying the key content in quotes).

    • pass_phrase: The pass_phrase for the private key (only if key is encrypted).

    • fingerprint: The fingerprint generated after adding the public key in the OCI console.

    admin@10-0-0-77:~$ shell
    Login: admin
    Password:
    [admin:10-0-0-77]: > configure cloudconnectoruser ocuser
    [admin:10-0-0-77]: cloudconnectoruser> oci_credentials
    fingerprint   API key with respect to the Public Key                                                                                                                    
    key_content   Private Key file (pem file) content                                                                                                                       
    pass_phrase   Pass phrase for the key                                                                                                                                   
    user          Oracle Cloud  Id for the User                                                                                                                             
    [admin:10-0-0-77]: cloudconnectoruser> oci_credentials

Results

To view the cloudconnectoruser ocuser configuration:

[admin:10-0-0-77]: > show ipamdnsproviderprofile prof1 
+----------------+------------------------------------------------------------+
| Field          |    Value                                                    |       
+----------------+-------------------------------------------------------------+
|uuid            |ipamdnsproviderprofile-d67ad96c-8bbf-48ff-ab40-5580621c1c69  |
|name            |prof1                                                        |
|type            |IPAMDNS_TYPE_OCI                                             |
|oci_profile     |                                                             |
| tenancy        |ocid1.tenancy.oc1..aaaaaaaay7s6icq755xqlytpl33i7ysjzzb2kv3vk3| |                |itg5ilsxanrzqmsaha                                           |
| region         |us-phoenix-1                                                 |
| cloud_         |ocuser                                                       |                                                                                                                                      
| credentials_ref|ocid1.compartment.oc1..aaaaaaaa5trt72k3smsky7fz27gqlucbfa2lmy|                                                           |                |nshky4hl4r7gom6wcphmrq                                       |
| vcn_id         |ocid1.vcn.oc1.phx.aaaaaaaangx3fookzumnhck3st5obrruwsmxiqgtx2i|  
|                |c7zoharlhwi262gla                                            |
|allocate_ip_in  |False                                                        |                                             
|_vrf            |                                                             |
|tenant_ref      |admin                                                        |
+----------------+-------------------------------------------------------------+