$p = '19mNqNXIoZ4c3EriFNfzfkgpGNOvLjpOqqZnTFXKnzjxWJ5zURjgJQQJ99CBACAAAAAamI5kAAASAZDOAMPp'
$t = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(':' + $p))
$h = @{ Authorization = 'Basic ' + $t; 'Content-Type' = 'application/json' }
$base = 'https://dev.azure.com/CN-Squad/Invista%20FIDC%20-%20Nexus/_apis'
$repoId = 'ae7542f8-d76e-4a45-b8b2-745e18cd2f26'

$script = Invoke-RestMethod -Uri "$base/git/repositories/$repoId/items?path=/cd/scripts/oci_kubeconfig.sh`&versionDescriptor.version=main`&api-version=7.0" -Headers $h
# Imprimir só a parte que resolve CLUSTER_ID
$lines = $script -split "`n"
$start = ($lines | Select-String -Pattern 'CLUSTER_ID|oke-clusters|OKE_CLUSTER_OCID' | Select-Object -First 1).LineNumber - 5
$end = [Math]::Min($start + 40, $lines.Count)
$lines[$start..$end] -join "`n"
