[{"label":"Latest (5.0.0)","version":"latest"},{"version":"4.5.1"},{"version":"4.5.0"},{"version":"4.4.0"},{"version":"4.3.1"},{"link":"https://developer.vmware.com/apis/1127/vmware-cloud-foundation","version":"4.3"},{"link":"https://developer.vmware.com/apis/1078/vmware-cloud-foundation","version":"4.2"},{"link":"https://developer.vmware.com/apis/1033/vmware-cloud-foundation","version":"4.1"},{"link":"https://developer.vmware.com/apis/1003/vmware-cloud-foundation","version":"4.0.1"},{"link":"https://developer.vmware.com/apis/939/vmware-cloud-foundation","version":"4.0"}]
vcf-for-vxrail

Create Token

Description

Creates access token and refresh token for user access

Request

Request

URL

URL


post
https://sfo-vcf01.rainpole.io/v1/tokens
Copy

Request Body

Request Body

TokenCreationSpec of type(s) application/json Required

The spec used to sign the token

{
	"apiKey": "string",
	"password": "string",
	"username": "string"
}
string
apiKey Optional

API Key


string
password Optional

User Password


string
username Optional

Username

Response

Response

200 OK Response Body>

Response Body

200 OK

Returns TokenPair of type(s) application/json
{
	"accessToken": "string",
	"refreshToken": {
		"id": "string"
	}
}
string
accessToken Optional

Bearer token that can be used to make public API calls


refreshToken Optional

Refresh token that can be used to request new access token


201 Created Response Body>

Response Body

201 Created

Returns TokenPair of type(s) application/json
{
	"accessToken": "string",
	"refreshToken": {
		"id": "string"
	}
}
string
accessToken Optional

Bearer token that can be used to make public API calls


refreshToken Optional

Refresh token that can be used to request new access token

Errors

Errors

Error
400

Bad Request


Error
500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"apiKey":"string","password":"string","username":"string"}' https://sfo-vcf01.rainpole.io/v1/tokens


[{"label":"Latest (5.0.0)","version":"latest"},{"version":"4.5.1"},{"version":"4.5.0"},{"version":"4.4.0"},{"version":"4.3.1"},{"link":"https://developer.vmware.com/apis/1127/vmware-cloud-foundation","version":"4.3"},{"link":"https://developer.vmware.com/apis/1078/vmware-cloud-foundation","version":"4.2"},{"link":"https://developer.vmware.com/apis/1033/vmware-cloud-foundation","version":"4.1"},{"link":"https://developer.vmware.com/apis/1003/vmware-cloud-foundation","version":"4.0.1"},{"link":"https://developer.vmware.com/apis/939/vmware-cloud-foundation","version":"4.0"}]
vcf-for-vxrail
Feedback

Was this page helpful?