Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.5 KB

File metadata and controls

53 lines (35 loc) · 1.5 KB

PSAdGuardDNS.PSAdGuardDNS\Api.AccountApi

All URIs are relative to https://api.adguard-dns.io

Method HTTP request Description
Get-AccountLimits GET /oapi/v1/account/limits Gets account limits

Get-AccountLimits

AccountLimits Get-AccountLimits

Gets account limits

Example

# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: ApiKey
$Configuration.ApiKey.Authorization = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.Authorization = "Bearer"



# Gets account limits
try {
    $Result = Get-AccountLimits
} catch {
    Write-Host ("Exception occurred when calling Get-AccountLimits: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
    Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}

Parameters

This endpoint does not need any parameter.

Return type

AccountLimits (PSCustomObject)

Authorization

ApiKey, AuthToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]