[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Get Token
DescriptionGets token associated with this session.
Request
URLURL
https://{api_host}/cloudapi/1.0.0/sessions/{id:((?!provider|current).)*}/token
Path Parameters
Path Parameters
string
id
Required
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
Token
of type(s) application/json;version=36.3
{
"expirationTimeUtc": "string",
"id": "string",
"name": "string",
"org": {
"id": "string",
"name": "string"
},
"orgName": "string",
"owner": {
"id": "string",
"name": "string"
},
"token": "string",
"type": "string",
"userId": "string",
"username": "string"
}
string
id
Required
ID of this token. Sorting on this field is not supported.
string
name
Required
Name of the token
string as date-time
expirationTimeUtc
Optional
Time stamp representing when the token will expire (in UTC).
string
orgName
Optional
Name of the organization that the assigned user belongs to. Sorting and filtering on this field is not supported.
string
token
Optional
User specific token that can be used to access proxies. Sorting on this field is not supported.
string
type
Optional
Type of the token. Can be of type PROXY or EXTENSION
string
userId
Optional
ID of the user that this token is assigned to. Sorting on this field is not supported. Can not be updated.
string
username
Optional
Name of the user that this token is assigned to.
Errors
Error
400
Invalid configuration.
Error
404
The specified resource was not found
Code Samples
cURL Command
curl https://{api_host}/cloudapi/1.0.0/sessions/{id:((?!provider|current).)*}/token
[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Availability
Added in 33.0
On This Page
Sessions Operations
get
get
post
delete
delete
post