All Products
Search
Document Center

Key Management Service:GetClientKey

更新時間:Oct 11, 2023

Queries the information about a client key.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes GetClientKey

The operation that you want to perform. Set the value to GetClientKey.

ClientKeyId String Yes KAAP.66abf237-63f6-4625-b8cf-47e1086e****

The ID of the client key.

Response parameters

Parameter

Type

Example

Description

RequestId String 63d849a6-045b-4a57-ad9f-c5f756cea9e9

The ID of the request, which is used to locate and troubleshoot issues.

ClientKeyId String KAAP.66abf237-63f6-4625-b8cf-47e1086e****

The ID of the client key.

CreateTime String 2023-08-31T09:14:38Z

The time when the client key was created.

KeyAlgorithm String RSA_2048

The private key algorithm of the client key.

KeyOrigin String KMS_PROVIDED

The provider of the client key.

Currently, only Key Management Service (KMS) is supported. The value is fixed as KMS_PROVIDED.

PublicKeyData String -----BEGIN CERTIFICATE-----\nMIIDcjCCAlqgAwIBAgIQT/sAVRxwYp54mrw****-----END CERTIFICATE-----

The content of the public key of the client key.

NotAfter String 2028-08-31T17:14:33Z

The end of the validity period of the client key.

NotBefore String 2023-08-31T17:14:33Z

The beginning of the validity period of the client key.

AapName String aap_test

The name of the application access point (AAP).

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetClientKey
&ClientKeyId=KAAP.66abf237-63f6-4625-b8cf-47e1086e****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetClientKeyResponse>
    <RequestId>63d849a6-045b-4a57-ad9f-c5f756cea9e9</RequestId>
    <ClientKeyId>KAAP.66abf237-63f6-4625-b8cf-47e1086e****</ClientKeyId>
    <CreateTime>2023-08-31T09:14:38Z</CreateTime>
    <KeyAlgorithm>RSA_2048</KeyAlgorithm>
    <KeyOrigin>KMS_PROVIDED</KeyOrigin>
    <PublicKeyData>-----BEGIN CERTIFICATE-----\nMIIDcjCCAlqgAwIBAgIQT/sAVRxwYp54mrw****-----END CERTIFICATE-----</PublicKeyData>
    <NotAfter>2028-08-31T17:14:33Z</NotAfter>
    <NotBefore>2023-08-31T17:14:33Z</NotBefore>
    <AapName>aap_test</AapName>
</GetClientKeyResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "63d849a6-045b-4a57-ad9f-c5f756cea9e9",
  "ClientKeyId" : "KAAP.66abf237-63f6-4625-b8cf-47e1086e****",
  "CreateTime" : "2023-08-31T09:14:38Z",
  "KeyAlgorithm" : "RSA_2048",
  "KeyOrigin" : "KMS_PROVIDED",
  "PublicKeyData" : "-----BEGIN CERTIFICATE-----\\nMIIDcjCCAlqgAwIBAgIQT/sAVRxwYp54mrw****-----END CERTIFICATE-----",
  "NotAfter" : "2028-08-31T17:14:33Z",
  "NotBefore" : "2023-08-31T17:14:33Z",
  "AapName" : "aap_test"
}

Error codes

For a list of error codes, see Service error codes.