Resource operations

Get details about your API operations.

data "akamai_apidefinitions_resource_operations" "my_operations" {
  api_id = 123456
}

output "test_config" {
  value = data.akamai_apidefinitions_resource_operations.my_operations
}
my_operations = {
  api_id      = 123456
  operations  = [
    {
      api_id                = 123456
      api_resource_id       = 98765432
      api_resource_logic_id = 234567
      operation_id          = "12a3bc4d-5678-9ef0-g12h-3i4jklm5no67"
      operation_name        = "/api/auth/card"
      operation_purpose     = "LOYALTY_POINTS"
      resource_name         = "/api/auth/card"
      resource_path         = "/api/auth/card"
    },
    {
      api_id                = 123456
      api_resource_id       = 6543210
      api_resource_logic_id = 567890
      operation_id          = "76on5mlk-j4i3-h21g-0fe9-8765d4cb3a21"
      operation_name        = "/api/auth/login"
      operation_purpose     = "LOGIN"
      resource_name         = "/api/auth/login"
      resource_path         = "/api/auth/login"
    },
  ]
  resource_name = null
  resource_path = null
}

Arguments

Pass your API's ID to get all of its details and resources or filter results by a specific resource path or name.

ArgumentRequiredDescription
api_id✔️An API's ID.
resource_pathGets information about a resource by its path.
resource_nameGets information about a resource by its name.

Attributes

Returned is an operations array with information about your operations.

AttributeDescription
api_idYour API's ID.
api_resource_idAn operation's resource ID.
api_resource_logic_idAn operation's resource logic ID.
operation_idYour operation's ID.
operation_nameYour operation's name.
operation_purposeThe operation's function. Value is one of:
  • LOGIN
  • ACCOUNT_UPDATE
  • ACCOUNT_VERIFICATION
  • ACCOUNT_CREATION
  • PASSWORD_CHANGE
  • PASSWORD_RESET
  • PAYMENT
  • GIFTCARD_BALANCE_CHECK
  • LOYALTY_POINTS
  • SEARCH
  • ADD_TO_CART
resource_pathAn operation's path.
resource_nameA operation's name.