</DeregisterImageResponse>
Related Operations
RegisterImage
DescribeImages
CreateKeyPair
The CreateKeyPair operation creates a new 2048 bit RSA keypair and returns a unique ID that can be
used to reference this keypair when launching new instances.
Request Parameters
The following table describes the request parameters for CreateKeyPair. Parameter names are case
sensitive.
Element Name Definition Re-
quired?
Type
keyName A unique name for this key. Yes xsd:string
Response Tags
The following table describes the default response tags included in CreateKeyPair responses.
Element Name Definition
keyName The key name provided in the original request.
keyFingerprint A SHA-1 digest of the DER encoded private key.
keyMaterial An unencrypted PEM encoded RSA private key.
Sample Request
<CreateKeyPair xmlns="http://ec2.amazonaws.com/doc/2006-06-26">
<keyName>example-key-name</keyName>
</CreateKeyPair>
Sample Response
<CreateKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2006-06-26">
<keyName>example-key-name</keyName>
<keyFingerprint>1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f</
keyFingerprint>
<keyMaterial>-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQC2i/Sgs5BGGd4sunpYQfEkcprgzP9M/hnVJTc1j0nZBeIE2JBuLRSNoqkO7Gw8
nBcdNptaLedzqN8t78jGkX1TPWVAKJTfxRSvU/oViGJaRqIBar0Mpc/wC27kyzHezUNS5+mvONb3
4h/j2EZwDLY75Uxrpka0aN6OkvyIP5gYMQIDAQABAoGAOKH65tBOdjEYSHAh/LeYhGI5wnxWyCAd
Amazon EC2
Developer Guide
59
C49cLXWix32XvUEircu2kKpiIIsgmT0jvqBuWe/b2noNo0a81z3TzzRYyLvn5J8mUlL6a8nsssQ3
xCHkGM+SE7ZzfBS5WUkbh5Exd3ZXKfCJvJW6auOzJ581JB5yUNbqixWzHuQGGAECQQDwq4LQoyb5
OVSpZwSy+GW/p0yRsqRp89ECNQ+hySGBjkSXBcbt75C+5ebo88/V2V4QOGGa0T0tMsMgKTJ8oukh
AkEAwiyoFM0Zwk0Os3rBZ8PyZoNW5e5SBwrEbLRv4JCaNiQme0ighsDr2bL/nGLI7p13g22+9REM
i/WAmsln50H9EQJASMun6tGepT2pFQBbFIM7y4egCmXdg0rDSoagLtB2eQh+SKvvquKOhp9lg8rT
b5yq7f8PztNBTN2Q1baAVeC04QJAGgN5kS/ZH5rLOWhcuNYbh3hZD/zZqG/c2ONjiaZVwqMdNK8K
MoNuFYBRllX1rWITPNxbFOHv2GBPlm0dKnJAwQJBAOgwjgLY3UpXFX9ZvG4RGEYgfui49Ffz10CH
5sSZpsFYn42E6a2NUJeL4hTzfbGTQ8iCIVjOXFH/9XLTDCNQEPM=
-----END RSA PRIVATE KEY-----</keyMaterial>
</CreateKeyPairResponse>
Related Operations
DescribeKeyPairs
DeleteKeyPair
RunInstances
DescribeKeyPairs
The DescribeKeyPairs operation returns information about keypairs available for use by the user
making the request. Selected keypairs may be specified or the list may be left empty if information for
all registered keypairs is required.
Request Parameters
The following table describes the request parameters for DescribeKeyPairs. Parameter names are
case sensitive.
Element Name Definition Re-
quired?
Type
keySet Keypair IDs to describe. Yes (but
may be
empty)
xsd:string[]
Response Tags
The following table describes the default response tags included in DescribeKeyPairs responses.
Element Name Definition
keySet A list of keypair descriptions
Sample Request
<DescribeKeyPairs xmlns="http://ec2.amazonaws.com/doc/2006-06-26">
<keySet>
<item>
<keyName>example-key-name</keyName>
</item>
</keySet>
</DescribeKeyPairs></SOAP-ENV:Body></SOAP-ENV:Envelope>
Amazon EC2
Developer Guide
60
Previous Page Next Page