terraform-provider-gitlab icon indicating copy to clipboard operation
terraform-provider-gitlab copied to clipboard

Enhance Personal Access Token resource to use the get single PAT endpoint

Open Shocktrooper opened this issue 2 years ago • 1 comments

Feature Description

In 15.1 a new endpoint was released for getting a single PAT vs a list. We can refactor the deletion check to use this endpoint vs going through a paginated list and checking.

https://docs.gitlab.com/ee/api/personal_access_tokens.html#get-single-personal-access-token-by-id

Do you want to implement this?

  • [ ] I would like to implement this myself 👷

Shocktrooper avatar Jun 22 '22 19:06 Shocktrooper

@Shocktrooper In case you are going to implement this please don't forgot to do implement this in an if, to still support N-2 releases :)

timofurrer avatar Jun 25 '22 15:06 timofurrer