Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * VixDiskLibConnectParams - Connection setup parameters.
- *
- * vmxSpec is required for opening a virtual disk on a datastore through
- * the Virtual Center or ESX server.
- * vmxSpec is of the form:
- * <vmxPathName>?dcPath=<dcpath>&dsName=<dsname>
- * where
- * vmxPathName is the fullpath for the VMX file,
- * dcpath is the inventory path of the datacenter and
- * dsname is the datastore name.
- *
- * Inventory path for the datacenter can be read off the Virtual Center
- * client's inventory tree.
- *
- * Example VM spec:
- * "MyVm/MyVm.vmx?dcPath=Path/to/MyDatacenter&dsName=storage1"
- */
- typedef struct {
- char *vmxSpec; // URL like spec of the VM.
- char *serverName; // Name or IP address of VC / ESX.
- char *thumbPrint; // SSL Certificate thumb print.
- long privateUse; // This value is ignored.
- VixDiskLibCredType credType;
- union VixDiskLibCreds {
- struct VixDiskLibUidPasswdCreds {
- char *userName; // User id and password on the
- char *password; // VC/ESX host.
- } uid;
- struct VixDiskLibSessionIdCreds { // Not supported in 1.0
- char *cookie;
- char *userName;
- char *key;
- } sessionId;
- struct VixDiskLibTicketIdCreds *ticketId; // Internal use only.
- } creds;
- uint32 port; // port to use for authenticating with VC/ESXi host
- uint32 nfcHostPort; // port to use for establishing NFC connection to ESXi host
- char *vimApiVer; // VIM API version to use, private
- } VixDiskLibConnectParams;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement