@@ -5,14 +5,12 @@ import (
5
5
)
6
6
7
7
type SignSshPublicKeyV1Request struct {
8
- ProjectID string `json:"projectId"`
9
- TemplateName string `json:"templateName"`
10
- PublicKey string `json:"publicKey"`
11
- KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm,omitempty"`
12
- CertType util.SshCertType `json:"certType,omitempty"`
13
- Principals []string `json:"principals"`
14
- TTL string `json:"ttl,omitempty"`
15
- KeyID string `json:"keyId,omitempty"`
8
+ CertificateTemplateID string `json:"certificateTemplateId"`
9
+ PublicKey string `json:"publicKey"`
10
+ CertType util.SshCertType `json:"certType,omitempty"`
11
+ Principals []string `json:"principals"`
12
+ TTL string `json:"ttl,omitempty"`
13
+ KeyID string `json:"keyId,omitempty"`
16
14
}
17
15
18
16
type SignSshPublicKeyV1Response struct {
@@ -21,19 +19,18 @@ type SignSshPublicKeyV1Response struct {
21
19
}
22
20
23
21
type IssueSshCredsV1Request struct {
24
- ProjectID string `json:"projectId"`
25
- TemplateName string `json:"templateName"`
26
- KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm,omitempty"`
27
- CertType util.SshCertType `json:"certType,omitempty"`
28
- Principals []string `json:"principals"`
29
- TTL string `json:"ttl,omitempty"`
30
- KeyID string `json:"keyId,omitempty"`
22
+ CertificateTemplateID string `json:"certificateTemplateId"`
23
+ KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm,omitempty"`
24
+ CertType util.SshCertType `json:"certType,omitempty"`
25
+ Principals []string `json:"principals"`
26
+ TTL string `json:"ttl,omitempty"`
27
+ KeyID string `json:"keyId,omitempty"`
31
28
}
32
29
33
30
type IssueSshCredsV1Response struct {
34
- SerialNumber string `json:"serialNumber"`
35
- SignedKey string `json:"signedKey"`
36
- PrivateKey string `json:"privateKey"`
37
- PublicKey string `json:"publicKey"`
31
+ SerialNumber string `json:"serialNumber"`
32
+ SignedKey string `json:"signedKey"`
33
+ PrivateKey string `json:"privateKey"`
34
+ PublicKey string `json:"publicKey"`
38
35
KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm"`
39
36
}
0 commit comments