# How to find Organisation Edgegateway UUID
##Steps:
* vcloud authorization
curl -v -X POST -d '' -H "Accept: application/*+xml;version=5.1"
-u "{username}@vcloud-org-name:**********"
https://vendor-api-url.net/sessions
The above returns the following information in response
`x-cloud-authorization` and
``
* List organisations
curl -v --insecure
-H "x-vcloud-authorization: {x-vcloud-auth-code}"
-H "Accept: application/*+xml;version=5.1"
"https://vendor-api-url.net/org/"
This gives the list of organizations you have access to, and you can choose the one you need by using the name attribute ``
* Get details of the organisation
curl -v --insecure -H "x-vcloud-authorization: {x-vcloud-auth-code}"
-H "Accept: application/*+xml;version=5.1"
"https://vendor-api-url.net/org/{org-code}"
* This also gives details about various vdc. We would need the one for management vdc:
* Retrieve edgegateway record
curl -v --insecure -H "x-vcloud-authorization: {x-vcloud-auth-code}="
-H "Accept: application/*+xml;version=5.1"
"https://vendor-api-url.net/admin/vdc/{management-edgegateway-uuid}/edgeGateways"
* Response of the above is (from which you would need the id in the href attribute):
*e.g. https://vendor-api-url.net/admin/edgeGateway/{id}*