Method: OpenapiClient::TenantsApi#get_tenant

Defined in:
lib/openapi_client/api/tenants_api.rb

#get_tenant(proj_id, env_id, tenant_id, opts = {}) ⇒ TenantRead

Get Tenant Gets a tenant, if such tenant exists. Otherwise returns 404.

Parameters:

  • proj_id (String)

    Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

  • env_id (String)

    Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

  • tenant_id (String)

    Either the unique id of the tenant, or the URL-friendly key of the tenant (i.e: the "slug").

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



265
266
267
268
# File 'lib/openapi_client/api/tenants_api.rb', line 265

def get_tenant(proj_id, env_id, tenant_id, opts = {})
  data, _status_code, _headers = get_tenant_with_http_info(proj_id, env_id, tenant_id, opts)
  data
end