[{"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
Grant Device Authorization
DescriptionGrants access to service account identified by the specified user code. Subsequent polling by the device will result in access token to be transmitted as per device code flow specification
Request
URLURL
https://{api_host}/cloudapi/1.0.0/deviceLookup/grant
Request Body
Request Body
DeviceInfo
of type(s) application/json
Required
{
"userCode": "string"
}
string
userCode
Optional
User code associated with device authorization requests.
Authentication
This operation uses the following authentication methods.
No error details were provided in the OpenAPI specification.
Code SamplesCode Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"userCode":"string"}' https://{api_host}/cloudapi/1.0.0/deviceLookup/grant
[{"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 37.0