Account and domainId are not required parameters of this API. It works fine with just an id too.
Account and domain will be used if delete is called providing a name of the group instead of id, say by an admin for a regular user's group. -----Original Message----- From: Prasanna Santhanam [mailto:t...@apache.org] Sent: Wednesday, July 17, 2013 10:12 PM To: CloudStack Dev Subject: deleteAffinityGroup API This API unlike all the other delete APIs in cloudstack needs an account and domainid to delete the cloud resource (affinity group). Any reason why this should flout the semantics of other delete APIs which work with just an id? Signature below: AffinityGroupServiceImpl.java @DB @Override @ActionEvent(eventType = EventTypes.EVENT_AFFINITY_GROUP_DELETE, eventDescription = "Deleting affinity group") public boolean deleteAffinityGroup(Long affinityGroupId, String account, Long domainId, String affinityGroupName) { Thanks, -- Prasanna., ------------------------ Powered by BigRock.com