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
Argument | Required | Description |
---|---|---|
api | ✔️ | Your API ID. |
resource_operations | The 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.
Updated 3 days ago