[{"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

Description

Gets token associated with this session.

Request

Request

URL

URL


get
https://{api_host}/cloudapi/1.0.0/sessions/{id:((?!provider|current).)*}/token
Copy

Path Parameters

Path Parameters

string
id Required

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response 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).


org Optional

Entity reference used to describe VCD entities


string
orgName Optional

Name of the organization that the assigned user belongs to. Sorting and filtering on this field is not supported.


owner Optional

Owner of the token. Either a user or an extension


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

Errors

Error
400

Invalid configuration.


Error
404

The specified resource was not found

Code Samples

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
Feedback

Was this page helpful?