Skip to content

Instantly share code, notes, and snippets.

@nohtyp
Created November 21, 2019 14:36
Show Gist options
  • Save nohtyp/8d28a8c9c2e0dbbc485dda5a2d4018b6 to your computer and use it in GitHub Desktop.
Save nohtyp/8d28a8c9c2e0dbbc485dda5a2d4018b6 to your computer and use it in GitHub Desktop.
curl_vcenter_rest_api
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-use-header-authn: test' --header 'vmware-api-session-id: null session' 'https://<vcenter>/rest/com/vmware/cis/session' -k -u <username>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment