What is a thingId?

0

Hi,

I noticed that if I query the Thing registry through the Java SDK (describeThing() function), the return value, DescribeThingResponse, has a "thingId" property. I don't see this value when I examine the thing in the AWS console. What is its purpose?

Is it safe to ignore the thingId in my application and just use the thingName as the unique identifier?

Thanks, Frank

  • just out of interest, what does the thingId look like ? Is it a guid ?

  • Yes it's a UUID.

Frank
preguntada hace 2 años265 visualizaciones
1 Respuesta
1
Respuesta aceptada

Is it safe to ignore the thingId in my application and just use the thingName as the unique identifier?

Yes. The thingName is effectively the primary key in that the APIs use that as the input to identify the Thing. The thingId is only returned in the response. Although you can use it for searching if you have fleet indexing enabled.

profile pictureAWS
EXPERTO
Greg_B
respondido hace 2 años
  • Great, thanks again for your help.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas