IoT Core Service, REST: Device.ListPasswords
Retrieves the list of passwords for the specified device.
HTTP request
GET https://iot-devices.api.cloud.yandex.net/iot-devices/v1/devices/{deviceId}/passwords
Path parameters
Field |
Description |
deviceId |
string Required field. ID of the registry to list passwords in. To get a registry ID make a RegistryService.List request. |
Response
HTTP Code: 200 - OK
{
"passwords": [
{
"deviceId": "string",
"id": "string",
"createdAt": "string"
}
]
}
Field |
Description |
passwords[] |
List of passwords for the specified device. |
DevicePassword
A device password.
Field |
Description |
deviceId |
string ID of the device that the password belongs to. |
id |
string ID of the password. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |