delete_host_key

delete_host_key(**kwargs)

Deletes the host key that's specified in the HoskKeyId parameter.

See also: AWS API Documentation

Request Syntax

response = client.delete_host_key(
    ServerId='string',
    HostKeyId='string'
)
Parameters
  • ServerId (string) --

    [REQUIRED]

    The identifier of the server that contains the host key that you are deleting.

  • HostKeyId (string) --

    [REQUIRED]

    The identifier of the host key that you are deleting.

Returns

None

Exceptions

  • Transfer.Client.exceptions.ServiceUnavailableException
  • Transfer.Client.exceptions.InternalServiceError
  • Transfer.Client.exceptions.InvalidRequestException
  • Transfer.Client.exceptions.ResourceNotFoundException
  • Transfer.Client.exceptions.ThrottlingException