Skip to content
Snippets Groups Projects
Unverified Commit 2d88dba7 authored by Kody Jackson's avatar Kody Jackson Committed by GitHub
Browse files

[Fundamentals] Api tokens update (#10496)


* Add two tables for token permissions

* Formatted better

* Update names of tabs

* Added reverse sorting from Marcio's feedback

* Update content/fundamentals/_partials/_account-permissions-table.md

Co-authored-by: default avatarmarciocloudflare <83226960+marciocloudflare@users.noreply.github.com>

---------

Co-authored-by: default avatarmarciocloudflare <83226960+marciocloudflare@users.noreply.github.com>
parent b6b619d6
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
---
_build:
publishResources: false
render: never
list: never
inputParameters: editWord
---
| Name | Description |
| --- | --- |
| API Tokens Read | Grants read access to user's [API tokens](/fundamentals/api/reference/permissions/). |
| API Tokens $1 | Grants write access to user's [API tokens](/fundamentals/api/reference/permissions/). |
| Memberships Read | Grants read access to a user's [account memberships](/fundamentals/account-and-billing/members/manage/). |
| Memberships $1 | Grants write access to a user's [account memberships](/fundamentals/account-and-billing/members/manage/). |
| User Details Read | Grants read access to user details. |
| User Details $1 | Grants write access to user details. |
\ No newline at end of file
---
_build:
publishResources: false
render: never
list: never
inputParameters: editWord
---
| Name | Description |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Access: Apps and Policies Read | Grants read access to [Cloudflare Access](/cloudflare-one/policies/access/) zone resources. |
| Access: Apps and Policies Revoke | Grants ability to revoke all tokens to [Cloudflare Access](/cloudflare-one/policies/access/) zone resources. |
| Access: Apps and Policies $1 | Grants write access to [Cloudflare Access](/cloudflare-one/policies/access/) zone resources. |
| Analytics Read | Grants read access to [analytics](/analytics/account-and-zone-analytics/zone-analytics/). |
| API Gateway Read | Grants read access to [API Gateway](/api-shield/) zone resources. |
| API Gateway $1 | Grants write access to [API Gateway](/api-shield/) zone resources. |
| Apps $1 | Grants full access to [Cloudflare Apps](/support/more-dashboard-apps/cloudflare-apps/). |
| Bot Management Read | Grants read access to [Bot Management](/bots/plans/bm-subscription/). |
| Bot Management $1 | Grants write access to [Bot Management](/bots/plans/bm-subscription/). |
| Bot Management Feedback Read | Grants read access to [Bot Management feedback](/bots/concepts/feedback-loop/). |
| Bot Management Feedback $1 | Grants write access to [Bot Management feedback](/bots/concepts/feedback-loop/). |
| Cache Purge | Grants access to [purge cache](/cache/how-to/purge-cache/). |
| Cache Rules Read | Grants read access to [Cache Rules](/cache/how-to/cache-rules/). |
| Cache Rules $1 | Grants write access to [Cache Rules](/cache/how-to/cache-rules/). |
| Config Rules Read | Grants read access to [Configuration Rules](/rules/configuration-rules/). |
| Config Rules $1 | Grants write access to [Configuration Rules](/rules/configuration-rules/). |
| Custom Error Rules Read | Grants read access to [Custom Error Rules](/rules/custom-error-responses/). |
| Custom Error Rules $1 | Grants write access to [Custom Error Rules](/rules/custom-error-responses/). |
| Custom Pages Read | Grants read access to [Custom Pages](/support/more-dashboard-apps/cloudflare-custom-pages/configuring-custom-pages-error-and-challenge/). |
| Custom Pages $1 | Grants write access to [Custom Pages](/support/more-dashboard-apps/cloudflare-custom-pages/configuring-custom-pages-error-and-challenge/). |
| DMARC Management Read | Grants read access to [DMARC Management](/dmarc-management/). |
| DMARC Management $1 | Grants write access to [DMARC Management](/dmarc-management/). |
| DNS Read | Grants read access to [DNS](/dns/). |
| DNS Write | Grants write access to [DNS](/dns/). |
| Dynamic Redirect Read | Grants read access to zone-level [Single Redirects](/rules/url-forwarding/single-redirects/). |
| Dynamic Redirect $1 | Grants write access to zone-level [Single Redirects](/rules/url-forwarding/single-redirects/). |
| Email Routing Rules Read | Grants read access to [Email Routing Rules](/email-routing/setup/email-routing-addresses/). |
| Email Routing Rules $1 | Grants write access to [Email Routing Rules](/email-routing/setup/email-routing-addresses/). |
| Firewall Services Read | Grants read access to Firewall resources. |
| Firewall Services $1 | Grants write access to Firewall resources. |
| Health Checks Read | Grants read access to [Health Checks](/health-checks/). |
| Health Checks $1 | Grants write access to [Health Checks](/health-checks/). |
| HTTP DDoS Managed Ruleset Read | Grants read access to [HTTP DDoS managed ruleset](/ddos-protection/managed-rulesets/http/). |
| HTTP DDoS Managed Ruleset $1 | Grants write access to [HTTP DDoS managed ruleset](/ddos-protection/managed-rulesets/http/). |
| Load Balancers Read | Grants read access to [load balancer resources](/load-balancing/). |
| Load Balancers $1 | Grants write access to [load balancer resources](/load-balancing/). |
| Logs Read | Grants read access to logs using [Logpull](/logs/). |
| Logs $1 | Grants write access to [Logpull and Logpush](/logs/). |
| Managed Headers Read | Grants read access to [Managed Headers](/rules/transform/managed-transforms/). |
| Managed Headers $1 | Grants write access to [Managed Headers](/rules/transform/managed-transforms/). |
| Origin Rules Read | Grants read access to [Origin Rules](/rules/origin-rules/). |
| Origin Rules $1 | Grants write access to [Origin Rules](/rules/origin-rules/). |
| Page Rules Read | Grants read access to [Page Rules](/support/page-rules/understanding-and-configuring-cloudflare-page-rules-page-rules-tutorial/). |
| Page Rules $1 | Grants write access to [Page Rules](/support/page-rules/understanding-and-configuring-cloudflare-page-rules-page-rules-tutorial/). |
| Page Shield Read | Grants read access to [Page Shield](/page-shield/). |
| Page Shield $1 | Grants write access to [Page Shield](/page-shield/). |
| Response Compression Read | Grants read access to [Response Compression](/rules/compression-rules/). |
| Response Compression $1 | Grants write access to [Response Compression](/rules/compression-rules/). |
| Sanitize Read | Grants read access to sanitization. |
| Sanitize $1 | Grants write access to sanitization. |
| SSL and Certificates Read | Grants read access to [SSL configuration and certificate management](/ssl/). |
| SSL and Certificates $1 | Grants write access to [SSL configuration and certificate management](/ssl/). |
| Transform Rules Read | Grants read access to [Transform Rules](/rules/transform/). |
| Transform Rules $1 | Grants write access to [Transform Rules](/rules/transform/). |
| Waiting Room Read | Grants read access to [Waiting Room](/waiting-room/). |
| Waiting Room $1 | Grants write access to [Waiting Room](/waiting-room/). |
| Web3 Hostnames Read | Grants read access to [Web3 Hostnames](/web3/). |
| Web3 Hostnames $1 | Grants write access to [Web3 Hostnames](/web3/). |
| Workers Routes Read | Grants read access to [Cloudflare Workers](/workers/) and [Workers KV Storage](/workers/runtime-apis/kv/). |
| Workers Routes $1 | Grants write access to [Cloudflare Workers](/workers/) and [Workers KV Storage](/workers/runtime-apis/kv/). |
| Zaraz Read | Grants read access to [Zaraz](/zaraz/) zone level settings. |
| Zaraz $1 | Grants write access to [Zaraz](/zaraz/) zone level settings. |
| Zone Read | Grants read access to zone management. |
| Zone $1 | Grants write access to zone management. |
| Zone Settings Read | Grants read access to zone settings. |
| Zone Settings $1 | Grants write access to zone settings. |
| Zone Versioning Read | Grants read access to [Zone Versioning](/version-management/) at zone level. |
| Zone Versioning $1 | Grants write access to [Zone Versioning](/version-management/) at zone level. |
| Zone WAF Read | Grants read access to [Zone WAF](/waf/). |
| Zone WAF $1 | Grants write access to [Zone WAF](/waf/). |
This diff is collapsed.
......@@ -12,44 +12,56 @@
{{- with .Site.GetPage $url -}}
{{- $contentPlaceholder := .Content }}
{{- $expectedParams := split .Params.inputParameters $sep -}}
<!-- If parameter values are specified in input params, replace throughout partial content -->
{{- if ne $parameterValues "" -}}
{{- $parameterValues = split $parameterValues $sep -}}
{{- if ne (len $expectedParams) (len $parameterValues) -}}
{{ errorf "ERROR in page %s:" $parentPagePath }}
{{ errorf "- Incorrect number of parameter values when including partial file: %s" .File.Path }}
{{ errorf "- Partial has %d parameters: %q" (len $expectedParams) $expectedParams }}
{{ errorf "- Got %d parameter values: %q" (len $parameterValues) $parameterValues }}
{{- end -}}
{{- $regexPlaceholder := "" -}}
{{- range $elem_index, $elem_val := $parameterValues -}}
{{ $elem_val := ((default "" $elem_val) | markdownify) }}
{{ $elem_index := add $elem_index 1 | string}}
{{ $regexPlaceholder = print "\\$" $elem_index }}
{{ $contentPlaceholder = replaceRE $regexPlaceholder $elem_val $contentPlaceholder }}
{{- end -}}
{{- else -}}
{{- if ne .Page.Params.inputParameters nil -}}
{{ errorf "ERROR in page %s:" $parentPagePath }}
{{ errorf "- You must specify input parameter values when including partial file: %s" .File.Path }}
{{ errorf "- Partial has %d parameters: %q" (len $expectedParams) $expectedParams }}
{{- end -}}
{{- end -}}
{{- if $noMarkdown -}}
{{- $contentPlaceholder -}}
{{- else -}}
{{- $contentPlaceholder | markdownify -}}
{{- end -}}
{{- $contentPlaceholder := .Content }}
{{- $expectedParams := split .Params.inputParameters $sep -}}
<!-- If parameter values are specified in input params, replace throughout partial content -->
{{- if ne $parameterValues "" -}}
{{- $parameterValues = split $parameterValues $sep -}}
{{- if ne (len $expectedParams) (len $parameterValues) -}}
{{ errorf "ERROR in page %s:" $parentPagePath }}
{{ errorf "- Incorrect number of parameter values when including partial file: %s" .File.Path }}
{{ errorf "- Partial has %d parameters: %q" (len $expectedParams) $expectedParams }}
{{ errorf "- Got %d parameter values: %q" (len $parameterValues) $parameterValues }}
{{- end -}}
{{- $regexPlaceholder := "" -}}
{{- $replaceArray := slice -}}
{{- range $elem_index, $elem_val := $parameterValues -}}
{{ $elem_val := ((default "" $elem_val) | markdownify) }}
{{ $elem_index := add $elem_index 1 | string}}
{{ $regexPlaceholder = print "\\$" $elem_index }}
{{ $contentPlaceholder = replaceRE $regexPlaceholder $elem_val $contentPlaceholder }}
{{- $replaceArray = $replaceArray | append (dict "elem_value" $elem_val "index" $elem_index "placeholder" $regexPlaceholder) -}}
{{- end -}}
<!-- Reverse sort the array, otherwise entries for $10 will get replaced by the value for $1 -->
{{- $replaceArray = sort $replaceArray "index" "desc" -}}
{{- range $replaceArray -}}
{{- $contentPlaceholder = replaceRE .placeholder .elem_value $contentPlaceholder }}
{{- end -}}
{{- else -}}
{{- if ne .Page.Params.inputParameters nil -}}
{{ errorf "ERROR in page %s:" $parentPagePath }}
{{ errorf "- You must specify input parameter values when including partial file: %s" .File.Path }}
{{ errorf "- Partial has %d parameters: %q" (len $expectedParams) $expectedParams }}
{{- end -}}
{{- end -}}
{{- if $noMarkdown -}}
{{- $contentPlaceholder -}}
{{- else -}}
{{- $contentPlaceholder | markdownify -}}
{{- end -}}
{{- else -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment