Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.Requires permission to access the ListThingPrincipals action.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'https://api.iotwireless.{region}.amazonaws.com/things//principals'
Response Response Example
200 - Example 1
{"principals":[],"nextToken":"string"}
Request
Path Params
thingName
stringÂ
required
The name of the thing.
Query Params
nextToken
stringÂ
optional
To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.
maxResults
integerÂ
optional
The maximum number of results to return in this operation.
Responses
🟢200Success
application/json
Body
The output from the ListThingPrincipals operation.
principals
array[string]
optional
The principals associated with the thing.
nextToken
stringÂ
optional
The token to use to get the next set of results, or null if there are no additional results.