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.
Argument | Required | Description |
---|---|---|
api_id | ✔️ | An API's ID. |
resource_path | Gets information about a resource by its path. | |
resource_name | Gets information about a resource by its name. |
Attributes
Returned is an operations
array with information about your operations.
Attribute | Description |
---|---|
api_id | Your API's ID. |
api_resource_id | An operation's resource ID. |
api_resource_logic_id | An operation's resource logic ID. |
operation_id | Your operation's ID. |
operation_name | Your operation's name. |
operation_purpose | The operation's function. Value is one of:
|
resource_path | An operation's path. |
resource_name | A operation's name. |
Updated 3 days ago