Global InfraGlobal Infra Cloud
Secret Storage

Create a secret

Creates a new secret.

POST
/api/v1/giservices/secret_storage/secrets

Authorization

AuthorizationBearer <token>

Okta Bearer token

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/giservices/secret_storage/secrets" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "attributes": {      "name": "string",      "secrets": {        "property1": "string",        "property2": "string"      },      "store": "postbox"    }  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "service": "string",
  "attributes": {
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "mount_path": "string",
    "name": "string",
    "path": "string",
    "secrets": {
      "property1": "string",
      "property2": "string"
    },
    "store": "postbox",
    "version": 0
  },
  "platform": "string",
  "region": "string",
  "tenant": "string"
}
Empty
Empty
Empty
Empty