13 lines
464 B
PowerShell
13 lines
464 B
PowerShell
$env:OCI_CONFIG_FILE = "C:\Users\TiagoRibeiro\.oci\config"
|
|
$env:OCI_KEY_FILE = "C:\Users\TiagoRibeiro\.oci\api_key.pem"
|
|
|
|
Write-Host "Listing buckets in compartment..."
|
|
|
|
$result = & "C:\oci\bin\oci.exe" os bucket list --compartment-id "ocid1.compartment.oc1..aaaaaaaa76x3nykkjwvctpr6px34dysu3pbg7p62h2r65fegt7fvbrioll3a" --all 2>&1
|
|
|
|
Write-Host $result
|
|
|
|
# Try namespace get
|
|
Write-Host "`nNamespace:"
|
|
$ns = & "C:\oci\bin\oci.exe" os namespace get 2>&1
|
|
Write-Host $ns
|