Skip to main content

Get tenants

Contributors netapp-ranuk dmp-netapp

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

Step 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 BlueXP web UI. See Get required identifiers for more information.

Step 2. Get the account workspace

You can issue the REST API call to retrieve the account workspace.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Resource path

GET

/tenancy/account/{account_id}/workspace

Curl example
curl --request GET \
--location "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.

JSON Output example

The JSON output example shows the list of tenants.

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