Transfer / Client / list_certificates

list_certificates#

Transfer.Client.list_certificates(**kwargs)#

Returns a list of the current certificates that have been imported into Transfer Family. If you want to limit the results to a certain number, supply a value for the MaxResults parameter. If you ran the command previously and received a value for the NextToken parameter, you can supply that value to continue listing certificates from where you left off.

See also: AWS API Documentation

Request Syntax

response = client.list_certificates(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – The maximum number of certificates to return.

  • NextToken (string) – When you can get additional results from the ListCertificates call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional certificates.

Return type:

dict

Returns:

Response Syntax

{
    'NextToken': 'string',
    'Certificates': [
        {
            'Arn': 'string',
            'CertificateId': 'string',
            'Usage': 'SIGNING'|'ENCRYPTION'|'TLS',
            'Status': 'ACTIVE'|'PENDING_ROTATION'|'INACTIVE',
            'ActiveDate': datetime(2015, 1, 1),
            'InactiveDate': datetime(2015, 1, 1),
            'Type': 'CERTIFICATE'|'CERTIFICATE_WITH_PRIVATE_KEY',
            'Description': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • NextToken (string) –

      Returns the next token, which you can use to list the next certificate.

    • Certificates (list) –

      Returns an array of the certificates that are specified in the ListCertificates call.

      • (dict) –

        Describes the properties of a certificate.

        • Arn (string) –

          The Amazon Resource Name (ARN) of the specified certificate.

        • CertificateId (string) –

          An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

        • Usage (string) –

          Specifies how this certificate is used. It can be used in the following ways:

          • SIGNING: For signing AS2 messages

          • ENCRYPTION: For encrypting AS2 messages

          • TLS: For securing AS2 communications sent over HTTPS

        • Status (string) –

          The certificate can be either ACTIVE, PENDING_ROTATION, or INACTIVE. PENDING_ROTATION means that this certificate will replace the current certificate when it expires.

        • ActiveDate (datetime) –

          An optional date that specifies when the certificate becomes active.

        • InactiveDate (datetime) –

          An optional date that specifies when the certificate becomes inactive.

        • Type (string) –

          The type for the certificate. If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY. If there is no private key, the type is CERTIFICATE.

        • Description (string) –

          The name or short description that’s used to identify the certificate.

Exceptions