Created/Deleted-by Parent-data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Created/Deleted-by Parent-data

Martins, Tiago

Hi!

I just want to make sure of one thing.

The created/deleted_by has the information of the user performing the action and user role, your examples were always a dict like {“user-id”: “user-id”, “role”:”role-id”}. But I was looking at the identity api method get_roles_for_user_and_domain and it returns a list of roles for a given user in a given domain. So our dict looks something like 
{“user-id”:”uuid-value”, “roles-id”:[“uuid-value”,”uuid-value”]}
 
For the parent data, I have to inform the domain admin of a given domain, but a domain can have more than one admin and your examples were always a dict like {“user-id”:”uuid-value”, “role”:”uuid-value} and a user may have many roles. So parent-data may be a dict of dicts: 
{“user uuid-value”:{ “roles-id”:[“uuid-value”,”uuid-value”]}, “user uuid-value”:{ “roles-id”:[“uuid-value”,”uuid-value”]}}
 
So, how this look for you?

 

Cheers,

Tiago Martins
Software Engineer
BR R&D

[hidden email]
T +55 51 3205 7673
Hewlett-Packard Company
6681 Ipiranga Ave. Bld 95 - 6th floor
Porto Alegre, RS, 90619-900
Brazil

HP_Blue_RGB_150_MN

Please print thoughtfully

 


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: Created/Deleted-by Parent-data

Martins, Tiago

Sorry for this – it went to the wrong list. I’m very embarrassed.

 

Thanks,

Tiago

 

From: Martins, Tiago
Sent: terça-feira, 9 de julho de 2013 13:50
To: [hidden email]
Subject: Created/Deleted-by Parent-data

 

Hi!

I just want to make sure of one thing.

The created/deleted_by has the information of the user performing the action and user role, your examples were always a dict like {“user-id”: “user-id”, “role”:”role-id”}. But I was looking at the identity api method get_roles_for_user_and_domain and it returns a list of roles for a given user in a given domain. So our dict looks something like 
{“user-id”:”uuid-value”, “roles-id”:[“uuid-value”,”uuid-value”]}
 
For the parent data, I have to inform the domain admin of a given domain, but a domain can have more than one admin and your examples were always a dict like {“user-id”:”uuid-value”, “role”:”uuid-value} and a user may have many roles. So parent-data may be a dict of dicts: 
{“user uuid-value”:{ “roles-id”:[“uuid-value”,”uuid-value”]}, “user uuid-value”:{ “roles-id”:[“uuid-value”,”uuid-value”]}}
 
So, how this look for you?

 

Cheers,

Tiago Martins
Software Engineer
BR R&D

[hidden email]
T +55 51 3205 7673
Hewlett-Packard Company
6681 Ipiranga Ave. Bld 95 - 6th floor
Porto Alegre, RS, 90619-900
Brazil

HP_Blue_RGB_150_MN

Please print thoughtfully

 


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev