Cloud Organization API, REST: SshCertificate.generate
Статья создана
Обновлена 30 августа 2023 г.
Members of an organization can generate certificates for themselves
Signing certificates for other users requires a special permission
HTTP request
POST https://organization-manager.api.cloud.yandex.net/organization-manager/v1/sshCertificates:generate
Body parameters
{
"publicKey": "string",
// includes only one of the fields `subjectId`, `osLogin`
"cloudId": "string",
"organizationId": "string",
// end of the list of possible fields
"subjectId": "string",
"osLogin": "string"
}
Field | Description |
---|---|
publicKey | string Required. The maximum string length in characters is 15000. |
cloudId | string includes only one of the fields cloudId , organizationId The maximum string length in characters is 50. |
organizationId | string includes only one of the fields cloudId , organizationId The maximum string length in characters is 50. |
subjectId | string includes only one of the fields subjectId , osLogin The maximum string length in characters is 50. |
osLogin | string includes only one of the fields subjectId , osLogin The maximum string length in characters is 32. |
Response
HTTP Code: 200 - OK
{
"signedCertificate": "string"
}
Field | Description |
---|---|
signedCertificate | string as per specification https://cvsweb.openbsd.org/src/usr.bin/ssh/PROTOCOL.certkeys?annotate=HEAD |