Menu
Amazon CloudFront
API Reference (API Version 2017-10-30)

GetPublicKeyConfig

Return public key configuration informaation

Request Syntax

GET /2017-10-30/public-key/Id/config HTTP/1.1

URI Request Parameters

The request requires the following URI parameters.

Id

Request the ID for the public key configuration.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <PublicKeyConfig> <CallerReference>string</CallerReference> <Comment>string</Comment> <EncodedKey>string</EncodedKey> <Name>string</Name> </PublicKeyConfig>

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.

PublicKeyConfig

Root level tag for the PublicKeyConfig parameters.

Required: Yes

CallerReference

A unique number that ensures the request can't be replayed.

Type: String

Comment

An optional comment about a public key.

Type: String

EncodedKey

The encoded public key that you want to add to CloudFront to use with features like field-level encryption.

Type: String

Name

The name for a public key you add to CloudFront to use with features like field-level encryption.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDenied

Access denied.

HTTP Status Code: 403

NoSuchPublicKey

The specified public key doesn't exist.

HTTP Status Code: 404

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: