public static Task Undeploy( vCloudClient client, ReferenceType _ref, UndeployPowerActionType undeployPowerAction) { try { string actionUrl = _ref.href + "/action/undeploy"; string unDeployParamBody = AbstractVapp <T> .CreateVappUnDeployParamBody(undeployPowerAction); return(AbstractVapp <T> .ExecuteAbstractVappAction(client, actionUrl, unDeployParamBody, "application/vnd.vmware.vcloud.undeployVAppParams+xml", 202)); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task Undeploy(UndeployPowerActionType undeployPowerAction) { try { return(AbstractVapp <T> .ExecuteAbstractVappAction(this.VcloudClient, this.Reference.href + "/action/undeploy", AbstractVapp <T> .CreateVappUnDeployParamBody(undeployPowerAction), "application/vnd.vmware.vcloud.undeployVAppParams+xml", 202)); } catch (Exception ex) { throw new VCloudException(ex.Message); } }