Create a service account
Create a service account and list the service accounts in your tenant:Give the account access
Use Roles and bindings to create a custom role and assign it withmthr iam.
Sign in as an active tenant owner. Choose an enabled custom role belonging to
the same tenant as the active service account. Built-in roles, including Owners,
cannot be assigned to service accounts.
bindings ls. A new role version does not change existing assignments.
Manage credentials
Issue a credential for the automation:Use a credential
Send the credential as a bearer token to the Mount Thor API athttps://customer-api.mountthor.com. The secret starts with mt_sa_v1_.
mthr as the service account, save the credential as JSON and point the
CLI at the file:
mthr bm and mthr vm support ls, create and
delete. Other commands are refused until you unset it. On an account with
customer-managed compute, mthr 0.3.81 and later run whoami, bm ls,
bm get and bm report instead. See
Customer-managed compute.
Disable a service account
Deactivate the service account when the automation is retired:Revoke access
Copy the binding ID from the direct-grants list returned bymthr iam bindings ls --service-account-id SERVICE_ACCOUNT_ID, then revoke
that assignment: