Skip to main content

Get SaaS marketplace account

Contributors netapp-ranuk

You can use this workflow to retrieve the current marketplace account and subscriptions.

Before you begin

Every cloud account can optionally have a subscription associated with it. The subscription identifies how the various cloud services used by the account are charged. When retrieving the following SaaS accounts, notice that the subscriptionId values in the cloudAccounts array objects match the id values in the associated subscription arrays for the three cloud providers.

Note Each cloud account can have exactly zero or one subscription. You must have a subscription when creating a working environment using PAYGO ("pay as you go").
HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Resource path

GET

/occm/api/occm/saas-mp-service/account

Curl example
curl --request GET \
--location "https://cloudmanager.cloud.netapp.com/occm/api/occm/saas-mp-service/account" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
Input parameters

None

JSON output example

The JSON output example shows the subscriptions and in each case the account it is associated with.

Example output
{
    "awsSubscriptions": [
        {
            "id": "awsid00000",
            "name": "aws-sub-a2",
            "provider": "aws",
            "active": true
        }
    ],
    "azureSubscriptions": [],
    "gcpSubscriptions": [
        {
            "id": "gcp-xxxx0000",
            "name": "GCP subscription",
            "provider": "gcp",
            "active": true
        }
    ],
    "eligibleForFreeTrialAws": false,
    "eligibleForFreeTrialGcp": false,
    "eligibleForFreeTrialAzure": false,
    "cloudAccounts": [
        {
            "cloudAccountId": "000000",
            "provider": "aws",
            "subscriptionId": "aws-xxxxx000000xxxxxxx0000"
        },
        {
            "cloudAccountId": "occm-dev",
            "provider": "gcp",
            "subscriptionId": "gcp-xxx00000xxx0000"
        },
        {
            "cloudAccountId": "occm-host",
            "provider": "gcp",
            "subscriptionId": "gcp-xxxx000000xxx00000"
        }
    ]
}