Class ListServersCommandProtected

Retrieve a list of AS2 servers.

Example

Use a bare-bones client and the command you need to make an API call.

import { As2Client, ListServersCommand } from "@stedi/sdk-client-as2"; // ES Modules import
// const { As2Client, ListServersCommand } = require("@stedi/sdk-client-as2"); // CommonJS import
const client = new As2Client(config);
const input = { // ListServersInput
pageSize: Number("int"),
pageToken: "STRING_VALUE",
};
const command = new ListServersCommand(input);
const response = await client.send(command);
// { // ListServersOutput
// nextPageToken: "STRING_VALUE",
// items: [ // ServersList // required
// { // ServerItem
// serverName: "STRING_VALUE", // required
// resourceDetail: { // ListResourcesDetail
// status: "AVAILABLE" || "UNDER_CHANGE" || "CHANGE_FAILED" || "ERROR" || "CREATE_FAILED", // required
// statusMessage: "STRING_VALUE",
// createdAt: new Date("TIMESTAMP"), // required
// },
// },
// ],
// };

Param

ListServersCommandInput

Returns

ListServersCommandOutput

See

Throws

TooManyRequestsException (client fault)

Throws

ValidationException (client fault)

Throws

AccessDeniedException (client fault)

Throws

ProductUnavailableException (client fault)

Throws

ResourceAlreadyExistsException (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ResourceUnderChangeException (client fault)

Throws

ServiceException (server fault)

Throws

As2ServiceException

Base exception class for all service exceptions from As2 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions