Docs: Approle removed incorrect token_num_uses that's incomplete with batch (#27909)

Corrected Docs at: [vault/docs/auth/approle **Via the CLI**](https://developer.hashicorp.com/vault/docs/auth/approle#via-the-cli-1) which results in the error message below on versions near to Vault 1.17.x.

```
Error writing data to auth/approle/role/my-role: Error making API request.

URL: PUT https://.../v1/auth/approle/role/my-role
Code: 400. Errors:

* 'token_type' cannot be 'batch' or 'default_batch' when set to generate tokens with limited use count
```

Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com>
This commit is contained in:
aphorise 2024-08-02 21:23:33 +02:00 committed by GitHub
parent 6b9261e1db
commit 37dbe7bf38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,6 @@ management tool.
$ vault write auth/approle/role/my-role \
token_type=batch \
secret_id_ttl=10m \
token_num_uses=10 \
token_ttl=20m \
token_max_ttl=30m \
secret_id_num_uses=40