Add detailed documentation for identity entities and environment variables
This commit is contained in:
@@ -105,3 +105,36 @@ vault read auth/userpass/users/username
|
||||
|
||||
## Entities and Groups
|
||||
|
||||
### Entities
|
||||
|
||||
Docs: [https://developer.hashicorp.com/vault/api-docs/secret/identity/entity](https://developer.hashicorp.com/vault/api-docs/secret/identity/entity)
|
||||
|
||||
List entities by id:
|
||||
|
||||
```bash
|
||||
vault list identity/entity/id
|
||||
```
|
||||
|
||||
or by name:
|
||||
|
||||
```bash
|
||||
vault list identity/entity/name
|
||||
```
|
||||
|
||||
[Read entity details by id](https://developer.hashicorp.com/vault/api-docs/secret/identity/entity#read-entity-by-id)
|
||||
or [by name](https://developer.hashicorp.com/vault/api-docs/secret/identity/entity#read-entity-by-name):
|
||||
|
||||
```bash
|
||||
vault read identity/entity/id/<entity-id>
|
||||
vault read identity/entity/name/<entity-name>
|
||||
```
|
||||
|
||||
[Create a new entity](https://developer.hashicorp.com/vault/api-docs/secret/identity/entity#create-an-entity):
|
||||
|
||||
```bash
|
||||
vault write identity/entity name="entity-name" policies="default" metadata=key1=value1 metadata=key2=value2
|
||||
```
|
||||
|
||||
### Entity Aliases
|
||||
|
||||
Docs: [https://developer.hashicorp.com/vault/api-docs/secret/identity/entity-alias](https://developer.hashicorp.com/vault/api-docs/secret/identity/entity-alias)
|
||||
|
||||
Reference in New Issue
Block a user