What are you really trying to do?
I want to find service account API keys that are expiring soon so that I can automate notifying the owner.
Describe the bug
The json output of:
temporal cloud apikey list -o json
contains snakecase and numerical values for ownerType e.g.
"owner_type": 2
The plain command:
temporal cloud apikey list
produces readable values e.g. SERVICE_ACCOUNT
the get command temporal cloud apikey get --key-id <some-value> -o json produces a different value again:
"ownerType": "OWNER_TYPE_SERVICE_ACCOUNT"
Minimal Reproduction
temporal cloud apikey list
then
temporal cloud apikey list -o json
Environment/Versions
temporal version 1.8.2 (Server 1.31.2, UI 2.50.1)
cloud version 0.1.0
Additional context
I think ideally it should SERVICE_ACCOUNT in all cases.
What are you really trying to do?
I want to find service account API keys that are expiring soon so that I can automate notifying the owner.
Describe the bug
The json output of:
temporal cloud apikey list -o jsoncontains snakecase and numerical values for ownerType e.g.
"owner_type": 2
The plain command:
temporal cloud apikey listproduces readable values e.g. SERVICE_ACCOUNT
the get command
temporal cloud apikey get --key-id <some-value> -o jsonproduces a different value again:"ownerType": "OWNER_TYPE_SERVICE_ACCOUNT"
Minimal Reproduction
temporal cloud apikey list
then
temporal cloud apikey list -o json
Environment/Versions
temporal version 1.8.2 (Server 1.31.2, UI 2.50.1)
cloud version 0.1.0
Additional context
I think ideally it should SERVICE_ACCOUNT in all cases.