Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

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