private/InvokeGCS.ps1


<#
.Synopsis
Script for making GCS API calls.
 
.Description
The primary function (Call-Url) within this script is crafted to interact with the GCS API, returning a response if any, and allowing a maximum of 3 retry attempts.
 
.Parameter CommandType
A mandatory parameter indicating the CommandType for the API call.
 
.Parameter Token
A necessary parameter specifying the OAuth2 token used in the API call.
 
.Parameter Method
A mandatory parameter specifying the API call method (e.g., Get, Post, Put, Delete).
 
.Parameter UrlPath
An required parameter specifying the URL path. For example, if the URL is https://www.example.com/v1.0/admin/connection/connectionid, then /v1.0/admin/connection/connectionid is the URL path.
 
.Parameter TenantId
A required parameter specifying the TenantId for which the API call is intended.
#>



function GetEnvironmentFromTenant {
    param(
        [parameter(Mandatory=$true)]
        [string]$TenantId
    )

    Write-Host "GetEnvironmentFromTenant for Tenantid: $($TenantId)"
    New-Variable -Name GccSubRegion -Value "gcc" -Option Constant
    New-Variable -Name UsgRegion -Value "usg" -Option Constant
    New-Variable -Name UsGovRegion -Value "usgov" -Option Constant
    New-Variable -Name DodSubRegion -Value "dod" -Option Constant
    New-Variable -Name DodConSubRegion -Value "dodcon" -Option Constant
    New-Variable -Name GCCTenantRegionScope -Value "na" -Option Constant

    $headers = @{"Accept" = "application/json"}
    $tenantCloudInfo = Invoke-RestMethodWithRetries -ApiName "GetTenantCloudInfo" -Uri "https://login.microsoftonline.com/$TenantId/.well-known/openid-configuration" -Headers $headers -Method Get | ConvertFrom-Json
    
    $regionScope = ""
    $regionSubScope = ""

    if( -not ([string]::IsNullOrEmpty($tenantCloudInfo.tenant_region_scope)) )
    {
        $regionScope = ([string]$tenantCloudInfo.tenant_region_scope).ToLower()
    }

    if( -not ([string]::IsNullOrEmpty($tenantCloudInfo.tenant_region_sub_scope)) )
    {
        $regionSubScope = ([string]$tenantCloudInfo.tenant_region_sub_scope).ToLower()
    }

    if(($regionScope -eq $GCCTenantRegionScope) -and ($regionSubScope -eq $GccSubRegion))
    {
        return "GCC"
    }
    elseif (($regionScope -eq $UsgRegion) -or ($regionScope -eq $UsGovRegion))
    {
        if($regionSubScope -eq $DodConSubRegion)
        {
            return "GCCH"
        }
        elseif($regionSubScope -eq $DodSubRegion)
        {
            return "DoD"
        }
    }

    return "PROD"
}

function Invoke-RestMethodWithRetries {
    param (
        [parameter(Mandatory=$true)]
        [string]$apiName,

        [parameter(Mandatory=$true)]
        [string]$uri,

        [parameter(Mandatory=$true)]
        [hashtable]$headers,

        [parameter(Mandatory=$true)]
        [string]$method,

        [parameter(Mandatory=$false)]
        [object]$requestBody = $null,

        [parameter(Mandatory=$false)]
        [int]$maxRetries = 3,

        [parameter(Mandatory=$false)]
        [bool]$ShouldBrowserHandleRedirects = $false
    )

    $retryCount = 0
    $errorMessage = ""
    do
    {
        try 
        {
            Write-Host "Request Made for $($apiName)"
            if($ShouldBrowserHandleRedirects -eq $true) {
                if ($requestBody) {
                    # Send the request
                    $response = Invoke-WebRequest -Uri $uri -Headers $headers -Method $method -Body $requestBody -MaximumRedirection 0 -ErrorAction SilentlyContinue
                    
                    # Extract the redirect URL
                    $redirectUrl = $response.Headers.Location

                    # Open the redirect URL in the default browser
                    Start-Process -FilePath "msedge.exe" -ArgumentList "$redirectUrl -inprivate"
                    return
                } 
                else {
                    # Send the request
                    $response = Invoke-WebRequest -Uri $uri -Headers $headers -Method $method -MaximumRedirection 0 -ErrorAction SilentlyContinue
                    
                    # Extract the redirect URL
                    $redirectUrl = $response.Headers.Location

                    # Open the redirect URL in the default browser
                    Start-Process -FilePath "msedge.exe" -ArgumentList "$redirectUrl -inprivate"
                    return    
                }
            }
            else {
                if ($requestBody) {
                    return Invoke-WebRequest -Uri $uri -Headers $headers -Method $method -Body $requestBody
                } 
                else {
                    return Invoke-WebRequest -Uri $uri -Headers $headers -Method $method
                }
            }
        } 
        catch
        {
            $errorMessage = $_
            $retryCount++
            $exponentialBackoff = [int]([Math]::Pow(2,$retryCount))
            Write-Warning "Request failed for $apiName. Retrying (Attempt $retryCount)..."
            Start-Sleep -Seconds $exponentialBackoff  # Increase the wait time with each retry
        }
    }
    while ($retryCount -lt $maxRetries)

    throw "Request failed for $apiName. All the retries are exhausted. `n$errorMessage"
}

# Select BaseUrl on the basis of Environment
function SelectBaseUrl {
    param (
        [Parameter(Mandatory=$true)]
        [string]$selectedEnvironment   
    )
    
    if ($selectedEnvironment -eq "GCC") 
    {
        return "https://gcsgcc.office.com"
    } elseif ($selectedEnvironment -eq "GCCH") 
    {
        return "https://gcs.office365.us"
    } elseif ($selectedEnvironment -eq "PROD") 
    {
        return "https://gcs.office.com"
    }

    throw "Tenant Environment is not supported"
}

function Call-Url{
    param(
        # cmdlet type
        [Parameter(Mandatory=$true)]
        [string]
        $CommandType,

        # token details
        [Parameter(Mandatory=$true)]
        [PSCustomObject]
        $Token,

        #Method
        [Parameter(Mandatory=$true)]
        [string]
        $Method,

        #Url Path
        [Parameter(Mandatory=$true)]
        [string]
        $UrlPath,

        #Request Body
        [parameter(Mandatory=$false)]
        [object]
        $RequestBody = $null,

        # Tenant id
        [Parameter(Mandatory=$true)]
        [string]
        $TenantId,

        # Content type Header
        [Parameter(Mandatory=$false)]
        [string]
        $ContentTypeHeader = "application/json",

        [Parameter(Mandatory=$false)]
        [bool]
        $ShouldBrowserHandleRedirects = $false
    )

    try{
        $culture = Get-Culture
        $languageCode = $culture.Name
        $baseUrl = SelectBaseUrl -SelectedEnvironment (GetEnvironmentFromTenant -TenantId $TenantId)
        $headers = @{"authorization"="Bearer $($Token.AccessToken)"; "Content-Type"=$ContentTypeHeader; "Accept" = "application/json"; "Accept-Language" = "$languageCode"}
        $uri = $baseUrl + $UrlPath
        return Invoke-RestMethodWithRetries -ApiName $CommandType -Uri $uri -Headers $headers -Method $Method -RequestBody $RequestBody -ShouldBrowserHandleRedirects $ShouldBrowserHandleRedirects
    }
    catch{
        throw "error happen while calling API for $($CommandType), Error Message: $($_)"
    }
}

# SIG # Begin signature block
# MIIn9wYJKoZIhvcNAQcCoIIn6DCCJ+QCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEE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