List the apps
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.
Perform the following REST API call.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
| 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 --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v2/apps" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
Curl example: Return the name, id, and state for all apps
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v2/apps?include=name,id,state" \
--include \
--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": {}
}