Authentication and Authorization

The Oracle Communications Unified Inventory Management (UIM) REST API uses HTTP Basic authentication, which requires a base64-encoded value of a UIM user's ID and password to authenticate requests.

To set up your requests for Basic authentication:

  1. Generate a base64-encoded value of a UIM user's ID and password joined by a single colon (ID:password). For information about creating a UIM user, see "Task 2: Create a User".

    For example, if the ID is Aladdin and the password is OpenSesame, the base64-encoding of Aladdin:OpenSesame would be QWxhZGRpbjpPcGVuU2VzYW1l.

  2. Pass the base64-encoded value in the header of every REST request sent to UIM REST API services.

    For example, to run a GET request for a logical device:

    curl -X GET http://hostname:port/InventoryRSOpenAPI/resourceInventoryManagement/version/logicalDevice/1-11111 -H Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l

    where:

    • hostname is the URL for the UIM server.

    • port is the port for the Oracle Communications UIM server.
    • version is the version of the API you're using, such as v1. See Versioning.