Skip to main content

Configuration for pulumi-namecheap.

npm package pulumi-namecheap version 2.4.6. Pulumi bridge terraform-provider version 1.4.0. Upstream provider registry.opentofu.org/namecheap/namecheap version 2.9.4.

An explicit provider is new namecheap.Provider(name, args). Stack configuration is a pulumi.Config object named namecheap.

A value marked secret is passed through pulumi.secret or listed in additionalSecretOutputs on the provider resource.

Fields#

PropertyTypeSourceSecretDescription
apiKeystringprovider args; stack config via config.getyesThe namecheap API key
apiUserstringprovider args; stack config via config.getyesA registered api user for namecheap
clientIpstringprovider args; stack config via config.getnoThe public IP address the Namecheap API sees as the caller; it must be whitelisted at https://ap.www.namecheap.com/settings/tools/apiaccess/whitelisted-ips. Leaving it unset now auto-detects this machine’s public IP address via an outbound HTTPS request to api.ipify.org (previously it defaulted to the non-functional 0.0.0.0); if that request fails (for example on a host with no outbound network access), provider configuration fails with guidance to set clientIp explicitly.
maxRetriesnumberprovider args; stack config via config.getObjectnoTotal number of attempts (including the first) for a single API call before giving up. Must be >= 0. Defaults to 4, matching the SDK’s built-in retry policy. Note: because the underlying SDK treats a zero value as “unset”, setting this to 0 falls back to the SDK default of 4 attempts rather than disabling retries.
requestTimeoutstringprovider args; stack config via config.getnoTimeout applied to the underlying HTTP client for a single request to the Namecheap API, as a Go duration string (e.g. ”30s”, “1m”). Must parse and be greater than zero. Defaults to ”30s”.
requestsPerMinutenumberprovider args; stack config via config.getObjectnoClient-side rate limit applied to the Namecheap API, in requests per minute. Must be between 1 and 20 (Namecheap’s documented primary quota). Defaults to 20, matching the SDK’s built-in limiter.
retryBaseDelaystringprovider args; stack config via config.getnoFirst backoff delay before a retried API call, as a Go duration string (e.g. “500ms”, “5s”). Subsequent delays double up to retry_max_delay, and each one is then jittered to between 50% and 100% of that value. Must parse, be greater than zero, and not exceed retry_max_delay. Defaults to “500ms”, matching the SDK’s built-in retry policy. Raise it when the API is rate-limiting: waiting longer between fewer attempts costs less quota than retrying quickly, because every attempt is itself a request.
retryMaxDelaystringprovider args; stack config via config.getnoCap on any single backoff delay between retried API calls, as a Go duration string (e.g. ”30s”, “1m”). Must parse, be greater than zero, and be at least retry_base_delay. Defaults to ”30s”, matching the SDK’s built-in retry policy.
retryMaxElapsedstringprovider args; stack config via config.getnoMaximum total wall-clock time to spend retrying a single API call, as a Go duration string (e.g. “2m”, ”90s”). Must parse and be greater than zero. Defaults to “2m”, matching the SDK’s built-in retry policy.
useSandboxbooleanprovider args; stack config via config.getObjectnoUse sandbox API endpoints
userNamestringprovider args; stack config via config.getyesA registered user name for namecheap