Consulter un certificat

GET /api/servers/(string: server)/accounts/(string: login)/certificates/(string: cert_name)

Renvoie le certificat demandé.

Request Headers
Status Codes
  • 200 OK – Le certificat a été renvoyé avec succès

  • 401 Unauthorized – Authentification d’utilisateur invalide

  • 404 Not Found – Le serveur, le compte ou le certificat demandés n’existent pas

Response JSON Object
  • name (string) – Le nom du certificat

  • privateKey (string) – La clé privée du certificat

  • publicKey (string) – La clé publique du certificat

  • certificate (string) – Le certificat de l’entité

Exemple de requête

GET https://my_waarp_gateway.net/api/servers/serveur_sftp/accounts/toto/certificates/certificat_toto HTTP/1.1
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

Exemple de réponse

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 197

{
  "name": "certificat_toto",
  "privateKey": "<clé privée>",
  "publicKey": "<clé publique>",
  "cert": "<certificat>"
}