Resource operations

Update or delete your API's resources. To delete a resource, run terraform destroy.

resource "akamai_apidefinitions_resource_operations" "my_operations" {
  api_id = 123456
  resource_operations = file("${path.module}/resource-spec.json")
}
my_operations = {
  "api_id" = 123456
  "resource_operations" = <<-EOT
  {
    "operations": {
      "/test": {
        "testPurpose": {
          "method": "GET",
          "purpose": "SEARCH"
        }
      }
    }
  }
  EOT
  "version" = 3
}

Arguments

ArgumentRequiredDescription
api✔️Your API ID.
resource_operationsThe full or relative path to a JSON-formatted operations object.

Attributes

There is no standard output for this resource. Changes are reflected in your state file and vary depending on the information you sent.