---
title: "GET /security-profiles-for-target#securityProfileTargetArn"
method: GET
path: "/security-profiles-for-target#securityProfileTargetArn"
---

# GET /security-profiles-for-target#securityProfileTargetArn

`GET /security-profiles-for-target#securityProfileTargetArn`

Lists the Device Defender security profiles attached to a target (thing group).

Requires permission to access the [ListSecurityProfilesForTarget](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Query parameters

- `nextToken` string
- `maxResults` integer
- `recursive` boolean
- `securityProfileTargetArn` string, required

## Response `200`

Success

- ListSecurityProfilesForTargetResponse
  - `securityProfileTargetMappings` SecurityProfileTargetMapping[] — A list of security profiles and their associated targets.
    - `securityProfileIdentifier` object — Information that identifies the security profile.
      - `name` string, required — The name you've given to the security profile.
      - `arn` string, required — The ARN of the security profile.
    - `target` object — Information about the target (thing group) associated with the security profile.
      - `arn` string, required — The ARN of the security profile.
  - `nextToken` string — A token that can be used to retrieve the next set of results, or <code>null</code> if there are no additional results.

## Other responses

- `480` — InvalidRequestException
- `481` — ThrottlingException
- `482` — InternalFailureException
- `483` — ResourceNotFoundException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/revisions/deef5c4b09f0/schema)
