System Administration > Configuration > NSX Managers > Manager Mode

NodeMode

Currently only a switch from "VMC_LOCAL" to "VMC" is supported.
Returns a new Node Mode, if the request successfuly changed it.
Optionally provisions public oauth2 client info.

Request:

Method:
POST
URI Path(s):
/api/v1/configs/node/mode
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
SwitchingToVmcModeParameters+

Example Request:

POST https://<nsx-mgr>/api/v1/configs/node/mode { "mode_id": "VMC", "base_url": "https://console-stg.cloud.vmware.com", "csp_org_uri": "/csp/gateway/am/api/orgs", "auth_code": { "client_id": "some ID", "client_secret": "some secret" }, "csp_client_credential": { "client_id": "some ID2", "client_secret": "some secret2" }, "proxy_host": "127.0.0.1", "proxy_port": 8080, "default_org_id": "d56c8ab2-7aee-4e6e-8c68-6b99db496766", "ea_org": { "org_id": "nsxaas-enterprise", "org_role": "enterprise_admin" }, "gss_org": { "org_id": "nsxaas-gss", "org_role": "auditor" }, "sre_org": { "org_id": "nsxaas-sre", "org_role": "site_reliability_engineer" }, "sddc_id": "cd48ab2-7aee-4e6e-8c68-6b99db496766", "csp_client_incoming_credentials": [ "85ac8ab2-7aee-4e6e-8c68-6b99db496766", "6d3c8ab2-7aee-4e6e-8c68-6b99db496766", ... ], "service_definition_id": "ab481ab2-7aee-4e6e-8c68-6b99db496766", "csp_time_drift": 5000, "basic_auth_whitelist_ips": [ "10.0.1.2", "10.0.1.3", ... ], "public_client_info": { "client_id": "test-client_id", "base_url": "https://console-stg.cloud.vmware.com", "redirect_uris": [ "https://redirect.org/gateway", "https://cs-staging.org/am/csp/gateway" ], "default_org_id": "d5916524-fd57-49fe-927e-7f3671e52f87", "ea_org_id": "nsx-admin", "sre_org_id": "nsx-sre", "gss_org_id": "nsx-gss" }, "csp_user_info_uri": "/csp/gateway/am/api/loggedin/user", "csp_public_key_uri": "/csp/gateway/am/api/auth/token-public-key?format=jwks", "csp_access_token_uri": "/csp/gateway/am/api/auth/authorize", "csp_user_authorization_uri": "/csp/gateway/discovery", "csp_logout_uri": "/csp/gateway/am/api/auth/logout" }

Successful Response:

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

Example Response:

{ "mode_id": "VMC" }

Required Permissions:

crud

Feature:

system_administration

Additional Errors: