Create a SPIFFE trust store
Creates a new SPIFFE trust store for a federated SPIFFE trust domain and its workload identities.
API-KeyX-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
Request Body
application/json
The request payload used to create a trust store.
TypeScript Definitions
Use the request body type in TypeScript.
Create SPIFFE Trust Store Request: Creates a trust store for a federated SPIFFE trust domain and its workload identities.
Response Body
application/json
The trust store was created successfully
TypeScript Definitions
Use the response body type in TypeScript.
SPIFFE Trust Store Response: Represents a federated SPIFFE trust domain used to validate workload identities.
Errors
curl -X POST "https://your-domain.us.monocloud.com/api/truststores/spiffe" \ -H "X-API-KEY: <token>" \ -H "Content-Type: application/json" \ -d '{ "options": {}, "spiffe_bundle_endpoint": "http://example.com" }'{ "id": "string", "name": "string", "enabled": true, "is_default": true, "show_in_discovery_document": true, "options": { "validate_certificate_use": true, "validate_validity_period": true, "certificate_auth_cache_duration": 0, "bundle_fetch_timeout": 0 }, "creation_time": 0, "last_updated": 0, "spiffe_bundle_endpoint": "string"}