McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 565

↗ View in doc context
page
565
source
unity-connection/rest-api/cupi/cupi.md
chunk_id
unity-connection::rest-api::cupi::cupi::531

You can set the search scope of a directory handler by defining only search scope and search scope object ID. The search scope object Id can have these references, COS object Id, location object Id, distribution list, and search space object ID. Example 1: Update the Search Scope of a Directory Handler to a Class of Service To update the search scope of a directory handler to a class of service, you must obtain the COS object ID. GET https://<connection-server>/vmrest/coses The following is an example of the PUT request to update the directory handler to COS object ID: Request URI PUT https://<connection-server>/vmrest/handlers/directoryhandlers/<directoryHandlerObjectId> Request Body: <DirectoryHandler> <SearchScope>5</SearchScope> <SearchScopeObjectId>03815b4e-3b88-48b3-918d-91a9d1673880</SearchScopeObjectId> </DirectoryHandler> Response Code: 204 Example 2: Update the Search Scope of a Directory Handler to Entire Server To update the search scope of a directory handler to entire server, you must obtain the location of the object id of the connection server: GET https://<connection-server>/vmrest/locations/connectionlocations The following is an example of the PUT request to update the directory handler to entire server: Request URI: PUT https://<connection-server>/vmrest/handlers/directoryhandlers/<directoryHandlerObjectId> Request Body: <DirectoryHandler> <SearchScope>0</SearchScope> <SearchScopeObjectId>08b0402c-ba81-4f16-bcba-ca7883de0482</SearchScopeObjectId> </DirectoryHandler> Response Code: 204 Example 3: Update the Search Scope of a Directory Handler to Inherit Search Scope from Call The following is an example of the PUT request to update the search scope of directory handler to inherit search scope from call: Request URI: PUT https://<connection-server>/vmrest/handlers/directoryhandlers/<directoryHandlerObjectId> Request Body: <DirectoryHandler> <SearchScope>7</SearchScope> </DirectoryHandler> Cisco Unity Connection Provisioning Interface (CUPI) API 533 Cisco Unity Connection Provisioning Interface (CUPI) API--Directory Handler APIs Updating the Search Scope of the Directory Handler