CredentialService

Create credential

Changed on
post/api/v2/credentials

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

credentialIdstring
userNamestring required
credentialType'CREDENTIAL_TYPE_UNSPECIFIED' | 'HOST' | 'TIDB' required
  • CREDENTIAL_TYPE_UNSPECIFIED: resource type unspecified
  • HOST: credential type host
  • TIDB: credential type tidb
validateType'CREDENTIAL_VALIDATE_TYPE_UNSPECIFIED' | 'PASSWORD' | 'RSAKEY' required
  • CREDENTIAL_VALIDATE_TYPE_UNSPECIFIED: validate type unspecified
  • PASSWORD: validate by password
  • RSAKEY: validate by rsa key
credentialNamestring
descriptionstring

Response

A successful response.

credentialIdstring
userNamestring required
credentialType'CREDENTIAL_TYPE_UNSPECIFIED' | 'HOST' | 'TIDB' required
  • CREDENTIAL_TYPE_UNSPECIFIED: resource type unspecified
  • HOST: credential type host
  • TIDB: credential type tidb
validateType'CREDENTIAL_VALIDATE_TYPE_UNSPECIFIED' | 'PASSWORD' | 'RSAKEY' required
  • CREDENTIAL_VALIDATE_TYPE_UNSPECIFIED: validate type unspecified
  • PASSWORD: validate by password
  • RSAKEY: validate by rsa key
credentialNamestring
descriptionstring

Changes