IoT Core Service, REST: Device.listCertificates
Written by
Updated at May 26, 2023
Retrieves the list of device certificates for the specified device.
HTTP request
GET https://iot-devices.api.cloud.yandex.net/iot-devices/v1/devices/{deviceId}/certificates
Path parameters
Parameter | Description |
---|---|
deviceId | Required. ID of the device to list certificates for. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"certificates": [
{
"deviceId": "string",
"fingerprint": "string",
"certificateData": "string",
"createdAt": "string"
}
]
}
Field | Description |
---|---|
certificates[] | object List of certificates for the specified device. |
certificates[]. deviceId |
string ID of the device that the certificate belongs to. |
certificates[]. fingerprint |
string SHA256 hash of the certificate. |
certificates[]. certificateData |
string Public part of the certificate. |
certificates[]. createdAt |
string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |