Returns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response
returns only a truncated list of your agents), the response contains a token that you can
specify in your next request to fetch the next page of locations.
example
Use a bare-bones client and the command you need to make an API call.
Returns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.
Use a bare-bones client and the command you need to make an API call.
import { DataSyncClient, ListLocationsCommand } from "@aws-sdk/client-datasync"; // ES Modules import // const { DataSyncClient, ListLocationsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import const client = new DataSyncClient(config); const command = new ListLocationsCommand(input); const response = await client.send(command);
ListLocationsCommandInput for command's
input
shape.ListLocationsCommandOutput for command's
response
shape.config for DataSyncClient's
config
shape.