The IPAM profile is created using the OCI credentials.

To create the IPAM profile:

Procedure

  1. Log in to the CLI shell.
  2. Execute the configure ipamdnsproviderprofile <profile name> command.
  3. Enter the following details:
    • type: Set the value as IPAMDNS_TYPE_OCI

    • oci_profile:

      • tenancy: tenancy OCID

      • region : OCI region name

      • cloud_credentials_ref : The reference to the cloud connector user created in the previous section. Use the Tab key to list the users.

      • vcn_compartment_id : Compartment OCID of the the VCN

      • vcn_id : VCN OCID

    admin@10-0-0-77:~$ shell
    Login: admin
    Password:
    [admin:10-0-0-77]: > configure ipamdnsproviderprofile ocprof
    [admin:10-0-0-77]: > configure ipamdnsproviderprofile ocprof2
    [admin:10-0-0-77]: ipamdnsproviderprofile> type ipamdns_type_oci
    cloud_credentials_ref   Credentials to access oracle cloud                                                                                                              
    region                  Region in which Oracle cloud resource resides                                                                                                   
    tenancy                 Oracle Cloud Id for tenant aka root compartment                                                                                                 
    vcn_compartment_id      Oracle cloud compartment id in which VCN resides                                                                                                
    vcn_id                  Virtual Cloud network id where virtual ip will belT

Results

To view the OCI IPAM 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..aaaaaaaay7s6icq755xqlytpl33i7ysjzzb2kv3vk|
|                 |itg5ilsxanrzqmsaha                                          |
|   region        |us-phoenix-1                                                |
|  cloud_         | ocuser                                                     | 
|  credentials_ref|                                                            |
|  vcn_compartment|ocid1.compartment.oc1..aaaaaaaa5trt72k3smsky7fz27gqlucbfa2l |
|_id              |mynshky4hl4r7gom6wcphmrq                                    | 
|  vcn_id         |ocid1.vcn.oc1.phx.aaaaaaaangx3fookzumnhck3st5obrruwsmxiqgtx |
|                 |2ic7zoharlhwi262gla                                         |
|allocate_ip_in_  |False                                                       |
|vrf              |                                                            |
|tenant_ref       |admin                                                       |
+-----------------+------------------------------------------------------------+