imperva / terraform-provider-incapsula

This package is a plugin for Terraform, and is designed to be used to auto-provision sites in Incapsula via Incapsula’s API from the terraform cli/yaml configurations.
Mozilla Public License 2.0
44 stars 72 forks source link

incapsula_api_security_site_config fails when site is in subaccount #118

Closed austin-ek closed 2 years ago

austin-ek commented 2 years ago

incapsula_api_security_site_config fails when used to manage a site that belongs to a subaccount.

Error: Error status code 400 from Incapsula service when updating api-security site configuration: {"value":"Specified site or account do not exist. Make sure you have a valid account and a valid site before attempting to execute an operation on an API","isError":true}

I did some investigating and found that there's no account_id option on the API security API https://docs.imperva.com/bundle/api-security/page/74732.htm

BrachaY commented 2 years ago

Hi @austin-ek Thanks for reaching out. We will investigate and update you here soon.

BrachaY commented 2 years ago

@austin-ek It turns out we don't support editing sub account's api-security configuration with parent account credentials. It is in our future plans to support it, but I don't have an ETA.

I'm closing the ticket for now.