Create a Weblink Application in Identity Manager

You can also manage applications in Identity Manager using the API.  Let's explore how to create a weblink type application using the APIs.

1. Setup the Request Headers

  1. Select POST as the verb.
  2. Enter https://{your_tenant_fqdn}/SAAS/jersey/manager/api/catalogitems for the request URL.
    NOTE - Remember to replace {your_tenant_fqdn} with your VMware Identity Manager Tenant Fully Qualified Domain name (FQDN).
  3. Click the Headers tab.
  4. Change the Content-Type Header Value to application/vnd.vmware.horizon.manager.catalog.webapplink+json.
  5. Change the Accept Header Value to application/vnd.vmware.horizon.manager.catalog.webapplink+json.

2. Setup the Request Body

  1. Click the Body tab.
  2. Select Raw.
  3. Leave the Formatting as Text.  Typically you would choose application/json or application/xml, depending on what format you were working in, but changing this to application/json will update the Content-Type header we just updated back to application/json, which will cause the request to fail.  The formatting selection here is only for Postman to assist you in setting up the request correctly, the Text formatting option has no impact on the API request itself.
  4. For the Body, enter the below JSON data.
    { "catalogItemType": "WebAppLink", "uuid": "85c040cf-b389-41a0-9efe-c7ca64f985c4", "packageVersion": "1.0", "name": "API Generated Weblink", "productVersion": null, "description": "Web Link Generated by API Lab", "authInfo": { "type": "WebAppLink", "targetUrl" : "https://www.vmware.com" } }
  5. Click Send.

3. View the API Response

  1. Scroll down to see the response.
  2. Confirm the status shows 201 Created, confirming the application was created.
  3. Click the Body tab.
  4. Find the uuid value in the response, it should match the uuid we provided in our request body (85c040cf-b389-41a0-9efe-c7ca64f985c4).  Highlight this value (NOT including the quotation marks) and right-click.
  5. Click Copy.

We will be using the uuid of the created weblink application

4. Copy the uuid of the Created Application

  1. Click the Notepad icon from the Task bar.
  2. Type Created Application UUID: and right-click at the end of the text.
  3. Click Paste to insert the uuid.

In later steps when prompted to use the created application uuid, refer to the value you've pasted here.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.