Returns the descriptions of all the current mount targets, or a specific mount target,
for a file system. When requesting all of the current mount targets, the order of mount
targets returned in the response is unspecified.
This operation requires permissions for the
elasticfilesystem:DescribeMountTargets action, on either the file system ID
that you specify in FileSystemId, or on the file system of the mount target that
you specify in MountTargetId.
example
Use a bare-bones client and the command you need to make an API call.
Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified.
This operation requires permissions for the
elasticfilesystem:DescribeMountTargets
action, on either the file system ID that you specify inFileSystemId
, or on the file system of the mount target that you specify inMountTargetId
.Use a bare-bones client and the command you need to make an API call.
import { EFSClient, DescribeMountTargetsCommand } from "@aws-sdk/client-efs"; // ES Modules import // const { EFSClient, DescribeMountTargetsCommand } = require("@aws-sdk/client-efs"); // CommonJS import const client = new EFSClient(config); const command = new DescribeMountTargetsCommand(input); const response = await client.send(command);
DescribeMountTargetsCommandInput for command's
input
shape.DescribeMountTargetsCommandOutput for command's
response
shape.config for EFSClient's
config
shape.