This is an automated email from the ASF dual-hosted git repository.
wenming pushed a commit to branch release/3.2
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/release/3.2 by this push:
new d59a5dd52 docs: updated consumer-restriction plugin use with Global
Rule (#9251)
d59a5dd52 is described below
commit d59a5dd521c757ae6ac046b0eb054db27cd5b369
Author: Traky Deng <[email protected]>
AuthorDate: Fri Apr 7 15:31:29 2023 +0800
docs: updated consumer-restriction plugin use with Global Rule (#9251)
* Update consumer-restriction.md
* removed trailing space
---
docs/en/latest/plugins/consumer-restriction.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/en/latest/plugins/consumer-restriction.md
b/docs/en/latest/plugins/consumer-restriction.md
index d2daa0a40..a58cc7e38 100644
--- a/docs/en/latest/plugins/consumer-restriction.md
+++ b/docs/en/latest/plugins/consumer-restriction.md
@@ -4,7 +4,7 @@ keywords:
- APISIX
- API Gateway
- Consumer restriction
-description: The Consumer Restriction Plugin allows users to set access
restrictions based on Consumer, Route, or Service.
+description: The Consumer Restriction Plugin allows users to configure access
restrictions on Consumer, Route, Service, or Global Rule.
---
<!--
@@ -28,7 +28,7 @@ description: The Consumer Restriction Plugin allows users to
set access restrict
## Description
-The `consumer-restriction` Plugin allows users to set access restrictions
based on Consumer, Route, or Service.
+The `consumer-restriction` Plugin allows users to configure access
restrictions on Consumer, Route, Service, or Global Rule.
## Attributes
@@ -203,7 +203,8 @@ HTTP/1.1 200 OK
### Restricting by `service_id`
-To restrict a Consumer from accessing a Service, you also need to use an
Authentication Plugin. The example below uses the [key-auth](./key-auth.md)
Plugin.
+To restrict a Consumer from accessing a Service, you also need to use an
Authentication Plugin
+The example below uses the [key-auth](./key-auth.md) Plugin.
First, you can create two services: