v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1458293303.1 KB

If the IdentityProviderType of a file transfer protocol-enabled server is AWS_DIRECTORY_SERVICE or API_Gateway, tests whether your identity provider is set up successfully. We highly recommend that you call this operation to test your authentication method as soon as you create your server. By doing so, you can troubleshoot issues with the identity provider integration to ensure that your users can successfully use the service.

The ServerId and UserName parameters are required. The ServerProtocol, SourceIp, and UserPassword are all optional.

You cannot use TestIdentityProvider if the IdentityProviderType of your server is SERVICE_MANAGED.

  • If you provide any incorrect values for any parameters, the Response field is empty.

  • If you provide a server ID for a server that uses service-managed users, you get an error:

    An error occurred (InvalidRequestException) when calling the TestIdentityProvider operation: s-_server-ID_ not configured for external auth

  • If you enter a Server ID for the --server-id parameter that does not identify an actual Transfer server, you receive the following error:

    An error occurred (ResourceNotFoundException) when calling the TestIdentityProvider operation: Unknown server

post/#X-Amz-Target=TransferService.TestIdentityProvider

Headers

X-Amz-Target'TransferService.TestIdentityProvider' required

Request body

ServerIdstring required

A system-assigned identifier for a specific server. That server's user authentication method is tested with a user name and password.

ServerProtocol'SFTP' | 'FTP' | 'FTPS' | 'AS2'
<p>The type of file transfer protocol to be tested.</p> <p>The available protocols are:</p> <ul> <li> <p>Secure Shell (SSH) File Transfer Protocol (SFTP)</p> </li> <li> <p>File Transfer Protocol Secure (FTPS)</p> </li> <li> <p>File Transfer Protocol (FTP)</p> </li> </ul>
SourceIpstring

The source IP address of the user account to be tested.

UserNamestring required

The name of the user account to be tested.

UserPasswordstring password

The password of the user account to be tested.

Response

Success

Responsestring

The response that is returned from your API Gateway.

StatusCodeinteger required

The HTTP status code that is the response from your API Gateway.

Messagestring
<p>A message that indicates whether the test was successful or not.</p> <note> <p>If an empty string is returned, the most likely cause is that the authentication failed due to an incorrect username or password.</p> </note>
Urlstring required

The endpoint of the service used to authenticate a user.