vault/website/content/api-docs/system/control-group.mdx
Bianca Moreira cf43d3eeed
Add administrative namespace docs (#22581)
* Add administrative namespace section to namespaces docs
* Tag sys endpoints with restricted admin alert
---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2023-08-30 09:31:53 -07:00

106 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: api
page_title: /sys/control-group - HTTP API
description: The '/sys/control-group' endpoint handles the Control Group workflow.
---
## Authorize control group request
@include 'alerts/enterprise-and-hcp-plus.mdx'
@include 'alerts/restricted-admin.mdx'
This endpoint authorizes a control group request.
| Method | Path |
| :----- | :----------------------------- |
| `POST` | `/sys/control-group/authorize` |
### Parameters
- `accessor` `(string: <required>)` The accessor for the control group wrapping token.
### Sample payload
```json
{
"accessor": "0ad21b78-e9bb-64fa-88b8-1e38db217bde"
}
```
### Sample request
```shell-session
$ curl \
--header "X-Vault-Token: ..." \
--request POST \
--data @payload.json \
http://127.0.0.1:8200/v1/sys/control-group/authorize
```
### Sample response
```json
{
"data": {
"approved": false
}
}
```
## Check control group request status
@include 'alerts/restricted-admin.mdx'
This endpoint checks the status of a control group request.
| Method | Path |
| :----- | :--------------------------- |
| `POST` | `/sys/control-group/request` |
### Parameters
- `accessor` `(string: <required>)` The accessor for the control group wrapping token.
### Sample payload
```json
{
"accessor": "0ad21b78-e9bb-64fa-88b8-1e38db217bde"
}
```
### Sample request
```shell-session
$ curl \
--header "X-Vault-Token: ..." \
--request POST \
--data @payload.json \
http://127.0.0.1:8200/v1/sys/control-group/request
```
### Sample response
```json
{
"data": {
"approved": false,
"request_path": "secret/foo",
"request_entity": {
"id": "c8b6e404-de4b-50a4-2917-715ff8beec8e",
"name": "Bob"
},
"authorizations": [
{
"entity_id": "6544a3ec-d3cd-443b-b87b-4fd2e889e0b7",
"entity_name": "Abby Jones"
},
{
"entity_id": "919084a4-417e-42ee-9d78-87fa2843af37",
"entity_name": "James Franklin"
}
]
}
}
```