CreateCredentialRequest
Payload to store a new credential or rotate an existing one
namestringrequired
Example:
acme-sftp-keycredentialTypeCredentialType (string)required
Type of credential secret
Possible values: [SSH_KEY, PASSWORD, API_TOKEN, AWS_ACCESS_KEY, AZURE_SAS, GCP_SERVICE_ACCOUNT, OAUTH2_CLIENT]
Example:
SSH_KEYusernamestring
Username (SSH_KEY, PASSWORD)
Example:
sftp-userpasswordstring<password>
Password (PASSWORD type)
Example:
s3cr3t!privateKeystring
PEM-encoded private key (SSH_KEY type)
Example:
-----BEGIN RSA PRIVATE KEY-----
...tokenstring<password>
API token or bearer token (API_TOKEN type)
accessKeyIdstring
AWS access key ID (AWS_ACCESS_KEY type)
Example:
AKIAIOSFODNN7EXAMPLEsecretAccessKeystring<password>
AWS secret access key (AWS_ACCESS_KEY type)
CreateCredentialRequest
{
"name": "acme-sftp-key",
"credentialType": "SSH_KEY",
"username": "sftp-user",
"password": "s3cr3t!",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\n...",
"token": "string",
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"secretAccessKey": "string"
}