Create secret
POST/nevisadmin/api/v1/inventories/:key/secrets
Required permission: MODIFY_INVENTORY on the inventory, or higher scope
Required permission: SUPER_ADMIN (If inventory modifications are restricted.)
Create a new inventory secret. If the secret id is left unspecified, a random id will be generated. Kubernetes secrets may only be created for Kubernetes inventories, and they must have a secret key specified.
Request
Responses
- 201
- 400
- 403
- 404
- 409
Success
Invalid inventory key, missing request body, or attempt to create a Kubernetes secret for a non-Kubernetes inventory
Insufficient permissions.
Inventory not found
Secret with the same ID already exists