OCI 用户是使用 configure cloudconnectoruser <username> 命令创建的。

要创建 OCI 用户,请执行以下操作:

过程

  1. 登录到 CLI Shell。
  2. 执行 configure cloudconnectoruser <username> 命令。
  3. 输入以下详细信息:

    用于进入提到的子模式的 oci_credentials 如下所示:

    • user:用户 OCID

    • key_content:用于对 AP 进行签名的私钥内容(在复制引号内的密钥内容时,将下面的每一行替换为 \n 字符)

    • pass_phrase:私钥的 pass_phrase(仅在对密钥进行加密时)

    • fingerprint:在 OCI 控制台中添加公钥后生成的指纹

    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

结果

要查看 cloudconnectoruser ocuser 配置,请运行以下命令:

[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                                                        |
+----------------+-------------------------------------------------------------+