Request an oAuth SessionToken
- Select POST as the Verb.
- 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. - Click the Headers tab.
- Enter "Content-Type" into the Key field and "application/json" into the Value field.
- Enter "Accept" into the Key field and "application/json" into the Value field.
1. Setup the Request Body
- Click the Body tab.
- Select Raw.
- Enter the below JSON data for the Body.
- Click Send.
{"username":"Administrator", "password":"VMware1!","issueToken":"true"}
2. View the API Response
- Scroll down to view the response.
- Click the Pretty formatting option.
- Ensure Word Warp is enabled to make the response easier to read.
- 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.
- Click Copy.
3. Save the SessionToken Value
- Click the Windows button.
- Type "notepad" to search.
- Click Notepad from the list of results.
3.1. Enable Word Wrap
- Click Format.
- Click Word Wrap.
3.2. Paste the Session Token
- Type "sessionToken: " into the Notepad file.
- 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