Package com.vmware.vra.jenkinsplugin.vra
Class VraApi
java.lang.Object
com.vmware.vra.jenkinsplugin.vra.VraApi
- All Implemented Interfaces:
Serializable
public class VraApi extends Object implements Serializable
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
VraApi
- Throws:
VRAException
-
VraApi
public VraApi(String url, String domain, String username, String password, boolean trustSelfSignedCert) throws VRAException- Throws:
VRAException
-
VraApi
-
-
Method Details
-
getResourcePattern
-
getCatalogItemByName
- Throws:
VRAException
-
getLatestCatalogItemVersion
- Throws:
VRAException
-
getProjectByName
- Throws:
VRAException
-
getProjectById
- Throws:
VRAException
-
getCatalogItemById
- Throws:
VRAException
-
waitForIPAddresses
public List<String> waitForIPAddresses(String deploymentId, String resourceName, long timeout) throws VRAException, InterruptedException, TimeoutException -
deployFromCatalog
public CatalogItemRequestResponse[] deployFromCatalog(String ciName, String version, String project, String deploymentName, String reason, Map<String,Object> inputs, int count) throws VRAException- Throws:
VRAException
-
getCatalogDeploymentById
public Deployment getCatalogDeploymentById(String deploymentId, boolean expandResources) throws VRAException- Throws:
VRAException
-
getCatalogDeploymentByName
public Deployment getCatalogDeploymentByName(String deploymentName, boolean expandResources) throws VRAException- Throws:
VRAException
-
deleteCatalogDeployment
- Throws:
VRAException
-
waitForCatalogDeployment
public Deployment waitForCatalogDeployment(String deploymentId, long timeout) throws TimeoutException, VRAException, InterruptedException -
getDeploymentRequest
- Throws:
VRAException
-
waitForRequestCompletion
public DeploymentRequest waitForRequestCompletion(String id, long timeout) throws VRAException, TimeoutException, InterruptedException -
waitForRequestCompletion
public List<DeploymentRequest> waitForRequestCompletion(List<String> ids, long timeout) throws VRAException, TimeoutException, InterruptedException -
submitDeploymentAction
public DeploymentRequest submitDeploymentAction(String deploymentId, String actionId, String reason, Map<String,Object> inputs) throws VRAException- Throws:
VRAException
-
submitResourceAction
public DeploymentRequest submitResourceAction(String deploymentId, String resourceId, String actionId, String reason, Map<String,Object> inputs) throws VRAException- Throws:
VRAException
-
getResourcesForDeployment
- Throws:
VRAException
-
getNamedResourcesForDeployment
public List<Resource> getNamedResourcesForDeployment(String deploymentId, String resourceName) throws VRAException- Throws:
VRAException
-
getResourceActionDetails
public ResourceAction getResourceActionDetails(String deploymentId, String resourceId, String actionName) throws VRAException- Throws:
VRAException
-
getResourceActions
public ResourceAction[] getResourceActions(String deploymentId, String resourceId) throws VRAException- Throws:
VRAException
-