curl--location-g--request GET 'https://api.iotwireless.{region}.amazonaws.com/principal-policies' \
--header'x-amzn-iot-principal;'
Response Response Example
200 - Example 1
{"policies":[],"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, results are returned in ascending creation order.
Header Params
x-amzn-iot-principal
stringÂ
required
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
Responses
🟢200Success
application/json
Body
The output from the ListPrincipalPolicies operation.
policies
array[object (Policy) {2}]Â
optional
The policies.
policyName
stringÂ
optional
The policy name.
>= 1 characters<= 128 characters
Match pattern:
[\w+=,.@-]+
policyArn
stringÂ
optional
The policy ARN.
nextMarker
stringÂ
optional
The marker for the next set of results, or null if there are no additional results.