We want to revoke a tenant's authorization to access a private image.

Continuing from the example above, in order to revoke the access of 'tenant1' to the image with ID 1, we can use the following code

from glance.client import Client

c = Client("glance.example.com", 9292)

c.delete_member(1, 'tenant1')

..note:

The return value of Client.delete_member() is not significant.


loading table of contents...