v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1430147146.7 KB

Returns the security groups currently in effect for a mount target. This operation requires that the network interface of the mount target has been created and the lifecycle state of the mount target is not deleted.

This operation requires permissions for the following actions:

  • elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount target's file system.

  • ec2:DescribeNetworkInterfaceAttribute action on the mount target's network interface.

get/2015-02-01/mount-targets/{MountTargetId}/security-groups

Path parameters

MountTargetIdstring required

The ID of the mount target whose security groups you want to retrieve.

Response

Success

SecurityGroupsSecurityGroup[] required

An array of security groups.

Example response

{
  "SecurityGroups": [
    "sg-4567abcd"
  ]
}