The VMware Storage Policy client API is described in the WSDL (Web Service Definition Language) file that is included in the VMware Storage Policy SDK. This API defines a set of request operations that you use to manipulate storage profiles. The VMware Storage Policy SDK includes Java bindings for the VMware Storage Policy WSDL.To gain access to the Storage Policy Server, your client connects to a vCenter Server and obtains the vCenter session cookie. Then you can use the vCenter session cookie to establish the connection with the Storage Policy Server. See Establish a Connection with the VMware Storage Policy Server.After you establish a Storage Policy Server connection, your client uses language-specific Web Services access objects and the PbmServiceInstance and PbmServiceInstanceContent objects to access the Storage Policy managed objects and their methods.The Storage Policy Web Services access objects are language-specific API binding objects that are generated from the Storage Policy WSDL. The VMware Storage Policy SDK contains JAXWS bindings to the Storage Policy API. The JAXWS bindings include the PbmService and PbmPortType Web Services access objects.
■ PbmService – Provides access to the PbmPortType object and it provides support for the Storage Policy Service connection.
■ PbmPortType – Provides access to Storage Policy methods.Example: Access to Storage Policy API MethodsThe following figure shows the PbmServiceInstanceContent data object and the Storage Policy managed objects that provide access to Storage Policy services.The PbmServiceInstanceContent object contains managed object references to the Storage Policy services. The set of Storage Policy services include the profile manager, placement solver, and compliance manager.