My feature request is the ability to retrieve this key id through the terraform provider as well. This would provide the possiblity to safely iterate through the list of ssh keys and it would also provide the chance to address each key individually.
This would make the result look like this:
[
{
id = 11111111
key = "ssh-rsa AAAASsdafasdfsadlewwelrwerwerwlerkwjerlkwerlw...",
},
{
id = 11112222
key = "ssh-ed25519 AAAASsdafasdfsdfsdfsdfeefefwsc322323asddfsadl...",
}
]
This would also change the data type of the result from list(string) to list(map(string)).
Since this is a breaking change (unless terraform introduces a map default type that is returned, when addressing a map directly), it should be realized through an additional api call.
Thank you very much.
SDK Version
6.2.0
API Version
2022-11-28
Relevant log output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Describe the need
When this provider is used to retrieve the public ssh keys of a user, it only provides a list of ssh keys, as you would get when calling:
This list only cotains the ssh key list, but it does not deliver any ids. Although it seems to be sorted by key id.
The result looks like this:
Yet, when calling the api, we can also retrieve the SSH Key id. Api Documentation Link
My feature request is the ability to retrieve this key id through the terraform provider as well. This would provide the possiblity to safely iterate through the list of ssh keys and it would also provide the chance to address each key individually.
This would make the result look like this:
This would also change the data type of the result from
list(string)
tolist(map(string))
.Since this is a breaking change (unless terraform introduces a map default type that is returned, when addressing a map directly), it should be realized through an additional api call.
Thank you very much.
SDK Version
6.2.0
API Version
2022-11-28
Relevant log output
No response
Code of Conduct