GuideReference
TrainingSupportCommunity
Guide

Account switch keys

akamai_iam_account_switch_keys

Get a list of your account switch keys.

data "akamai_iam_account_switch_keys" "my_account_switch_keys" {
}

output "my_account_switch_keys" {
  value = data.akamai_iam_account_switch_keys.my_account_switch_keys
}
Changes to Outputs:
  + my_account_switch_keys = {
      + account_switch_keys = [
          + {
              + account_name       = "Account 1"
              + account_switch_key = "A-CCT1234:1ABCD"
            },
            {
              + account_name       = "Account 2"
              + account_switch_key = "A-CCT2345:2EFGH"
            },
        ]
      + client_id           = null
      + filter              = null
    }

Arguments

Pass this data source empty to get all of your account switch keys or provide optional arguments to narrow down the results.

ArgumentRequiredDescription
client_idAn API client's ID.
filterSorts the returned list. Options are:
  • account_id. An account ID.
  • account_name. An account name.

Attributes

Returned is a list of account switch keys for your or the given client ID.

AttributeDescription
account_switch_keysA list of IDs to accounts other than the default account. Contains:
  • account_switch_key. The ID of an account other than the default.
  • account_name. The account's name.
client_idAn API client's ID.
filterSorts the returned list. Options are:
  • account_id. An account ID.
  • account_name. An account name.