coap.psk.find

The coap.psk.find command is used to find the details of a pre-shared key.

TR50 Request
{
  "1": {
    "command": "coap.psk.find",
    "params": {
      "id": "59a06544b5143858b3af5941"
    }
  }
} 

Request Parameters

Name Type Required Description
id String Yes* The id of the pre-shared key record.
name String The name of the pre-shared key record.
identity String The identity value of the pre-shared key record.
*One of the above fields is required to find a pre-shared key.

If the command is sent successfully a success message along with other parameters, is returned. Otherwise, an error and error message will be returned.

TR50 Response
{
  "1": {
    "success": true,
    "params": {
      "id": "59a06544b5143858b3af5941",
      "orgId": "5b3af59419a0654384b51458",
      "name": "My New PSK",
      "desc": "My New PSK",
      "identity": "PSK1",
      "createdBy": "user@example.com",
      "createdOn": "2021-01-01T01:23:45.678Z",
      "updatedBy": "user@example.com",
      "updatedOn": "2021-01-01T01:23:45.678Z"
    }
  }
}

Response Parameters

Name Type Description
id String The id of the pre-shared key.
orgId String The orgId that the pre-shared key belongs to.
name String The name of the pre-shared key.
desc String The description of the pre-shared key.
identity String The identity of the pre-shared key.
createdBy String The email address of the user who created the pre-shared key.
createdOn String The date and time that the pre-shared key was created.
updatedBy String The email address of the user who last updated the pre-shared key.
updatedOn String The date and time that the pre-shared key was updated.