Request an oAuth SessionToken

  1. Select POST as the Verb.
  2. Enter https://{your_tenant_fqdn}/SAAS/API/1.0/REST/auth/system/login for the Request URL.
    NOTE: Remember to replace {your_tenant_fqdn} with your IDM Tenant FQDN.
  3. Click the Headers tab.
  4. Enter "Content-Type" into the Key field and "application/json" into the Value field.
  5. Enter "Accept" into the Key field and "application/json" into the Value field.

1. Setup the Request Body

  1. Click the Body tab.
  2. Select Raw.
  3. Enter the below JSON data for the Body.
  4. Click Send.
{"username":"Administrator", "password":"VMware1!","issueToken":"true"}

 

2. View the API Response

  1. Scroll down to view the response.
  2. Click the Pretty formatting option.
  3. Ensure Word Warp is enabled to make the response easier to read.
  4. In the response, you will see a sessionToken field.  This is the oAuth key we will use to authenticate to the API for the remainder of this lab.  Highlight the text (NOT the quotation marks) and right-click.
  5. Click Copy.

3. Save the SessionToken Value

  1. Click the Windows button.
  2. Type "notepad" to search.
  3. Click Notepad from the list of results.

3.1. Enable Word Wrap

  1. Click Format.
  2. Click Word Wrap.

3.2. Paste the Session Token

  1. Type "sessionToken: " into the Notepad file.
  2. Right-click and click Paste.

If you need to refer back to your sessionToken for future steps, open your Notepad file and copy the sessionToken that is pasted here.

0 Comments

Add your comment

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