# List of all available resources for RBAC roles

**URL:** <https://discuss.kubernetes.io/t/list-of-all-available-resources-for-rbac-roles/21964>\
**Category:** General Discussions\
**Tags:** docs, security\
**Created:** [November 16, 2022, 6:15pm UTC](https://discuss.kubernetes.io/t/list-of-all-available-resources-for-rbac-roles/21964 "2022-11-16T18:15:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Ling](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/ian_ling/32/11193_2.png) [@Ian\_Ling](https://discuss.kubernetes.io/u/Ian_Ling)\
**Post date:** [November 16, 2022, 6:15pm UTC](https://discuss.kubernetes.io/t/list-of-all-available-resources-for-rbac-roles/21964/1 "2022-11-16T18:15:13Z")

</div>

I am trying to write an RBAC role and need to list the resources I want this role to have access to.

The docs for writing an RBAC role use `pods/log` as an example of a resource.

Without looking at the official example RBAC role, how would one know that `pods/log` is something that I can add to my RBAC role? What command could I run that would return `pods/log` (among other resource names)? What online documentation lists `pods/log` (among others) as an option?

I ask because I cannot find a way for an administrator to actually find and list all of the available resources.

AWS, for example, provides this page that lists all of the S3-related permissions, such as `CreateBucket`: [Actions, resources, and condition keys for Amazon S3 - Service Authorization Reference](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html)

Is there equivalent documentation for k8s?

---

<div class="post-metadata">

**Author:** ![Pranay\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/pranay_sharma/32/11601_2.png) [@Pranay\_Sharma](https://discuss.kubernetes.io/u/Pranay_Sharma)\
**Post date:** [January 13, 2023, 2:33am UTC](https://discuss.kubernetes.io/t/list-of-all-available-resources-for-rbac-roles/21964/2 "2023-01-13T02:33:12Z")

</div>

kubectl api-resources ?
