Method: OpenStack::Identity::ConnectionV3#list_tenants
- Defined in:
- lib/openstack/identity/connection_v3.rb
#list_tenants ⇒ Object Also known as: tenants
4 5 6 7 8 |
# File 'lib/openstack/identity/connection_v3.rb', line 4 def list_tenants response = @connection.req('GET', '/projects') tenants_hash = JSON.parse(response.body)['projects'] tenants_hash.map { |res| OpenStack::Identity::Tenant.new(res) } end |