post /authorizer/api/v1/ca/authorize

Get target host credentials for the user.

public_key

string

required

User's public key

hostid

string

uuid

Target host UUID

hostname

string

Target hostname

username

string

Target username

service

string

Target hots service, "SSH", "RDP" or "WEB"

roleid

string

uuid

UUID of role that is used for accessing the target host

Request

{
  "public_key": "string",
  "hostid": "5bf77342-221c-11ee-be56-0242ac120002",
  "hostname": "string",
  "username": "string",
  "service": "string",
  "roleid": "5bf77342-221c-11ee-be56-0242ac120002"
}

Response

ExamplesSchema

Successful response, returns the user key & certificate to access target hosts

{
  "principal_keys": {
    "size": 123,
    "name": "string",
    "comment": "string",
    "public_key": "string",
    "type": "string",
    "public_key_string": "string"
  },
  "certificates": {
    "data": "string",
    "data_string": "ssh-rsa-cert-v01@openssh.com AAAAHHNzaC1yc2EtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgDnz3tCJXR8xi7APJ5cynEYjD+v8nJkRpF4ExMIdYVNAAAAADAQABAAABAQDTGo9L+eIYS3gfYS2soIhDssdzRgorjf6agqGrEG7Nki4f6AUWWLCbuRIXFRTpe/x+fcpaPQoTysqXK9aMtjTJ1/eUAsf0qyf+4S4/4ac+zHzCNxX9CTVm+Dan+Y7dg61999v33BCszYc0GQJHU7sGMWCJRbedsr6ZRv8yLhLkYg2hnp1KSHC5YQHjKq17R6jFGwvQuyEs8OOIOEyt/89qNjb2jpJrpAjUYgVKeX7Zee+WyXNfwKikTwUuK+b0CV6i6AoFGMqtMoCVT5inM9H9XFNqNxINMxmxR7V/+KodyE0ZDlH8vR/MPBu+P/cDXEDbdviScJ2XbxjEMufLsvwnJZIoYpWD0uIAAAABAAAAUTIzMjUyYTNhLTljMzktNGU4ZS02ODI4LWUwNzZmMTU1ZjQwNkAxNzIuMTkuMC4yNjo1MDgyOCBzZXJpYWwgMjcwNzI3MDcyOTg4MzQzOTg0MgAAACgAAAAkMDQ2ZWUzZjUtN2NhMi01Y2ViLTcwM2YtMTIwMzRjMzM0Zjg5AAAAAGIWFYIAAAAAYhYWrgAAAA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1UVcvZSt4xsZ75E4D5k9GCz+dMdnc6Yi96c4mYXH+WHsJb68FKi0u1hnOFMeiHi/DRTaWmAG8E8p7HJYlHEkbCxU3W+ULYNEnsuYs3WwThBdjPv0RzWrCJ3jCD2FImxJtzLGYXXRd8+mj49ev6jEFpxdxg2kdRgIRARKWzV7sDDO3uBLZeaflg9TP9oV6F2i7WvkyA+p7g4zT1STXRRItUpqfdXuYDDv6m5FiN+AgTC6LTyDVfcgYqLNqiqnf1LuvYRBDLk0ztMXCks6lB5MblenCFl9nRkUD/2oEhUw7QSqMlIY1rhHU9KGI+LZoTmiUu1DF+E+PjsXT/lFUDv7HzcbsE/GliJrqlbnpHko7RNztJhu2Coqfv1ZtCsYc+5lGNbzx8qAXePt3C6zDnoU8bIlOjoSMfErVGs/Ku20j6mAINx3ESrifUhn/NCGTSlVEQUUpLuuRPDB1lXifoobarfoobarfoobarfoobar PrivX OpenSSH certificate (ssh-rsa signature)",
    "type": "OpenSSH"
  },
  "passphrase": "string"
}

Was this page helpful?