Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

API token login

Overview

In this manual, you will find detailed information on preparing information, creating a Token on the vCD portal, and creating a Bearer token.

Procedure

1

Step 1: Prepare Information

* Login IAM portal -> vCD portal: collect the information

  • {{vcd_url}}

  • {{tenant_name}}

Ex: https://iaas-hcmc02.higiocloud.vn/tenant/”tenant_name”/vdcs/dashboard

2

Step 2: Create Token on vCD portal

  • Login IAM portal -> vCD portal -> User preferences

  • API tokens -> New

Copy token ({{api-token-generated}})

3

Step 3: Creating a Bearer token

  • POST https://{{vcd_url}}/oauth/tenant/{{tenant_name}}/token

  • Authorization: No Auth

  • Headers:

- 'Accept: application/json'

- 'Content-Type: application/x-www-form-urlencoded'

  • Body:

raw: 'grant_type=refresh_token&refresh_token={{api-token-generated}}'

  • SEND request.

Response body: "access_token" (Bearer token)

Last updated