Get tenants

Contributors netapp-ranuk Download PDF of this page

You can retrieve a list of tenants visible to the user currently signed in through the account workspace.

1. Get the account identifier

Perform the workflow Get supported services to retrieve the account ID.

Note You can also get the account identifier through the Cloud Manager web UI. See Get the client and account identifers for more information.

2. Get the account workspace

HTTP method Resource path

GET

/tenancy/account/{account_id}/workspace

curl example
curl --location --request GET "https://cloudmanager.cloud.netapp.com/tenancy/account/<ACCOUNT_ID>/workspace" --header 'Content-Type: application/json' --header 'Authorization: Bearer <ACCESS_TOKEN>'
Input parameters

Path parameter with the account ID.

Output

The JSON output example shows the list of tenants.

JSON output example
[
    {
        "workspacePublicId": "workspace-ced4x9X4",
        "workspaceName": "Workspace-1",
        "associatedAgents": []
    }
]