Lists the principals associated with the specified policy.Note: This action is deprecated. Please use ListTargetsForPolicy instead.Requires permission to access the ListPolicyPrincipals action.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'https://api.iotwireless.{region}.amazonaws.com/policy-principals' \
--header'x-amzn-iot-policy;'
Response Response Example
200 - Example 1
{"principals":[],"nextMarker":"string"}
Request
Query Params
marker
string
optional
The marker for the next set of results.
pageSize
integer
optional
The result page size.
isAscendingOrder
string
optional
Specifies the order for results. If true, the results are returned in ascending creation order.
Header Params
x-amzn-iot-policy
string
required
The policy name.
Responses
🟢200Success
application/json
Body
The output from the ListPolicyPrincipals operation.
principals
array[string]
optional
The descriptions of the principals.
nextMarker
string
optional
The marker for the next set of results, or null if there are no additional results.