Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap application settings API #31

Open
chris-peterson opened this issue Mar 21, 2022 · 0 comments
Open

Wrap application settings API #31

chris-peterson opened this issue Mar 21, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@chris-peterson
Copy link
Owner

Recently, I ran this:

$(Invoke-GitlabApi GET 'application/settings').PSObject.Properties | Where-Object Name -match 'throttle.*api' | Select-Object Name,Value
Name                                                        Value
----                                                        -----
throttle_authenticated_api_enabled                           True
throttle_authenticated_api_period_in_seconds                  600
throttle_authenticated_api_requests_per_period               1500
throttle_authenticated_packages_api_enabled                 False
throttle_authenticated_packages_api_period_in_seconds          15
throttle_authenticated_packages_api_requests_per_period      1000
throttle_authenticated_files_api_enabled                    False
throttle_authenticated_files_api_period_in_seconds             15
throttle_authenticated_files_api_requests_per_period          500
throttle_authenticated_deprecated_api_enabled               False
throttle_authenticated_deprecated_api_period_in_seconds      1800
throttle_authenticated_deprecated_api_requests_per_period    3600
throttle_unauthenticated_api_enabled                        False
throttle_unauthenticated_api_period_in_seconds               3600
throttle_unauthenticated_api_requests_per_period             3600
throttle_unauthenticated_packages_api_enabled               False
throttle_unauthenticated_packages_api_period_in_seconds        15
throttle_unauthenticated_packages_api_requests_per_period     800
throttle_unauthenticated_files_api_enabled                  False
throttle_unauthenticated_files_api_period_in_seconds           15
throttle_unauthenticated_files_api_requests_per_period        125
throttle_unauthenticated_deprecated_api_enabled             False
throttle_unauthenticated_deprecated_api_period_in_seconds    3600
throttle_unauthenticated_deprecated_api_requests_per_period  3600

Would be nice to have something like:

Get-GitlabApplicationSetting -SettingName 'throttle.*api'

and have it return a pretty formatted PS object

@chris-peterson chris-peterson added enhancement New feature or request good first issue Good for newcomers labels Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant