vRA import Web, Manager and vRA Certificates to the vRA Appliance via API
This package import the vRA Certificates to the vRA via API REST call Description: Import vRA Certificates Package: com.vmware.pso.deutschebank.vra.certificate.import
This package import the vRA Certificates to the vRA via API REST call Description: Import vRA Certificates Package: com.vmware.pso.deutschebank.vra.certificate.import
Get events from Loginsight through vRO
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
startDate = Date.parse(startDate); endDate = Date.parse(endDate); System.log(startDate) System.log(endDate) // Get Token for LogInsight API Access var body ={ "username": username, "password": password, "provider": provider } var request = restHost.createRequest("POST","/api/v1/sessions", JSON.stringify(body)); request.setHeader("Content-Type", "application/json"); request.setHeader("Accept", "application/json"); var response = request.execute(); var json = JSON.parse(response.contentAsString); var token = json.sessionId; //var request = restHost.createRequest("GET","/api/v1/events/timestamp/%3E%3D" + startDate + "/timestamp/%3C%3D" + endDate + "/text/CONTAINS%20com.vmware.vc.ha.VmRestartedByHAEvent/com.vmware.vsphere:vmw_vm_vmx_name/EXISTS/com.vmware.vsphere:vmw_opid/EXISTS?content-pack-fields=com.vmware.vsphere&view=SIMPLE" ); // Get VMs restarted by HA Event var request = restHost.createRequest("GET","/api/v1/events/timestamp/%3E%3D" + startDate + "/timestamp/%3C%3D" + endDate + "/vc_details/CONTAINS%20id=com.vmware.vc.ha.vmrestartedbyhaevent?content-pack-fields=com.vmware.vsphere&view=SIMPLE" ); request.setHeader("Content-Type", "application/json"); request.setHeader("Accept", "application/json"); request.setHeader("Authorization", "Bearer " + token); var res = request.execute(); System.debug(res.statusCode) System.debug(JSON.stringify(JSON.parse(res.contentAsString),null,4)) response = res.contentAsString; |
package: com.vmware.loginsight Create new Alert in Log Insight Create an alert in LogInsight which will be send to vROPs. In this case a alert will be generated in case of a new Folder is created in the vCenter Server Define a Notification Event in vROPs Navigate…
vRA Services which can be used via vRA API Service Name used to createRestClient in vRO advanced-designer-service com.vmware.csp.core.designer.service.api approval-service com.vmware.csp.core.cafe.approvals.api authentication com.vmware.csp.cafe.authentication.api authorization com.vmware.csp.cafe.authorization.api branding-service com.vmware.csp.core.branding.service.api catalog-service com.vmware.csp.core.cafe.catalog.api component-registry com.vmware.csp.core.cafe.componentregistry.api composition-service com.vmware.csp.component.cafe.composition.api console-proxy-service com.vmware.csp.component.console.proxy.service.api container-service com.vmware.csp.component.cafe.container.api content-management com.vmware.csp.core.content.service.api endpoint-configuration-service com.vmware.csp.core.endpoint.configuration.api event-broker-service com.vmware.csp.cafe.event.broker.api eventlog-service com.vmware.csp.cafe.eventlog.api fabric-service com.vmware.csp.fabric.cafe.fabric.api forms-service com.vmware.csp.core.cafe.forms.api iaas-proxy-provider com.vmware.csp.component.iaas.proxy.provider.api iaas-service com.vmware.csp.iaas.blueprint.service.api identity com.vmware.csp.core.cafe.identity.api ipam-service…