Lists the policies attached to the specified thing group.Requires permission to access the ListAttachedPolicies action.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request POST 'https://api.iotwireless.{region}.amazonaws.com/attached-policies/'
Response Response Example
200 - Example 1
{"policies":[],"nextMarker":"string"}
Request
Path Params
target
stringÂ
required
The group or principal for which the policies will be listed. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
Query Params
recursive
stringÂ
optional
When true, recursively list attached policies.
marker
stringÂ
optional
The token to retrieve the next set of results.
pageSize
integerÂ
optional
The maximum number of results to be returned per request.
Responses
🟢200Success
application/json
Body
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 token to retrieve the next set of results, or null if there are no more results.