--- http_interactions: # Get service context <% user_name = vsphere_username.split('@').reverse.join('\\'); full_name = vsphere_username.split('@').join(' ') %> - request: method: post uri: https://<%= vsphere_server %>/sdk body: encoding: UTF-8 string: <_this type="ServiceInstance">ServiceInstance headers: Content-Type: - text/xml; charset=utf-8 Soapaction: - urn:vim25/6.7 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Date: - Tue, 16 Apr 2019 11:10:51 GMT Cache-Control: - no-cache Connection: - Keep-Alive Content-Type: - text/xml; charset=utf-8 X-Frame-Options: - DENY Content-Length: - '4429' body: encoding: UTF-8 string: |- group-d1propertyCollectorViewManagerVMware vCenter ServerVMware vCenter Server 6.7.0 build-8170161VMware, Inc.6.7.08170161INTL000linux-x64vpxVirtualCenter6.7881e901f-7c49-44ba-a6f4-af760093bb37VMware VirtualCenter Server6.0VpxSettingsUserDirectorySessionManagerAuthorizationManagerServiceMgrPerfMgrScheduledTaskManagerAlarmManagerEventManagerTaskManagerExtensionManagerCustomizationSpecManagerCustomFieldsManagerDiagMgrLicenseManagerSearchIndexFileManagerDatastoreNamespaceManagervirtualDiskManagerSnmpSystemProvCheckerCompatCheckerOvfManagerIpPoolManagerDVSManagerHostProfileManagerClusterProfileManagerMoComplianceManagerLocalizationManagerStorageResourceManagerguestOperationsManagerOverheadMemoryManagercertificateManagerIoFilterManagerVStorageObjectManagerHostSpecificationManagerCryptoManagerHealthUpdateManagerFailoverClusterConfiguratorFailoverClusterManager http_version: recorded_at: Tue, 16 Apr 2019 11:10:52 GMT # login - request: method: post uri: https://<%= vsphere_server %>/sdk body: encoding: UTF-8 string: <_this type="SessionManager">SessionManager<%= vsphere_username %><%= vsphere_password %> headers: Content-Type: - text/xml; charset=utf-8 Soapaction: - urn:vim25/6.7 Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Date: - Tue, 16 Apr 2019 11:10:51 GMT Set-Cookie: - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; Secure; Cache-Control: - no-cache Connection: - Keep-Alive Content-Type: - text/xml; charset=utf-8 X-Frame-Options: - DENY Content-Length: - '836' body: encoding: UTF-8 string: |- 5207b512-8abd-2dbc-5154-994b3838139a<%= user_name %><%= full_name %>2019-04-16T11:10:51.713677Z2019-04-16T11:10:51.713677Zenenfalse127.0.0.1Ruby0 http_version: recorded_at: Tue, 16 Apr 2019 11:10:52 GMT # Retrieve session - request: method: post uri: https://<%= vsphere_server %>/sdk body: encoding: UTF-8 string: <_this type="PropertyCollector">propertyCollectorSessionManagercurrentSessionSessionManager headers: Content-Type: - text/xml; charset=utf-8 Soapaction: - urn:vim25/6.7 Cookie: - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; Secure; Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Date: - Tue, 16 Apr 2019 11:10:51 GMT Cache-Control: - no-cache Connection: - Keep-Alive Content-Type: - text/xml; charset=utf-8 X-Frame-Options: - DENY Content-Length: - '989' body: encoding: UTF-8 string: |- SessionManagercurrentSession5207b512-8abd-2dbc-5154-994b3838139a<%= user_name %><%= full_name %>2019-04-16T11:10:51.713677Z2019-04-16T11:10:51.713677Zenenfalse10.40.204.30Ruby0 http_version: recorded_at: Tue, 16 Apr 2019 11:10:52 GMT