Method: OpenapiClient::ResourceRolesApi#list_resource_roles

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

#list_resource_roles(proj_id, env_id, resource_id, opts = {}) ⇒ Array<ResourceRoleRead>

List Resource Roles Lists all the roles defined on the resource.

Parameters:

  • proj_id (String)

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

  • env_id (String)

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

  • resource_id (String)

    Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the &quot;slug&quot;).

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

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    Page number of the results to fetch, starting at 1. (default to 1)

  • :per_page (Integer)

    The number of results per page (max 100). (default to 30)

Returns:



458
459
460
461
# File 'lib/openapi_client/api/resource_roles_api.rb', line 458

def list_resource_roles(proj_id, env_id, resource_id, opts = {})
  data, _status_code, _headers = list_resource_roles_with_http_info(proj_id, env_id, resource_id, opts)
  data
end