CheckPointSW / terraform-provider-checkpoint

Terraform provider for Check Point
https://www.terraform.io/docs/providers/checkpoint/
Mozilla Public License 2.0
28 stars 40 forks source link

NAT api issues #54

Closed gertzakis closed 3 years ago

gertzakis commented 3 years ago

Hello there,

i noticed these two problems with the NAT resource "checkpoint_management_nat_rule".

  1. There is no "name" parameter in the mgmt api.
  2. When we run "terraform apply" and the NAT rules are already created, we get an error response
    Error: failed to execute API call
    Status: 400 Bad Request
    Code: generic_err_missing_required_parameters
    Message: Missing parameter: [layer]

    and again the "layer" parameter is not existing on the mgmt api.

Thank you :)

chkp-royl commented 3 years ago

Hi @gertzakis , Thanks for reporting this issue.

  1. "name" parameter of nat-rule is added in API v1.7 (R81) and it's optional. See here: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-nat-rule~v1.7%20
  2. This bug was fixed in v1.0.3 of provider. Please make sure to update provider to the latest version.

Thanks, Roy

gertzakis commented 3 years ago

Hello Roy,

thank you for your prompt reply. I upgraded the provider to 1.0.3 and NAT rules are updated successfully.

Thank you :)