Socotra
API ReferenceResources API

Secrets API

ActionEndpoint
Fetch a SecretGET/resource/{tenantLocator}/secrets/{name}
Create a SecretPOST/resource/{tenantLocator}/secrets
Update a SecretPATCH/resource/{tenantLocator}/secrets/{name}
Delete SecretDELETE/resource/{tenantLocator}/secrets/{name}

Fetch a Secret

Fetch a SecretfetchSecret
GET/resource/{tenantLocator}/secrets/{name}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
namepathstringYes
byStaticNamequeryboolean?No
datequerydatetime?No
jurisdictionquerystring?No
Security Group:secrets
Permission:
read
SecretResponse

Required properties

PropertyTypeDescription
resourceBasicResourceResponse
secretobject

Create a Secret

Create a SecretcreateSecret
POST/resource/{tenantLocator}/secrets

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Security Group:secrets
Permission:
write
SecretCreateRequest

Required properties

PropertyTypeDescription
staticNamestring
namestring
jurisdictionsstring[]
secretmap<string, object>

Update a Secret

Update a SecretupdateSecret
PATCH/resource/{tenantLocator}/secrets/{name}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
namepathstringYes
Request:map<string, object>
Security Group:secrets
Permission:
write

Delete Secret

Delete SecretdeleteSecret
DELETE/resource/{tenantLocator}/secrets/{name}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
namepathstringYes
Response:void
Security Group:secrets
Permission:
write

On this page