Currently, there is no way to extract the API tokens for System Accounts. Tokens can be extracted via the following undocumented API: <base url>/admin/system-accounts/<uuid>/tokens.
One way to achieve this is to detect in the pact_user resource the type == "system", and if it is a system account additionally fetch and store the tokens.
This way, the value could be extracted from the terraform state file.
Currently, there is no way to extract the API tokens for System Accounts. Tokens can be extracted via the following undocumented API:
<base url>/admin/system-accounts/<uuid>/tokens
.One way to achieve this is to detect in the
pact_user
resource thetype == "system"
, and if it is a system account additionally fetch and store the tokens.This way, the value could be extracted from the terraform state file.