cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Aradhye <gaurav.arad...@clogeny.com>
Subject Re: <Discuss> List APIs Behavior
Date Fri, 08 Aug 2014 08:44:08 GMT
Hello,

Can somebody please address this query?

Regards,
Gaurav


On Thu, Aug 7, 2014 at 10:23 PM, Gaurav Aradhye <gaurav.aradhye@clogeny.com>
wrote:

> I want to understand the output of the list APIs when the entity is not
> present / deleted. Suppose I create an account, create a network within it
> and acquire a public IP address in the network.
>
> 1) ListPublicIpAddresses  - public ip id passed, returns public IP
> 2) ListPublicIpAddresses - account, domainid passed, returns public IP
>
> Now I delete the public IP (Disassociate).
>
> After this operation, I expect following results:
> 1) ListPublicIpAddreses - account,domain id passed, result: None (assuming
> there was only one)
> 2) ListPublicIpAddresses - public ip id passed, I expect exception here
> because the id must have been removed from DB. But I get "None" as result
> here.
>
> If I get None, then can I assume that id is still present in DB but it is
> marked as obsolete?
>
> When can I expect an exception in return? And when can I expect None?
> Ideally, when we search by Id, then exception should be thrown and when we
> expect by passing account/domainid/projectid/networkid etc, then None
> should be returned. Do all List APIs follow a similar guideline?
>
> Regards,
> Gaurav
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message