CloudFront / Client / list_public_keys

list_public_keys#

CloudFront.Client.list_public_keys(**kwargs)#

List all public keys that have been added to CloudFront for this account.

See also: AWS API Documentation

Request Syntax

response = client.list_public_keys(
    Marker='string',
    MaxItems='string'
)
Parameters:
  • Marker (string) – Use this when paginating results to indicate where to begin in your list of public keys. The results include public keys in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page’s response (which is also the ID of the last public key on that page).

  • MaxItems (string) – The maximum number of public keys you want in the response body.

Return type:

dict

Returns:

Response Syntax

{
    'PublicKeyList': {
        'NextMarker': 'string',
        'MaxItems': 123,
        'Quantity': 123,
        'Items': [
            {
                'Id': 'string',
                'Name': 'string',
                'CreatedTime': datetime(2015, 1, 1),
                'EncodedKey': 'string',
                'Comment': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) –

    • PublicKeyList (dict) –

      Returns a list of all public keys that have been added to CloudFront for this account.

      • NextMarker (string) –

        If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your public keys where you left off.

      • MaxItems (integer) –

        The maximum number of public keys you want in the response.

      • Quantity (integer) –

        The number of public keys in the list.

      • Items (list) –

        A list of public keys.

        • (dict) –

          Contains information about a public key.

          • Id (string) –

            The identifier of the public key.

          • Name (string) –

            A name to help identify the public key.

          • CreatedTime (datetime) –

            The date and time when the public key was uploaded.

          • EncodedKey (string) –

            The public key.

          • Comment (string) –

            A comment to describe the public key. The comment cannot be longer than 128 characters.

Exceptions