List key pairs in a project.
curl --request GET \ --url 'https://stratum.example.com/v1/projects/example/compute/key-pairs?limit=100' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Opaque cursor from a previous response’s nextPageToken; omit for the
first page. A token that cannot be parsed is treated as no token, so a
client gets the first page rather than a 400.
Cursor-paginated, ordered name, id. Ordering on
name alone is not a total order, so id is the tiebreaker: without
it a cursor sitting on two same-named rows repeats or skips one.
This endpoint returned every matching row with no limit of any kind until.
Responses
Section titled “Responses”Key pairs.
object
object
Customer-chosen name, unique within the project.
Parsed from the OpenSSH-format public key.
SHA-256 fingerprint in OpenSSH format (SHA256:<base64>).
OpenSSH-format public key (ssh-ed25519 AAAA... user@host).
AWS-shape resource tags. Freeform UTF-8 keys (1-128 bytes, no
leading/trailing whitespace) mapped to freeform UTF-8 values
(0-256 bytes). Max 50 tags per resource. Reserved prefixes
(stratum.dev/, stratum.platform_health., stratum:,
aws:) return 400 RESERVED_NAMESPACE on customer input.
PATCH replaces the whole map..
object
Example
{ "items": [ { "keyType": "ssh-rsa" } ]}