For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/docs/manifest/functions/collections/keys.md.

keys

Returns a list containing all keys from a map, sorted lexically.

Signature

keys(map: map) -> list(string)

Parameters

ParameterTypeRequiredDescription
mapmapyesSource map

Return value

Returns the documented result for the function signature.

Example

respond { status = 200, body = keys(ctx.request.body) }