[{"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
DescriptionCreates access token and refresh token for user access
Request
URLURL
https://sfo-vcf01.rainpole.io/v1/tokens
Request Body
Request Body
{
"apiKey": "string",
"password": "string",
"username": "string"
}
string
apiKey
Optional
API Key
string
password
Optional
User Password
string
username
Optional
Username
Response
201 Created Response Body>
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
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
Errors
Error
400
Bad Request
Error
500
Internal Server Error
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