CiscoISE / terraform-provider-ciscoise

Terraform Provider for Cisco ISE
https://registry.terraform.io/providers/CiscoISE/ciscoise/latest/docs
MIT License
10 stars 4 forks source link

API response timeout setting #21

Closed ragu2k8 closed 2 years ago

ragu2k8 commented 2 years ago

@wastorga I have noticed one of the server did not respond to fetch patch status API request fast enough .API request was taking very long time ~>6mins and times out so its definitely an ISE server specific issue but however terraform also waits for long time, is it possible to configure timeout for rest calls in provider explicitly? i am not sure if its configurable in ISE SDK either.

image

wastorga commented 2 years ago

Hi, @ragu2k8. We are working on performing the necessary changes for your feature request. I'll update you here when we have them.

wastorga commented 2 years ago

I have implemented the change, and the release version is underway up.

The provider configuration now has the single_request_timeout for this feature.

Code extract is shown below.

# Configure provider with your  Cisco Identity Services Engine SDK credentials
provider "ciscoise" {
  # ...
  # Timeout (in seconds) for the RESTful HTTP requests
  single_request_timeout = 60
  # it can be set using the environment variable ISE_SINGLE_REQUEST_TIMEOUT
}
ragu2k8 commented 2 years ago

I have implemented the change, and the release version is ~underway~ up.

The provider configuration now has the single_request_timeout for this feature.

Code extract is shown below.

# Configure provider with your  Cisco Identity Services Engine SDK credentials
provider "ciscoise" {
  # ...
  # Timeout (in seconds) for the RESTful HTTP requests
  single_request_timeout = 60
  # it can be set using the environment variable ISE_SINGLE_REQUEST_TIMEOUT
}

cool.. you are awesome!! It works