Manage an app
Suggest changes
You can create a managed application based on an application already known to Astra in a specific namespace. When an application is managed or defined to Astra, you can protect it by taking backups and snapshots.
Step 1: Select the namespace
Perform the workflow List the namespaces and select the namespace.
Step 2: Select the cluster
Perform the workflow List the clusters and select the cluster.
Step 3: Manage the application
Perform the following REST API call to manage the application.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
POST |
/accounts/{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 |
---|---|---|---|
JSON |
Body |
Yes |
Provides the parameters needed to identify the application to be managed. See the example below. |
Curl example: Manage an app
curl --request POST \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v2/apps" \
--include \
--header "Content-Type: application/astra-app+json" \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN" \
--data @JSONinput
JSON input example
{
"clusterID": "7ce83fba-6aa1-4e0c-a194-26e714f5eb46",
"name": "subtext",
"namespaceScopedResources": [{"namespace": "kube-matrix"}],
"type": "application/astra-app",
"version": "2.0"
}