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
posta 2 anni fa265 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
Greg_B
con risposta 2 anni fa
  • Great, thanks again for your help.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande