Skip to content

Commit

Permalink
acl/auth-methods.mdx
Browse files Browse the repository at this point in the history
Update partition partials to be generic
  • Loading branch information
aimeeu committed Jun 24, 2024
1 parent 2daf499 commit 4b62ccc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
17 changes: 13 additions & 4 deletions website/content/api-docs/acl/auth-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ The corresponding CLI command is [`consul acl auth-method create`](/consul/comma
prefixed-${serviceaccount.name}
```

@include 'http-api-body-options-partition.mdx'

### Sample Payload

```json
Expand Down Expand Up @@ -175,9 +177,11 @@ The corresponding CLI command is [`consul acl auth-method read`](/consul/command

### Query Parameters

- `ns` `(string: "")` <EnterpriseAlert inline /> - Specifies the namespace of the auth method you lookup.
- `ns` `(string: "")` <EnterpriseAlert inline /> - Specifies the namespace of the auth method you look up.
You can also [specify the namespace through other methods](#methods-to-specify-namespace).

@include 'http-api-query-parms-partition.mdx'

### Sample Request

```shell-session
Expand Down Expand Up @@ -291,9 +295,11 @@ The corresponding CLI command is [`consul acl auth-method update`](/consul/comma
same values that are usable by the `Selector` syntax. For example:

```text
prefixed-${serviceaccount.name}
prefixed-${serviceaccount.name}
```

@include 'http-api-body-options-partition.mdx'

### Sample Payload

```json
Expand Down Expand Up @@ -369,6 +375,8 @@ The corresponding CLI command is [`consul acl auth-method delete`](/consul/comma
- `ns` `(string: "")` <EnterpriseAlert inline /> - Specifies the namespace of the auth method you delete.
You can also [specify the namespace through other methods](#methods-to-specify-namespace).

@include 'http-api-query-parms-partition.mdx'

### Sample Request

```shell-session
Expand Down Expand Up @@ -408,8 +416,9 @@ The corresponding CLI command is [`consul acl auth-method list`](/consul/command
The namespace may be specified as '\*' to return results for all namespaces.
You can also [specify the namespace through other methods](#methods-to-specify-namespace).

The namespace may be specified as '\*' and then
results will be returned for all namespaces.
The namespace may be specified as '\*' and then results are returned for all namespaces.

@include 'http-api-query-parms-partition.mdx'

## Sample Request

Expand Down
3 changes: 1 addition & 2 deletions website/content/partials/http-api-body-options-partition.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

- `Partition` `(string: "")` - <EnterpriseAlert inline /> The admin partition that the
peering token is generated from. Uses `default` when not specified.
- `Partition` `(string: "")` - <EnterpriseAlert inline /> The partition to use. When not specified, uses `default`.
3 changes: 1 addition & 2 deletions website/content/partials/http-api-query-parms-partition.mdx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
- `partition` `(string: "")` <EnterpriseAlert inline /> - Specifies the partition of the peering
to read. If not specified, defaults to `default`.
- `partition` `(string: "")` <EnterpriseAlert inline /> - The partition to use. When not specified, uses `default`.

0 comments on commit 4b62ccc

Please sign in to comment.