From d2fe1316a4c4bd2f140110c2f554b2b9fa1af21e Mon Sep 17 00:00:00 2001 From: Guido Rodriguez Celma <50532651+guidorc@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:09:34 -0300 Subject: [PATCH 1/2] Add new policy parameters Updated example configuration for the --config flag to correct the password value. --- modules/ROOT/pages/_partials/api-mgr.adoc | 24 ++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/_partials/api-mgr.adoc b/modules/ROOT/pages/_partials/api-mgr.adoc index c3399a00..a60c7fc5 100644 --- a/modules/ROOT/pages/_partials/api-mgr.adoc +++ b/modules/ROOT/pages/_partials/api-mgr.adoc @@ -611,9 +611,11 @@ In addition to the xref:index.adoc#default-options[default flags], this command [%header%autowidth.spread,cols="a,a,a"] |=== |Flag |Description| Example +| `--allowDuplicated` | Indicates whether the Policy can be applied multiple times on the API Instance. | `--allowDuplicated` + | `-c, --config` | Pass the configuration data as a JSON string | -`--config '{\"username\":\"user\",\"password\":\"teste\"}'` +`--config '{\"username\":\"user\",\"password\":\"test\"}'` | `--configFile` | Pass the configuration data as a file | @@ -622,12 +624,19 @@ In addition to the xref:index.adoc#default-options[default flags], this command | `--groupId` | Mule 4 policy group ID + This value defaults to the MuleSoft group ID. | `--groupId 1fec0a49-1551-4199-bfcc-cf0352d0f29d` + +| `--label` +| An optional label to identify this policy instance | `--label user authentication policy` + | `--output` | Specifies the response format, supported values are `table` (default) and `json` | `--output json` + | `-p, --pointcut [dataJSON]` | Pass pointcut data as JSON strings | `--pointcut '[{"methodRegex":"GET\|PUT","uriTemplateRegex":"/users*"}]'` + | `--policyVersion` | Mule 4 policy version. | `--policyVersion 1.0.2` + |`--upstreamId` | Configure upstream | `--upstreamId 550e8400-e29b-41d4-a716-446655440000` |=== @@ -704,16 +713,25 @@ In addition to the xref:index.adoc#default-options[default flags], this command [%header%autowidth.spread,cols="a,a,a"] |=== |Flag |Description| Example +| `--allowDuplicated` | Indicates whether the Policy can be applied multiple times on the API Instance. | `--allowDuplicated` + | `-c`, `--config` | Pass the configuration data as a JSON string | -`--config '{\"username\":\"user\",\"password\":\"teste\"}'` +`--config '{\"username\":\"user\",\"password\":\"test\"}'` + | `--configFile` | Pass the configuration data as a file | `--configFile ./config.json` + +| `--label` +| An optional label to identify this policy instance | `--label user authentication policy` + | `--output` | Specifies the response format, supported values are `table` (default) and `json` | `--output json` + | `-p, --pointcut` | Pass pointcut data as JSON strings | `-p '[{"methodRegex":"GET\|PUT","uriTemplateRegex":"/users*"}]'` + |=== [[api-mgr-policy-enable]] @@ -850,4 +868,4 @@ In addition to the xref:index.adoc#default-options[default flags], this command Supported values are: `id`, `name`, `createdDate`, and `updatedDate` | `--sort id` |=== -// end::commands[] \ No newline at end of file +// end::commands[] From f05056df51ef68569050d325863dc4295a72f5bb Mon Sep 17 00:00:00 2001 From: Guido Rodriguez Celma <50532651+guidorc@users.noreply.github.com> Date: Thu, 11 Dec 2025 11:50:49 -0300 Subject: [PATCH 2/2] feedback --- modules/ROOT/pages/_partials/api-mgr.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ROOT/pages/_partials/api-mgr.adoc b/modules/ROOT/pages/_partials/api-mgr.adoc index a60c7fc5..d02461a4 100644 --- a/modules/ROOT/pages/_partials/api-mgr.adoc +++ b/modules/ROOT/pages/_partials/api-mgr.adoc @@ -611,7 +611,7 @@ In addition to the xref:index.adoc#default-options[default flags], this command [%header%autowidth.spread,cols="a,a,a"] |=== |Flag |Description| Example -| `--allowDuplicated` | Indicates whether the Policy can be applied multiple times on the API Instance. | `--allowDuplicated` +| `--allowDuplicated` | Indicates whether the policy can be applied multiple times on the API Instance. | `--allowDuplicated` | `-c, --config` | Pass the configuration data as a JSON string | @@ -626,7 +626,7 @@ In addition to the xref:index.adoc#default-options[default flags], this command This value defaults to the MuleSoft group ID. | `--groupId 1fec0a49-1551-4199-bfcc-cf0352d0f29d` | `--label` -| An optional label to identify this policy instance | `--label user authentication policy` +| Optional label to identify the policy instance | `--label user authentication policy` | `--output` | Specifies the response format, supported values are `table` (default) and `json` | `--output json` @@ -713,7 +713,7 @@ In addition to the xref:index.adoc#default-options[default flags], this command [%header%autowidth.spread,cols="a,a,a"] |=== |Flag |Description| Example -| `--allowDuplicated` | Indicates whether the Policy can be applied multiple times on the API Instance. | `--allowDuplicated` +| `--allowDuplicated` | Indicates whether the policy can be applied multiple times on the API Instance. | `--allowDuplicated` | `-c`, `--config` | Pass the configuration data as a JSON string | @@ -724,7 +724,7 @@ In addition to the xref:index.adoc#default-options[default flags], this command `--configFile ./config.json` | `--label` -| An optional label to identify this policy instance | `--label user authentication policy` +| Optional label to identify the policy instance | `--label user authentication policy` | `--output` | Specifies the response format, supported values are `table` (default) and `json` | `--output json`