AWS Directory Service

2020/02/12 - AWS Directory Service - 1 updated api methods

Changes  Update ds client to latest version

ListCertificates (updated) Link ΒΆ
Changes (response)
{'CertificatesInfo': {'ExpiryDateTime': 'timestamp'}}

For the specified directory, lists all the certificates registered for a secured LDAP connection.

See also: AWS API Documentation

Request Syntax

client.list_certificates(
    DirectoryId='string',
    NextToken='string',
    Limit=123
)
type DirectoryId:

string

param DirectoryId:

[REQUIRED]

The identifier of the directory.

type NextToken:

string

param NextToken:

A token for requesting another page of certificates if the NextToken response element indicates that more certificates are available. Use the value of the returned NextToken element in your request until the token comes back as null. Pass null if this is the first call.

type Limit:

integer

param Limit:

The number of items that should show up on one page

rtype:

dict

returns:

Response Syntax

{
    'NextToken': 'string',
    'CertificatesInfo': [
        {
            'CertificateId': 'string',
            'CommonName': 'string',
            'State': 'Registering'|'Registered'|'RegisterFailed'|'Deregistering'|'Deregistered'|'DeregisterFailed',
            'ExpiryDateTime': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      Indicates whether another page of certificates is available when the number of available certificates exceeds the page limit.

    • CertificatesInfo (list) --

      A list of certificates with basic details including certificate ID, certificate common name, certificate state.

      • (dict) --

        Contains general information about a certificate.

        • CertificateId (string) --

          The identifier of the certificate.

        • CommonName (string) --

          The common name for the certificate.

        • State (string) --

          The state of the certificate.

        • ExpiryDateTime (datetime) --

          The date and time when the certificate will expire.