|
| 1 | +TOPIC |
| 2 | + about_Pfa2Configuration |
| 3 | + |
| 4 | +SHORT DESCRIPTION |
| 5 | + Describes how to set global PureStoragePowerShellSDK2 options. |
| 6 | + |
| 7 | +LONG DESCRIPTION |
| 8 | + The PureStoragePowerShellSDK2 supports configuration of several options globally to allow |
| 9 | + an administrator to set some default behaviors. |
| 10 | + |
| 11 | + The configuration file is always named: |
| 12 | + App.Config.JSON |
| 13 | + |
| 14 | + This file is located in the same folder at the PureStoragePowerShellSDK2 module. |
| 15 | + Typically this will be in one of a several locations |
| 16 | + |
| 17 | + %ProgramFiles%\WindowsPowerShell\Modules\PureStoragePowerShellSDK2\ |
| 18 | + %USERPROFILE%\Documents\WindowsPowerShell\Modules\PureStoragePowerShellSDK2 |
| 19 | + |
| 20 | + The exact location can be determined with PowerShell after importing the SDK |
| 21 | + |
| 22 | + Import-Module PureStoragePowerShellSDK2 |
| 23 | + Get-Module PureStoragePowerShellSDK2 | Select-Object Name, Path | Format-List |
| 24 | + |
| 25 | + PureRest.HttpTimeoutInMilliseconds: |
| 26 | + Gets or sets the timeout value for the HTTP requests. |
| 27 | + The default is 30000ms (30 seconds). |
| 28 | + |
| 29 | + PureRest.NoOfRetries: |
| 30 | + How many times to retry on network failure. |
| 31 | + The default value is 3. |
| 32 | + |
| 33 | + PureRest.RetryIntervalBase: |
| 34 | + The time (in ms) to wait before retrying a web request. Only retries on network issues, |
| 35 | + not for HTTP errors. |
| 36 | + The default value is 100ms. |
| 37 | + |
| 38 | + PureRest.RetryIntervalGrowthFactor: |
| 39 | + The growth factor of the retryIntervalBase for subsequent retries. |
| 40 | + The default value is 3. |
| 41 | + |
| 42 | + PureRest.SshPublicKeyTimeoutInMilliseconds: |
| 43 | + Time to wait for the "Please enter public key" prompt from SSH. |
| 44 | + The default value is 5000ms. |
| 45 | + |
| 46 | + PureRest.SshPublicKeyResponseTimeoutInMilliseconds: |
| 47 | + Time to wait for response or error from pureapiclient create. |
| 48 | + The default value is 1000ms. |
| 49 | + |
| 50 | + PureRest.SshPublicKeyWriteTimeoutInMilliseconds: |
| 51 | + Time to wait after writing public key before reading response from pureapiclient create. |
| 52 | + The default value is 5ms. |
| 53 | + |
| 54 | + PureRest.LoggingToArrayEnabled: |
| 55 | + Can be set to false to disable logging REST commands to the array. |
| 56 | + The default value is true. |
| 57 | + |
| 58 | +EXAMPLES |
| 59 | + |
| 60 | + Example 1: Set the default HTTP timeout to 60 seconds |
| 61 | + { |
| 62 | + "PureRest.HttpTimeoutInMilliseconds": "60000" |
| 63 | + } |
| 64 | + |
| 65 | + Example 2: All of the supported options specified with their default values |
| 66 | + { |
| 67 | + "PureRest.HttpTimeoutInMilliseconds": "30000", |
| 68 | + "PureRest.NoOfRetries": 3, |
| 69 | + "PureRest.RetryIntervalBase": 100, |
| 70 | + "PureRest.RetryIntervalGrowthFactor": 3, |
| 71 | + "PureRest.SshPublicKeyResponseTimeoutInMilliseconds": 1000, |
| 72 | + "PureRest.SshPublicKeyTimeoutInMilliseconds": 5000, |
| 73 | + "PureRest.SshPublicKeyWriteTimeoutInMilliseconds": 5 |
| 74 | + } |
| 75 | + |
| 76 | + Example 3: Opening the configuration file with Notepad: |
| 77 | + |
| 78 | + PS C:\> Import-Module PureStoragePowerShellSDK2 |
| 79 | + PS C:\> Get-Module PureStoragePowerShellSDK2 | Select-Object Name, Path | Format-List |
| 80 | + Name : PureStoragePowerShellSDK2 |
| 81 | + Path : C:\Program Files\WindowsPowerShell\Modules\PureStoragePowerShellSDK2\PureStoragePowerShellSDK2.dll |
| 82 | + |
| 83 | + PS C:\> Notepad "C:\Program Files\WindowsPowerShell\Modules\PureStoragePowerShellSDK2\App.Config.JSON" |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +KEYWORDS |
| 88 | + |
| 89 | + |
| 90 | +SEE ALSO |
| 91 | +- Connect-Pfa2Array |
| 92 | + |
0 commit comments