NSX-T Data Center REST API

Update platform configuration

Update input parameters required to deploy platform related pods.
The UI has option to deploy kubernetes tools.
You need to get this file from VMware website.
File contains kubectl binary, helm binary and signature to verify them.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/sites/{site-id}/napp/deployment/platform
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PlatformDeploymentConfig+

Example Request:

{ "platform_version" : "2.0", "deployment_action" : "deploy/undeploy/redeploy/update" "form_factor" : "advanced", "kubeconfig_info" : { "name": "kubeconfigfile.xyz", "user": "user1", "current_context": "context1", "namespace": "ns1", "cluster": "cluster1", "expiry": "n days" }, service_config : { "kubectl_tool" : "kubectltool.tgz", "service_name": "fqdn.of.service", } } }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PlatformDeploymentConfig+

Example Response:

{ "resource_type": "PlatformDeploymentConfig", "id": "platform-deployment-config", "platform_version" : "2.0", "form_factor" : "advanced", "kubeconfig_info" : { "name": "kubeconfigfile.xyz", "user": "user1", "current_context": "context1", "namespace": "ns1", "cluster": "cluster1", "expiry": "n days" }, service_config : { "kubectl_tool" : "kubectltool.tgz", "service_name": "fqdn.of.service", } "parent_path" : "/infra/sites//napp/deployment/platform", "relative_path" : "platform", "_create_time" : 1524826554351, "_last_modified_user" : "admin", "_system_owned" : false, "_protection" : "NOT_PROTECTED", "_last_modified_time" : 1524826554351, "_create_user" : "admin", "_revision" : 0 }

Required Permissions:

crud

Feature:

policy_napp

Additional Errors: