AERPAW-Platform-Control / aerpaw-portal

AERPAW Portal v2
0 stars 1 forks source link

API endpoint /credentials #8

Open mjstealey opened 2 years ago

mjstealey commented 2 years ago

/credentials

Endpoints

Functions

Fields

--- /credentials
public_key_credential:  - string
public_key_expiration:  - string
public_key_id:          - int
public_key_name:        - string
user_id:                - int
--- /credentials/{int:pk}
created_date            - string
is_deleted              - boolean
is_expired:             - boolean
last_modified_by        - int
modified_date           - string
public_key_credential   - string
public_key_expiration   - int
public_key_id           - int
public_key_name         - string
user_id                 - int

Notes

POST

{
    "public_key_credential": "ssh-rsa AAAA...",   <-- optional
    "public_key_name": "user defined key name"    <-- required
}