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
已提問 2 年前檢視次數 265 次
1 個回答
1
已接受的答案

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
專家
Greg_B
已回答 2 年前
  • Great, thanks again for your help.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南