Space Docs
API ReferenceSecret

secret.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
assetIdstringNo—ID of the associated asset
systemIdstringNo—ID of the associated system
systemNamestringYes—System name
usernamestringNo—Username
passwordstringYes—Password
hoststringNo—Host
portintegerNo—Port
notesstringNo—Notes

Example

{
  "assetId": "550e8400-e29b-41d4-a716-446655440000",
  "systemId": "550e8400-e29b-41d4-a716-446655440000",
  "systemName": "example",
  "username": "example",
  "password": "example",
  "host": "example"
}

On this page