/
PI
pingcap
/
Azores Open API
Search skmtc…
⌘K
Changes
Docs
Sign in
Sign in
APIs
4
Docs
History
Schema
Filter operations
AlertService
30
ApiKeyService
7
AuditService
4
ClusterBRService
6
ClusterParamService
5
ClusterParamTemplateService
9
ClusterService
28
CMServerService
7
CredentialService
8
get
/api/v2/credentials
List credentials
post
/api/v2/credentials
Create credential
get
/api/v2/credentials/{credentialId}
Get credential
delete
/api/v2/credentials/{credentialId}
Delete credential by credential id
patch
/api/v2/credentials/{credentialId}
Update credential by credential id
get
/api/v2/credentials/{credentialId}:downloadRsaKey
Download credential public key and private key
post
/api/v2/credentials:generateRsaKey
Generate credential public key and private key
post
/api/v2/credentials:validateConnection
Validate credential is accessible
DiagnosisService
23
DomainService
7
GlobalBRService
11
HostService
16
LicenseService
4
LocationService
5
MetricsService
8
RoleService
4
TagService
12
TaskFlowService
4
TiupsService
8
UserService
11
CredentialService
Copy Markdown
Copied
Copy failed
Create credential
Changed on
Dec 31, 2024
post
/api/v2/credentials
Request
The document declares no server URL.
Auth:
none declared
Request body
V2
Credential
required
credentialId
string
userName
string
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
credentialName
string
description
string
hostCredential
V2
Host
Credential
Object
tidbCredential
V2
Ti
DBCredential
Object
Response
A successful response.
V2
Credential
required
credentialId
string
userName
string
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
credentialName
string
description
string
hostCredential
V2
Host
Credential
Object
tidbCredential
V2
Ti
DBCredential
Object
Changes
Dec 31, 2024
8bcbbdb2a394
Revision changes
○
endpoint added
Operation history
Ask about this API