/gmail/v1/users/{userId}/settings/cse/keypairs
GET
/gmail/v1/users/{userId}/settings/cse/keypairsLists client-side encryption key pairs for an authenticated user.
Request
The requester's primary email address. To indicate the authenticated user, you can use the special value me
.
The number of key pairs to return. If not provided, the page size will default to 20 entries.
Pagination token indicating which page of key pairs to return. If the token is not supplied, then the API will return the first page of results.
Request samples
Responses
One page of the list of CSE key pairs installed for the user.
Output only. If a key pair is set to DISABLED
, the time that the key pair's state changed from ENABLED
to DISABLED
. This field is present only when the key pair is in state DISABLED
.
Output only. The current state of the key pair.
Output only. The immutable ID for the client-side encryption S/MIME key pair.
Output only. The public key and its certificate chain, in PEM format.
Input only. The public key and its certificate chain. The chain must be in PKCS#7 format and use PEM encoding and ASCII armor.
Metadata for instances of this key pair's private key.
Output only. The email address identities that are specified on the leaf certificate.
Pagination token to be passed to a subsequent ListCseKeyPairs call in order to retrieve the next page of key pairs. If this value is not returned, then no further pages remain.
{
"cseKeyPairs": [
{
"disableTime": "string",
"enablementState": "stateUnspecified",
"keyPairId": "string",
"pem": "string",
"pkcs7": "string",
"privateKeyMetadata": [
{
"kaclsKeyMetadata": {
"kaclsData": "string",
"kaclsUri": "string"
},
"privateKeyMetadataId": "string"
}
],
"subjectEmailAddresses": [
"string"
]
}
],
"nextPageToken": "string"
}