Skip to main content
A newer release of this product is available.

List the apps

Contributors dmp-netapp

You can list the applications that are currently managed by Astra. You might do this as part of finding the snapshots or backups for a specific app.

1. List the applications

Perform the following REST API call.

HTTP method Path

GET

/account/{account_id}/k8s/v2/apps

Additional input parameters

In addition to the parameters common with all REST API calls, the following parameters are also used in the curl examples for this step.

Parameter Type Required Description

include

Query

No

Optionally select the values you want returned in the response.

Curl example: Return all data for all apps
curl --location -i --request GET 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v2/apps' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>'
Curl example: Return the name, id, and state for all apps
curl --location -i --request GET 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v2/apps?include=name,id,state' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>'
JSON output example
{
    "items": [
        [
            "mysql",
            "4ee2b8fa-3696-4f32-8879-399792f477c3",
            "ready"
        ],
        [
            "postgresql",
            "3b984474-e5c9-4b64-97ee-cdeb9bcd212e",
            "ready"
        ],
    ],
    "metadata": {}
}