K8s Cluster APIs for IaC Automation
OnPrem K8s
Create a New OnPrem K8s cluster using API
Copy the tenant URL from
Mavvrik Console > Admin >API

use the REST as TENANT REST URL
and API Key > KEY for authorization
API Request
API Method: GET
URL: <TENANT REST URL>/k8s/init/k8s
Headers:
x-api-key: <MAVVRIK APIKEY>
Response
{
"id": "wroxhgclop",
"url": "oci://us-central1-docker.pkg.dev/cloudwiz-io/public-charts/dx-k8s-appliance",
"secret": "<SECRET>"
}
To Get info related to an existing cluster using API
Copy the cluster ID from the
Mavvrik Console > Admin > Kubernetes > select the cluster > Reconnect Button >
and copy the cluster ID from Step 3
and replace the CLUSTER ID

API Request
API Method: GET
URL: <TENANT REST URL>/k8s/init/k8?clusterId=<CLUSTER ID>
Headers:
x-api-key: <MAVVRIK APIKEY>
Response
{
"id": "wroxhgclop",
"url": "oci://us-central1-docker.pkg.dev/cloudwiz-io/public-charts/dx-k8s-appliance",
"secret": "<SECRET>"
}