Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Description

URI

http://host_name:port/api/sb_pgp

HTTP Method

POST

Description

Adds a new PGP key

Example URI

http://localhost:18080/api/sb_pgp

Authentication

HTTP Basic

Consume Content-Typeapplication/json

Response Header

Location – The path to the newly created key

Example

See Add Key: JSON Example.

Properties

See Add Key: JSON Properties.

Anchor
add key
add key

Add Key: JSON Example 

...


Description

URI

http://host_name:port/api/sb_pgp

HTTP Method

GET

Description

Displays a list of all keys matching with the criteria below. The private key value is not returned.

Example URI

http://localhost:18080/api/sb_pgp

Authentication

HTTP Basic

Produce Content-Typeapplication/json

Example

See List Keys: JSON Example.

URI Parameters

See List Keys: URI Parameters.

Anchor
list key
list key

List Keys: JSON Example 

...


Description

URI

http://host_name:port/api/sb_pgp/key_name

HTTP Method

GET

Description

Retrieves a PGP key details

Example URI

http://localhost:18080/api/sb_pgp/test1.pub

Authentication

HTTP Basic

Produce Content-Typeapplication/json

Example

See Get a Key: JSON Example.

Anchor
get key
get key

Get a Key: JSON Example 

...

Code Block
GET /api/sb_pgp?sort=id-&limit=2
{
    "audit": [
        {
            "id": 87642,
            "action": "DELETESTOP",
            "table_name": "userslocal_agents",
            "table_key": 449,
             "before": "{\"ID\":4,\"Owner"before": "{\"ID\":49,\"Owner\":\"mft-gw-0\",\"Name\":\"sftp_server_35281\",\"Address\":\"0.0.0.0:4003\",\"Protocol\":\"sftp\",\"Enabled\":{\"T\":true},\"RootDir\":\"rootdir_sftp\",\"ReceiveDir\":\"waarp-gatewayin\",\"UsernameSendDir\":\"totoout\",\"PasswordHashTmpReceiveDir\":\"$2a$12$J94lRBsky2Eud/D/U5Fk7urldJY.le3YwFbMmIk5iZTDpKabt/Loitmp\",\"ProtoConfig\":{\"Permissionscommands\":0{}}}",
            "after": "",
            "status": "SUCCESS",
            "info": "",
            "user": 10,
            "date": "20222024-0601-20T0716T11:5413:1013.009859Z7915008Z",
            "parent_id": ""
        },
        {
            "id": 86641,
            "action": "CREATE",
            "table_name": "usersremote_accounts",
            "table_key": 428,
            "before": "",
            "after": "{\"ID\":40,\"OwnerRemoteAgentID\":\"waarp-gateway\"42,\"UsernameLogin\":\"totouser_35281\",\"PasswordHashPassword\":\"$2a$12$J94lRBsky2Eud/D/U5Fk7urldJY.le3YwFbMmIk5iZTDpKabt/Loi\",\"Permissionspassword\":0}",
            "status": "SUCCESS",
            "info": "",
            "user": 10,
            "date": "20222024-0601-20T0716T11:5412:0458.376231Z8763191Z",
            "parent_id": ""
        }
    ]
}

Get an audit record

...