VMware Cloud Foundation 9 accepts NFSv3 as principal storage for a greenfield management domain, which makes a Tintri VMstore a first-class landing zone for the whole VCF stack. The wizard works, but nobody wants to click through it twice, and a deployment you cannot replay is a deployment you cannot test. This guide drives the entire build through the VCF Installer and SDDC Manager APIs: token auth, depot and bundles, the NFS-specific parts of the deployment spec, validation, async task polling, host commissioning with storageType: NFS, and a workload domain whose principal datastore is a second VMstore export. Every call is shown as raw HTTP, curl and PowerShell, and the whole flow ships as a Postman collection you can run with newman.
Level: advanced · Stack: VCF 9.0 / 9.1 (VCF Installer, SDDC Manager), ESXi 9, Tintri VMstore over NFSv3, Postman, newman 6, PowerShell 7 · Build time: about a day of wall clock, mostly waiting on tasks; about two hours of hands-on time
This is the API companion to Building VMware Cloud Foundation 9 on Tintri NFS storage. That post covers the design, sizing and the UI-led build. This one assumes you have read it and goes deeper on the API: exact endpoints, field names checked against the current Broadcom reference, the error shapes you will actually see, and the first-host NFS mount that VCF 9 validation expects.
Contents
- What changed between VCF 5.x and VCF 9
- Architecture and the network plan
- NFS decisions the API enforces
- Authentication: tokens on both appliances
- Phase A prep: the first host and the VMstore export
- Phase A: depot and bundles by API
- Phase A: the deployment spec for Tintri NFS
- Phase A: validate, deploy and poll
- The whole API sequence on one page
- Phase B: network pool and host commissioning
- Phase B: the NFS workload domain
- Packet flow and where it breaks
- Error shapes and what they mean
- API reference table
- Postman collection and newman
- End-to-end workflow with checks
- Troubleshooting table
- What’s next
01. What changed between VCF 5.x and VCF 9
If your automation was written for VCF 5.x, almost none of the bring-up half survives the move to 9. The SDDC Manager half (network pools, commissioning, domains, tasks) carries over with additions. The table is the short version; the rest of this section explains the two changes that bite hardest.
| Area | VCF 5.x | VCF 9 |
|---|---|---|
| Bring-up appliance | Cloud Builder OVA. Broadcom’s 5.2.2 reference states that the /v1/sddcs APIs are available only on the Cloud Builder appliance. | VCF Installer OVA. After bring-up the same appliance carries on as SDDC Manager (the 9.0 password-retrieval KB describes SSHing into “the VCF Installer which should now be the SDDC Manager Appliance”). |
| Input format | Excel Deployment Parameter Workbook or JSON, with an API to convert the workbook (“Start Bringup Spec Conversion”). | JSON spec or the installer wizard. No workbook conversion operation exists in the 9.x installer reference. |
| Auth on the bring-up API | HTTP Basic with the Cloud Builder admin account (the 5.2.2 examples use curl -u admin:…). | Bearer token from POST /v1/tokens on the installer, the same token model SDDC Manager uses. |
| Management domain principal storage | vSAN for greenfield bring-up. | vSAN, VMFS on FC or NFSv3 for greenfield. NFS 4.1 only through the converge (import existing vCenter) path, per Broadcom KB 416270. |
| Spec shape | SddcSpec with hostSpecs[].ipAddressPrivate, association, vSwitch. | SddcSpec with hostSpecs[] reduced to hostname, credentials and thumbprints; adds workflowType, version, vcfOperationsSpec, fleet and LCM service specs. |
| Binaries | Bundled into Cloud Builder. | Downloaded into the installer depot first. In 9.1 a depot activation code replaces the download token (KB 443647). |
| Workload domain cluster image | vLCM images optional. | clusterImageId is required to create a cluster on vCenter 9.0 or later, per the ClusterSpec reference. |
The first change is authentication. A 5.x script that posts a spec to https://cloudbuilder/v1/sddcs with Basic auth gets nowhere on 9: you log in once, hold a bearer token, refresh it when it expires and invalidate it when you are done. Section 04 covers the flow for both appliances.
The second is that bring-up now depends on content that is not on the appliance. The installer validates every component file against the bill of materials, so a spec that is perfect on paper fails validation with “Failed to validate or retrieve component file” if the bundles never finished downloading (Broadcom KB 438260). Depot first, spec second.
02. Architecture and the network plan
Two domains, two exports, one VMstore data interface. The management domain m01 runs on four hosts with its principal datastore on one export; the VI workload domain w01 runs on four more with its own export. Each domain gets its own NFS datastore so that capacity, QoS and snapshot policy on the VMstore can be managed per domain, and so that a mistake in the workload domain cannot fill the datastore that holds vCenter, NSX and SDDC Manager.
| Network | VLAN | Subnet (example) | MTU | Carried on |
|---|---|---|---|---|
| Host and appliance management | 10 | 198.18.10.0/24 | 1500 | vmk0, VCF Installer / SDDC Manager, vCenter, NSX, VMstore admin |
| vMotion | 20 | 198.18.20.0/24 | 9000 | vmk1, active on uplink2 (fabric B) |
| NFS (VMstore data) | 30 | 198.18.30.0/24 | 9000 | vmk2, active on uplink1 (fabric A), VMstore data 198.18.30.50 |
| VMstore replication | 40 | 198.18.40.0/24 | per design | VMstore replication interface only |
| NSX host TEP | 50 | 198.18.50.0/24 | 9000 or more | NSX overlay, from the TEP IP pool |
The NFS VMkernel and the VMstore data interface sit in the same layer 2 segment, so no routing is involved on the storage path. The fabric, VLAN and MTU design behind this table is covered in part 2 of the VMware, Tintri and Cisco series, and the host-side teaming in part 4. On jumbo frames, note the Tintri side of the argument: the public Tintri VMstore with VMware Best Practices Guide (revision 3.1) says the VMstore supports a 9,000 byte MTU, that the fabric should never be smaller than the endpoints (typically 9,216), and also that Tintri recommends against jumbo frames unless you have a specific reason, because misconfiguration is common. VCF wants 9000 on vMotion and TEP anyway, so if you run NFS at 9000 too, prove it end to end with the check in section 16 before validation does it for you.
03. NFS decisions the API enforces
These are the choices that show up as fields or validation checks. Get them right in the spec and validation is uneventful; get them wrong and the failure messages are rarely about the real cause.
Decision 01. NFSv3, one export per domain
- Choice. NFSv3 for both domains, one VMstore export per domain, mounted under the same server address and path on every host.
- Why. NFSv3 is the version VCF 9 accepts as greenfield principal storage. vSphere identifies an NFSv3 datastore by server plus path, so every host must use the identical string; one host mounting by FQDN and another by IP produces two datastores. The installer spec takes
datastoreSpec.nfsDatastoreSpec(a single object) for the management domain, and SDDC Manager takesnfsDatastoreSpecs(an array) per cluster. - Cost. Two exports to size and protect on the VMstore. Worth it for blast radius alone.
Decision 02. An NFS network in the spec, not just a datastore
- Choice. Declare a network of type
NFSin the installernetworkSpecsand list it in the vDSnetworks; for the workload domain, add anNFSnetwork to the SDDC Manager network pool and anNFSport group in the clustervdsSpecs. - Why. Without it there is no NFS VMkernel and the datastore mounts through vmk0. AWS documents the installer errors you get when the NFS network is missing from an NFS-principal spec:
MISSING_NET_SPEC_ENTRY,MISSING_DVS_SPEC_NET_ENTRY, andNOT_ENOUGH_IPS/MISSING_INCLUSION_RANGEwhen the range is absent. - Cost. One more IP range per domain, one address per host.
Decision 03. Bind NFS to the VMkernel adapter
- Choice.
enableBindToVmknic: truewith the NFS VMkernel in the VMstore data subnet. - Why. Without binding, ESXi picks the egress interface from its routing table. On a flat design that is still vmk2, but binding makes the path explicit and survives someone adding a second interface in the same subnet. KB 414088 describes the first-host datastore as “bound to the correct NFS VMkernel adapter”, which is the same intent.
- Cost. If the NFS vmk is missing or down, the mount fails outright instead of silently sliding onto management. That is the failure mode you want.
Decision 04. Teaming that matches the fabric
- Choice.
failover_explicit: NFS active on uplink1 (fabric A) with uplink2 standby, vMotion the reverse. No LAG specs. - Why. Cisco Fabric Interconnects do not form a port-channel with the host, so
lagSpecsstay empty and failover is explicit. Splitting NFS and vMotion across fabrics keeps a vMotion storm off the storage path. - Cost. During a fabric outage both share one side. Size the vNIC bandwidth for that case.
Decision 05. Licensing and cluster image
- Choice.
deployWithoutLicenseKeys: trueon the workload domain spec, and an explicitclusterImageId. - Why. In VCF 9 licensing is handled at the fleet level rather than per key in each spec; the domain spec still carries optional key fields but the flag lets the domain deploy without them.
clusterImageIdis documented as required for a cluster on vCenter 9.0 or later. - Cost. You must have the vLCM image imported in SDDC Manager before the domain call. List them with
GET /v1/personalities.
04. Authentication: tokens on both appliances
Both appliances expose the same Tokens API group: POST /v1/tokens returns a token pair, PATCH /v1/tokens/access-token/refresh issues a new access token from the refresh token, and DELETE /v1/tokens/refresh-token invalidates the refresh token. The request body (TokenCreationSpec) accepts username and password, and in the current reference also apiKey and idToken. Every other call carries Authorization: Bearer <accessToken>.
| Appliance | When | Account |
|---|---|---|
| VCF Installer | Before and during bring-up | The installer’s local admin account, admin@local, with the password set when the OVA was deployed |
| SDDC Manager | After bring-up | An SSO account with the ADMIN role, typically administrator@vsphere.local during the build, a named service account afterwards |
Raw HTTP
POST /v1/tokens HTTP/1.1
Host: sddcm01.lab.local
Content-Type: application/json
Accept: application/json
{"username": "administrator@vsphere.local", "password": "<from-your-vault>"}
HTTP/1.1 201 Created
Content-Type: application/json
{
"accessToken": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOi...trimmed",
"refreshToken": { "id": "4f6c2a1e-8b0d-4c1e-9d7a-0e2b5d1c9a33" }
}
curl
# Credentials come from the environment, never from the command line history.
export VCF_HOST=sddcm01.lab.local
export VCF_USER='administrator@vsphere.local'
read -rs VCF_PASS && export VCF_PASS
TOKENS=$(curl -sS --fail-with-body -X POST "https://${VCF_HOST}/v1/tokens" \
-H 'Content-Type: application/json' -H 'Accept: application/json' \
-d "$(jq -n --arg u "$VCF_USER" --arg p "$VCF_PASS" '{username:$u,password:$p}')")
export VCF_TOKEN=$(jq -r .accessToken <<<"$TOKENS")
export VCF_REFRESH=$(jq -r .refreshToken.id <<<"$TOKENS")
# Any call:
curl -sS -H "Authorization: Bearer ${VCF_TOKEN}" "https://${VCF_HOST}/v1/domains" | jq '.elements[] | {name, status}'
# Refresh the access token (body: the refresh token id as a JSON string):
export VCF_TOKEN=$(curl -sS -X PATCH "https://${VCF_HOST}/v1/tokens/access-token/refresh" \
-H 'Content-Type: application/json' -d "\"${VCF_REFRESH}\"" | tr -d '"')
# Log out: invalidate the refresh token (204 No Content):
curl -sS -o /dev/null -w '%{http_code}\n' -X DELETE "https://${VCF_HOST}/v1/tokens/refresh-token" \
-H "Authorization: Bearer ${VCF_TOKEN}" -H 'Content-Type: application/json' -d "\"${VCF_REFRESH}\""
PowerShell 7
# vcf-auth.ps1 - dot-source this. Needs PowerShell 7+.
$script:Vcf = @{}
function Connect-VcfApi {
param(
[Parameter(Mandatory)][string]$Server, # sddcm01.lab.local
[Parameter(Mandatory)][string]$UserEnvVar, # e.g. VCF_USER
[Parameter(Mandatory)][string]$PasswordEnvVar, # e.g. VCF_PASS
[switch]$SkipCertificateCheck # lab only; trust the VMCA root instead
)
$body = @{ username = [Environment]::GetEnvironmentVariable($UserEnvVar)
password = [Environment]::GetEnvironmentVariable($PasswordEnvVar) } | ConvertTo-Json
$r = Invoke-RestMethod -Method Post -Uri "https://$Server/v1/tokens" -Body $body `
-ContentType 'application/json' -SkipCertificateCheck:$SkipCertificateCheck
$script:Vcf = @{ Server = $Server; Access = $r.accessToken; Refresh = $r.refreshToken.id
Skip = [bool]$SkipCertificateCheck }
}
function Invoke-Vcf {
param([Parameter(Mandatory)][string]$Method, [Parameter(Mandatory)][string]$Path, $Body)
$irm = @{ Method = $Method; Uri = "https://$($Vcf.Server)$Path"; ContentType = 'application/json'
Headers = @{ Authorization = "Bearer $($Vcf.Access)" }; SkipCertificateCheck = $Vcf.Skip }
if ($null -ne $Body) { $irm.Body = ($Body -is [string]) ? $Body : ($Body | ConvertTo-Json -Depth 30) }
try { Invoke-RestMethod @irm }
catch {
if ($_.Exception.Response.StatusCode.value__ -ne 401) { throw }
# Access token expired: refresh once, then retry the call.
$new = Invoke-RestMethod -Method Patch -Uri "https://$($Vcf.Server)/v1/tokens/access-token/refresh" `
-Body (ConvertTo-Json $Vcf.Refresh) -ContentType 'application/json' -SkipCertificateCheck:$Vcf.Skip
$script:Vcf.Access = "$new".Trim('"')
$irm.Headers = @{ Authorization = "Bearer $($Vcf.Access)" }
Invoke-RestMethod @irm
}
}
function Disconnect-VcfApi {
Invoke-Vcf -Method Delete -Path '/v1/tokens/refresh-token' -Body (ConvertTo-Json $Vcf.Refresh) | Out-Null
$script:Vcf = @{}
}
Three things to know about the token model. First, the access token is short-lived and the refresh token is longer-lived; the reference does not publish the lifetimes, so code for a 401 rather than for a timer, which is what Invoke-Vcf does. Second, the refresh and logout bodies are documented only as “string, application/json”; sending the refresh token id as a JSON string is what works in practice, but confirm it on your build before you wire it into CI. Third, tokens are per appliance: an installer token is meaningless to a different SDDC Manager, and a 401 straight after login usually means you pointed a token at the wrong host.
If you are on 5.x. Cloud Builder bring-up used HTTP Basic (
curl -u admin:…) against/v1/sddcs. That is legacy. On VCF 9 every installer and SDDC Manager call uses the bearer token above.
05. Phase A prep: the first host and the VMstore export
Before the first API call, two things must already be true: the VMstore exports are reachable from the NFS VLAN and allow the NFS VMkernel range, and the first management host has the principal export mounted on a VMkernel adapter in the NFS VLAN. The second requirement is the one that surprises people.
Why the first host needs the mount
Broadcom KB 414088 (VCF 9.0) describes validation failing at “NFS Datastore Configuration” with “not found on host”, and states that the installer expects the NFS datastore already mounted on the first ESXi host of the management domain, bound to the NFS VMkernel adapter. KB 414174 is the same check failing with Unable to reach … on port: 111, Connection timed out. For 9.1, KB 446573 adds three more causes for the same validation step: the NFS VMkernel port group name on the hosts not matching the spec’s portGroupKey exactly, an MTU mismatch on the path, and the array export policy not permitting the NFS VMkernel range. AWS’s VCF 9.x guide for NFS-backed management domains also pre-mounts the principal datastore on the first host. So: pre-mount on esx01, with a port group named exactly like the spec’s NFS portGroupKey.
On the VMstore
- Configure the data interface on VLAN 30 with 198.18.30.50 and the MTU you chose (Settings in the VMstore UI, or the VMstore REST API covered in the VMstore API guide).
- Create the two datastore paths for m01 and w01. The VMstore serves NFS under
/tintri; the OpenStack Cinder driver documentation for Tintri shows the/tintri/<submount>form. Use the path format in the current Tintri admin guide for your TxOS version and substitute it for<VMSTORE_EXPORT_PATH_M01>and<VMSTORE_EXPORT_PATH_W01>in the specs below. - Allow 198.18.30.0/24 (or at least both NFS IP ranges) in the export access settings. A denied mount shows up in
vmkernel.logas “The mount request was denied by the NFS server”. - Do not put a firewall between the NFS VMkernel range and the data IP. Validation probes portmapper (TCP 111) as well as NFS (TCP 2049).
On esx01, before validation
# Run in the ESXi Shell or over SSH on esx01 only. Values match the m01 spec in section 07.
PG='m01-cl01-vds01-pg-nfs' # must equal networkSpecs[NFS].portGroupKey
esxcli network vswitch standard set -v vSwitch0 -m 9000
esxcli network vswitch standard portgroup add -p "$PG" -v vSwitch0
esxcli network vswitch standard portgroup set -p "$PG" -v 30
esxcli network ip interface add -i vmk2 -p "$PG" -m 9000
esxcli network ip interface ipv4 set -i vmk2 -t static -I 198.18.30.10 -N 255.255.255.0
# Prove the path before mounting: 8972 bytes + headers = 9000, do-not-fragment.
vmkping -I vmk2 -d -s 8972 -c 3 198.18.30.50
# Mount with the SAME server string and path the spec will use, and the SAME datastore name.
esxcli storage nfs add -H 198.18.30.50 -s <VMSTORE_EXPORT_PATH_M01> -v m01-nfs01
esxcli storage nfs list
Expected: three replies from vmkping with no “Message too long”, and esxcli storage nfs list showing m01-nfs01 with Accessible and Mounted both true. I give vmk2 an address outside the installer’s NFS includeIpAddressRanges (198.18.30.10 versus .11 to .18) so the installer cannot hand the same address to another host. Check on your build how the installer treats a pre-existing NFS vmk on the first host; the KBs say it must exist, not whether it is replaced.
Host-level NFS settings belong in the host build, not in this API flow. The public Tintri guide recommends NFS.MaxVolumes 256, Net.TcpipHeapSize 32 and Net.TcpipHeapMax 1536 on every host (the heap changes need a reboot), and the Tintri VAAI-NAS plugin on every host. Its NFS.Heartbeat* values (12, 10, 5) are listed for hosts older than ESXi 5.0 and are the defaults on 5.0 and later, so leave them alone. Confirm current values and VAAI plugin support for ESXi 9 against the Tintri guide for your TxOS release; the host build post puts all of this in a vLCM image.
06. Phase A: depot and bundles by API
Authenticate to the installer as admin@local using the section 04 functions, then configure the depot and make sure every bundle the spec needs is downloaded. Skipping this is the most common reason a clean spec fails validation.
| Step | Call | What to look for |
|---|---|---|
| Check depot | GET /v1/system/settings/depot | vmwareAccount.status or offlineAccount.status = DEPOT_CONNECTION_SUCCESSFUL |
| Set depot | PUT /v1/system/settings/depot | Body is DepotSettings: vmwareAccount or offlineAccount, plus depotConfiguration for an offline depot |
| Sync metadata | PATCH /v1/system/settings/depot/depot-sync-info | Then GET the same path for sync state |
| List bundles | GET /v1/bundles | elements[].downloadStatus: PENDING, SCHEDULED, IN_PROGRESS, SUCCESSFUL, FAILED |
| Download | PATCH /v1/bundles/{id} | 202 with a Task; 409 if a download for that bundle is already triggered |
| Track | GET /v1/bundles/download-status or GET /v1/tasks/{id} | Every required bundle SUCCESSFUL before validating |
PATCH /v1/bundles/e6ba8240-d9b7-11ef-bf62-63832c57ab1a HTTP/1.1
Host: sddcm01.lab.local
Authorization: Bearer eyJhbGciOi...
Content-Type: application/json
{ "bundleDownloadSpec": { "downloadNow": true } }
HTTP/1.1 202 Accepted
{ "id": "1d0e7c4b-...", "name": "Bundle download", "status": "IN_PROGRESS", "isRetryable": false, ... }
# PowerShell: download every bundle that is not yet SUCCESSFUL, then wait.
. ./vcf-auth.ps1
Connect-VcfApi -Server sddcm01.lab.local -UserEnvVar VCF_INSTALLER_USER -PasswordEnvVar VCF_INSTALLER_PASS
$pending = (Invoke-Vcf GET '/v1/bundles').elements | Where-Object downloadStatus -ne 'SUCCESSFUL'
foreach ($b in $pending | Where-Object downloadStatus -in 'PENDING','FAILED') {
try { Invoke-Vcf PATCH "/v1/bundles/$($b.id)" @{ bundleDownloadSpec = @{ downloadNow = $true } } | Out-Null }
catch { if ($_.Exception.Response.StatusCode.value__ -ne 409) { throw } } # 409: already triggered
}
do {
Start-Sleep 60
$left = (Invoke-Vcf GET '/v1/bundles').elements | Where-Object downloadStatus -ne 'SUCCESSFUL'
$left | Format-Table id, version, downloadStatus
} while ($left | Where-Object downloadStatus -in 'PENDING','SCHEDULED','IN_PROGRESS')
if ($left) { throw "Bundles failed: $($left.id -join ', ')" }
On 9.1 the online depot is unlocked with an activation code rather than a download token (Broadcom KB 443647: generate a Software Depot ID, register it in the VCF Business Services console, apply the code in the installer). The DepotAccount structure carries both downloadToken and downloadActivationCode; set the one your release uses. If you are disconnected, point depotConfiguration at an offline depot with isOfflineDepot: true, its hostname, port and trustedCertificates.
07. Phase A: the deployment spec for Tintri NFS
The spec below is a complete management-domain SddcSpec for four hosts with an NFS principal datastore on the VMstore. Field names follow the 9.1.2 installer reference. Passwords are ${VAR} placeholders rendered from environment variables at run time, and values in angle brackets are yours to fill. Save it as m01-sddc-spec.tmpl.json.
{
"version": "<SPEC_VERSION>",
"sddcId": "m01",
"vcfInstanceName": "vcf01",
"workflowType": "VCF",
"ceipEnabled": false,
"skipEsxThumbprintValidation": false,
"dnsSpec": {
"subdomain": "lab.local",
"nameservers": ["198.18.10.5", "198.18.10.6"]
},
"ntpServers": ["198.18.10.5"],
"hostSpecs": [
{ "hostname": "esx01.lab.local", "credentials": { "username": "root", "password": "${ESXI_ROOT_PASSWORD}" } },
{ "hostname": "esx02.lab.local", "credentials": { "username": "root", "password": "${ESXI_ROOT_PASSWORD}" } },
{ "hostname": "esx03.lab.local", "credentials": { "username": "root", "password": "${ESXI_ROOT_PASSWORD}" } },
{ "hostname": "esx04.lab.local", "credentials": { "username": "root", "password": "${ESXI_ROOT_PASSWORD}" } }
],
"networkSpecs": [
{
"networkType": "MANAGEMENT",
"subnet": "198.18.10.0/24",
"gateway": "198.18.10.1",
"vlanId": 10,
"mtu": 1500,
"portGroupKey": "m01-cl01-vds01-pg-mgmt",
"teamingPolicy": "loadbalance_loadbased",
"activeUplinks": ["uplink1", "uplink2"]
},
{
"networkType": "VMOTION",
"subnet": "198.18.20.0/24",
"gateway": "198.18.20.1",
"vlanId": 20,
"mtu": 9000,
"includeIpAddressRanges": [ { "startIpAddress": "198.18.20.11", "endIpAddress": "198.18.20.18" } ],
"portGroupKey": "m01-cl01-vds01-pg-vmotion",
"teamingPolicy": "failover_explicit",
"activeUplinks": ["uplink2"],
"standbyUplinks": ["uplink1"]
},
{
"networkType": "NFS",
"subnet": "198.18.30.0/24",
"gateway": "198.18.30.1",
"vlanId": 30,
"mtu": 9000,
"includeIpAddressRanges": [ { "startIpAddress": "198.18.30.11", "endIpAddress": "198.18.30.18" } ],
"portGroupKey": "m01-cl01-vds01-pg-nfs",
"teamingPolicy": "failover_explicit",
"activeUplinks": ["uplink1"],
"standbyUplinks": ["uplink2"]
}
],
"dvsSpecs": [
{
"dvsName": "m01-cl01-vds01",
"networks": ["MANAGEMENT", "VMOTION", "NFS"],
"mtu": 9000,
"vmnicsToUplinks": [
{ "id": "vmnic0", "uplink": "uplink1" },
{ "id": "vmnic1", "uplink": "uplink2" }
],
"nsxtSwitchConfig": {
"transportZones": [
{ "name": "m01-tz-overlay", "transportType": "OVERLAY" },
{ "name": "m01-tz-vlan", "transportType": "VLAN" }
],
"hostSwitchOperationalMode": "STANDARD"
},
"nsxTeamings": [
{ "policy": "FAILOVER_ORDER", "activeUplinks": ["uplink1"], "standByUplinks": ["uplink2"] }
]
}
],
"clusterSpec": {
"datacenterName": "m01-dc01",
"clusterName": "m01-cl01"
},
"datastoreSpec": {
"nfsDatastoreSpec": {
"datastoreName": "m01-nfs01",
"nasVolume": {
"serverName": ["198.18.30.50"],
"path": "<VMSTORE_EXPORT_PATH_M01>",
"readOnly": false,
"enableBindToVmknic": true
}
}
},
"vcenterSpec": {
"vcenterHostname": "vcenter01.lab.local",
"rootVcenterPassword": "${VCENTER_ROOT_PASSWORD}",
"adminUserSsoPassword": "${SSO_ADMIN_PASSWORD}",
"ssoDomain": "vsphere.local",
"vmSize": "small",
"useExistingDeployment": false
},
"nsxtSpec": {
"nsxtManagerSize": "medium",
"nsxtManagers": [ { "hostname": "nsx01a.lab.local" } ],
"vipFqdn": "nsx01.lab.local",
"rootNsxtManagerPassword": "${NSX_ROOT_PASSWORD}",
"nsxtAdminPassword": "${NSX_ADMIN_PASSWORD}",
"nsxtAuditPassword": "${NSX_AUDIT_PASSWORD}",
"transportVlanId": 50,
"ipAddressPoolSpec": {
"name": "m01-tep-pool",
"subnets": [
{
"cidr": "198.18.50.0/24",
"gateway": "198.18.50.1",
"ipAddressPoolRanges": [ { "start": "198.18.50.11", "end": "198.18.50.30" } ]
}
]
},
"useExistingDeployment": false
},
"sddcManagerSpec": {
"hostname": "sddcm01.lab.local",
"rootPassword": "${SDDCM_ROOT_PASSWORD}",
"sshPassword": "${SDDCM_VCF_PASSWORD}",
"localUserPassword": "${SDDCM_LOCAL_PASSWORD}",
"useExistingDeployment": true
},
"vcfOperationsSpec": {
"applianceSize": "small",
"adminUserPassword": "${VCFOPS_ADMIN_PASSWORD}",
"nodes": [ { "hostname": "vcfops01.lab.local", "type": "master", "rootUserPassword": "${VCFOPS_ROOT_PASSWORD}" } ],
"useExistingDeployment": false
},
"vcfOperationsCollectorSpec": {
"applianceSize": "small",
"hostname": "vcfopscol01.lab.local",
"rootUserPassword": "${VCFOPS_ROOT_PASSWORD}",
"useExistingDeployment": false
}
}
The fields that matter for NFS on a VMstore, and what each one does:
| Field | Value here | Why |
|---|---|---|
networkSpecs[networkType=NFS] | VLAN 30, MTU 9000, range .11 to .18 | Creates the NFS port group and one NFS vmk per host from the range. Missing range: NOT_ENOUGH_IPS. |
networkSpecs[NFS].portGroupKey | m01-cl01-vds01-pg-nfs | Must match the port group you pre-created on esx01, exactly (KB 446573). |
dvsSpecs[].networks | includes NFS | The NFS network must also be on a vDS, or validation reports MISSING_DVS_SPEC_NET_ENTRY. |
datastoreSpec.nfsDatastoreSpec.datastoreName | m01-nfs01 | Same name as the esx01 pre-mount. |
nasVolume.serverName | ["198.18.30.50"] | An array. Use the VMstore data IP, the same string you mounted with on esx01. |
nasVolume.path | <VMSTORE_EXPORT_PATH_M01> | The m01 export on the VMstore. |
nasVolume.enableBindToVmknic | true | Binds the mount to the NFS vmk (decision 03). |
version | <SPEC_VERSION> | A spec version your installer supports. An unsupported one is rejected with the list of supported versions; do not use a build number. |
sddcManagerSpec.useExistingDeployment | true | The installer appliance carries on as SDDC Manager, the pattern AWS uses in its VCF 9.x NFS spec. |
Two practical notes. The exact set of management-component specs differs between 9.0 and 9.1: 9.1 adds vspClusterSpec, fleetLcmSpec, sddcLcmSpec, fleetDepotSpec and others, and the 9.1.2 reference lists workflowType values VCF, VCF_COMPLETE, VCF_EXTEND, VVF and VCF_BOOTSTRAP. The reliable way to get a spec that matches your installer build exactly is to run the wizard once in a lab and pull the spec it built with GET /v1/sddcs/{id}/spec, then template that. Second, the VM_MANAGEMENT network type exists for putting appliance VMs on a separate network from host management; I left it out because this design keeps them together on VLAN 10. Add it if your design separates them.
Render the template without ever writing secrets into the file:
# bash: envsubst substitutes only the variables you list.
export ESXI_ROOT_PASSWORD VCENTER_ROOT_PASSWORD SSO_ADMIN_PASSWORD NSX_ROOT_PASSWORD NSX_ADMIN_PASSWORD \
NSX_AUDIT_PASSWORD SDDCM_ROOT_PASSWORD SDDCM_VCF_PASSWORD SDDCM_LOCAL_PASSWORD \
VCFOPS_ADMIN_PASSWORD VCFOPS_ROOT_PASSWORD
SPEC=$(envsubst "$(env | awk -F= '/PASSWORD/{printf "${%s} ", $1}')" < m01-sddc-spec.tmpl.json)
jq -e . <<<"$SPEC" >/dev/null && echo "spec is valid JSON"
# PowerShell 7: replace ${NAME} with the environment variable NAME; fail on any that are unset.
$tmpl = Get-Content ./m01-sddc-spec.tmpl.json -Raw
$spec = [regex]::Replace($tmpl, '\$\{([A-Z0-9_]+)\}', {
param($m) $v = [Environment]::GetEnvironmentVariable($m.Groups[1].Value)
if (-not $v) { throw "Environment variable $($m.Groups[1].Value) is not set" }; $v })
$null = $spec | ConvertFrom-Json # throws if the result is not valid JSON
08. Phase A: validate, deploy and poll
Three calls and two polling loops. On 9.1 there is an optional fourth call first: POST /v1/sddcs/resources-calculation takes the same spec and returns a CapacityValidation with requiredCapacity and availableCapacity (hosts, cores, memory, storage), which is a cheap way to find out the VMstore export or the hosts are undersized before a full validation. It is in the 9.1.1 and 9.1.2 references and not in 9.0.
Validate
POST /v1/sddcs/validations HTTP/1.1
Host: sddcm01.lab.local
Authorization: Bearer eyJhbGciOi...
Content-Type: application/json
{ "version": "...", "sddcId": "m01", "workflowType": "VCF", ... full spec ... }
HTTP/1.1 202 Accepted
{
"id": "7d3c1f0a-2b4e-4f61-9a8e-1c5d2e3f4a5b",
"description": "Validate VCF installation spec",
"executionStatus": "IN_PROGRESS",
"resultStatus": "UNKNOWN"
}
Poll GET /v1/sddcs/validations/{id} until executionStatus is COMPLETED (or FAILED). Then read resultStatus: SUCCEEDED, WARNING or FAILED. Each entry in validationChecks has description, severity (ERROR, WARNING, INFO), resultStatus, an errorResponse with the real message, and nestedValidationChecks. A trimmed failure looks like this:
{
"id": "7d3c1f0a-2b4e-4f61-9a8e-1c5d2e3f4a5b",
"executionStatus": "COMPLETED",
"resultStatus": "FAILED",
"validationChecks": [
{
"description": "NFS Datastore Configuration",
"severity": "ERROR",
"resultStatus": "FAILED",
"errorResponse": {
"errorCode": "...",
"message": "Failed to validate NFS configuration for 198.18.30.50 ... Unable to reach 198.18.30.50 on port: 111, Connection timed out",
"remediationMessage": "...",
"referenceToken": "K2P1QH"
}
}
]
}
Deploy and poll
POST /v1/sddcs with the same body returns 202 and an SddcTask. Poll GET /v1/sddcs/{id}: status is IN_PROGRESS until it becomes COMPLETED_WITH_SUCCESS, COMPLETED_WITH_FAILURE or ROLLBACK_SUCCESS. The milestones array (with completedTasks and totalTasks) is the progress bar; sddcSubTasks[].errors holds the reason when something fails. A second POST /v1/sddcs while one exists returns 400 “Installation already exists”. To retry a failed run, fix the cause and send PATCH /v1/sddcs/{id} with the corrected spec. There is also ?skipValidations=true on both POST and PATCH; use it only to resume after you have read and accepted a validation result.
# deploy-m01.ps1 - validate, deploy, poll. Dot-sources the auth helpers from section 04.
. ./vcf-auth.ps1
Connect-VcfApi -Server sddcm01.lab.local -UserEnvVar VCF_INSTALLER_USER -PasswordEnvVar VCF_INSTALLER_PASS
function Wait-VcfValidation([string]$Path, [int]$DelaySec = 30) {
do { Start-Sleep $DelaySec; $v = Invoke-Vcf GET $Path
Write-Host "$(Get-Date -f T) $($v.executionStatus) / $($v.resultStatus)" }
while ($v.executionStatus -eq 'IN_PROGRESS')
$v.validationChecks | Where-Object resultStatus -eq 'FAILED' | ForEach-Object {
Write-Warning "$($_.description): $($_.errorResponse.message)" }
if ($v.resultStatus -eq 'FAILED' -or $v.executionStatus -eq 'FAILED') { throw "Validation failed: $Path" }
$v
}
$val = Invoke-Vcf POST '/v1/sddcs/validations' $spec # $spec rendered in section 07
Wait-VcfValidation "/v1/sddcs/validations/$($val.id)" | Out-Null
$task = Invoke-Vcf POST '/v1/sddcs' $spec
do {
Start-Sleep 120
$t = Invoke-Vcf GET "/v1/sddcs/$($task.id)"
$t.milestones | ForEach-Object { "{0,-45} {1,-24} {2}/{3}" -f $_.name, $_.status, $_.completedTasks, $_.totalTasks }
} while ($t.status -eq 'IN_PROGRESS')
if ($t.status -ne 'COMPLETED_WITH_SUCCESS') {
$t.sddcSubTasks | Where-Object status -like '*FAILURE*' | ForEach-Object { $_.name; $_.errors.message }
throw "Bring-up ended as $($t.status). Fix, then: Invoke-Vcf PATCH /v1/sddcs/$($task.id) `$spec"
}
# Same thing with curl + jq, for a CI runner without PowerShell.
H=(-H "Authorization: Bearer ${VCF_TOKEN}" -H 'Content-Type: application/json')
VID=$(curl -sS "${H[@]}" -X POST "https://${VCF_HOST}/v1/sddcs/validations" -d "$SPEC" | jq -r .id)
until s=$(curl -sS "${H[@]}" "https://${VCF_HOST}/v1/sddcs/validations/${VID}") && \
[ "$(jq -r .executionStatus <<<"$s")" != "IN_PROGRESS" ]; do sleep 30; done
jq '{executionStatus, resultStatus, failed: [.validationChecks[] | select(.resultStatus=="FAILED") | {description, msg: .errorResponse.message}]}' <<<"$s"
[ "$(jq -r .resultStatus <<<"$s")" != "FAILED" ] || exit 1
TID=$(curl -sS "${H[@]}" -X POST "https://${VCF_HOST}/v1/sddcs" -d "$SPEC" | jq -r .id)
while :; do
st=$(curl -sS "${H[@]}" "https://${VCF_HOST}/v1/sddcs/${TID}" | jq -r .status)
echo "$(date +%T) $st"; [ "$st" = "IN_PROGRESS" ] || break; sleep 120
done
[ "$st" = "COMPLETED_WITH_SUCCESS" ]
Bring-up of a management domain takes hours, and part of it the API reports as quiet: AWS notes that the installer relocates its own appliance onto the principal datastore and shows no progress for about 35 minutes while a RelocateVM task runs in vCenter. On NFS that relocation is a full copy over the NFS VLAN, so the VMstore will show a burst of write throughput at that point. Do not treat it as a hang, and refresh your token if your loop has been idle long enough to expire it.
09. The whole API sequence on one page
Figure 2 is every call in order, across both phases, with the polling loops and the failure branches. Step 0 is not an API call but it gates step 4.
10. Phase B: network pool and host commissioning
After bring-up, log in to SDDC Manager (same appliance, now answering as SDDC Manager) with an SSO admin account. Workload domain hosts reach the free pool by commissioning, and commissioning needs a network pool. For an NFS workload domain the pool holds a VMOTION network and an NFS network; the Network.type enum in the 9.1.2 reference is VSAN, VMOTION, VXLAN, NFS, ISCSI, VSAN_EXTERNAL.
Create the network pool
POST /v1/network-pools HTTP/1.1
Host: sddcm01.lab.local
Authorization: Bearer eyJhbGciOi...
Content-Type: application/json
{
"name": "np-w01",
"networks": [
{ "type": "VMOTION", "vlanId": 20, "mtu": 9000, "subnet": "198.18.20.0", "mask": "255.255.255.0",
"gateway": "198.18.20.1", "ipPools": [ { "start": "198.18.20.21", "end": "198.18.20.40" } ] },
{ "type": "NFS", "vlanId": 30, "mtu": 9000, "subnet": "198.18.30.0", "mask": "255.255.255.0",
"gateway": "198.18.30.1", "ipPools": [ { "start": "198.18.30.21", "end": "198.18.30.40" } ] }
]
}
HTTP/1.1 201 Created
{ "id": "3b0e9a4c-...", "name": "np-w01", "networks": [ { "id": "...", "type": "VMOTION", ... }, { "id": "...", "type": "NFS", ... } ] }
Keep the workload domain NFS range (.21 to .40) clear of the management domain range (.11 to .18) and of the esx01 pre-mount address. Both domains share VLAN 30 in this design, which is fine because they share the VMstore data interface; if your VMstore has a second data IP for the workload domain, put it in the same subnet or you are back to routed NFS.
Validate, then commission with storageType NFS
POST /v1/hosts/validations and POST /v1/hosts take the same body: an array of HostCommissionSpec. Required fields are fqdn, username, password, storageType and networkPoolId. The 9.1.2 storageType enum is VSAN, VSAN_ESA, VSAN_REMOTE, VSAN_MAX, NFS, NFS41, VMFS_FC, VVOL, VMFS, FC. For a Tintri NFSv3 principal datastore it is NFS. Optional sslThumbprint and sshThumbprint pin the host identity; supply them in production. Save this as w01-commission.tmpl.json:
[
{ "fqdn": "esx05.lab.local", "username": "root", "password": "${ESXI_ROOT_PASSWORD}", "storageType": "NFS", "networkPoolId": "${NETWORK_POOL_ID}" },
{ "fqdn": "esx06.lab.local", "username": "root", "password": "${ESXI_ROOT_PASSWORD}", "storageType": "NFS", "networkPoolId": "${NETWORK_POOL_ID}" },
{ "fqdn": "esx07.lab.local", "username": "root", "password": "${ESXI_ROOT_PASSWORD}", "storageType": "NFS", "networkPoolId": "${NETWORK_POOL_ID}" },
{ "fqdn": "esx08.lab.local", "username": "root", "password": "${ESXI_ROOT_PASSWORD}", "storageType": "NFS", "networkPoolId": "${NETWORK_POOL_ID}" }
]
# curl: validate, poll, commission, poll.
COMM=$(NETWORK_POOL_ID="$POOL_ID" envsubst '${ESXI_ROOT_PASSWORD} ${NETWORK_POOL_ID}' < w01-commission.tmpl.json)
HV=$(curl -sS "${H[@]}" -X POST "https://${VCF_HOST}/v1/hosts/validations" -d "$COMM" | jq -r .id)
until v=$(curl -sS "${H[@]}" "https://${VCF_HOST}/v1/hosts/validations/${HV}") && \
[ "$(jq -r .executionStatus <<<"$v")" != "IN_PROGRESS" ]; do sleep 15; done
jq -r '.resultStatus, (.validationChecks[] | select(.resultStatus=="FAILED") | .description + ": " + .errorResponse.message)' <<<"$v"
TASK=$(curl -sS "${H[@]}" -X POST "https://${VCF_HOST}/v1/hosts" -d "$COMM" | jq -r .id)
until t=$(curl -sS "${H[@]}" "https://${VCF_HOST}/v1/tasks/${TASK}") && \
! jq -e '.status | test("PENDING|IN_PROGRESS|QUEUED"; "i")' <<<"$t" >/dev/null; do sleep 30; done
jq '{status, errors: [.errors[]?.message]}' <<<"$t"
# The hosts now sit in the free pool:
curl -sS "${H[@]}" "https://${VCF_HOST}/v1/hosts?status=UNASSIGNED_USEABLE&storageType=NFS" | jq -r '.elements[] | [.id, .fqdn] | @tsv'
# PowerShell equivalent
. ./vcf-auth.ps1
Connect-VcfApi -Server sddcm01.lab.local -UserEnvVar VCF_USER -PasswordEnvVar VCF_PASS
function Wait-VcfTask([string]$Id, [int]$DelaySec = 30) {
do { Start-Sleep $DelaySec; $t = Invoke-Vcf GET "/v1/tasks/$Id"; Write-Host "$(Get-Date -f T) $($t.status)" }
while ($t.status -match '^(PENDING|Pending|IN_PROGRESS|In Progress|QUEUED|Queued)$')
if ($t.status -notmatch '^(SUCCESSFUL|Successful|COMPLETED_WITH_WARNING)$') {
$t.errors | ForEach-Object { Write-Warning "$($_.errorCode): $($_.message) | $($_.remediationMessage) | ref $($_.referenceToken)" }
throw "Task $Id ended as $($t.status) (retryable: $($t.isRetryable))"
}
$t
}
$pool = Invoke-Vcf POST '/v1/network-pools' (Get-Content ./np-w01.json -Raw)
$env:NETWORK_POOL_ID = $pool.id
$comm = [regex]::Replace((Get-Content ./w01-commission.tmpl.json -Raw), '\$\{([A-Z0-9_]+)\}',
{ param($m) [Environment]::GetEnvironmentVariable($m.Groups[1].Value) })
$hv = Invoke-Vcf POST '/v1/hosts/validations' $comm
Wait-VcfValidation "/v1/hosts/validations/$($hv.id)" 15 | Out-Null # from section 08
Wait-VcfTask (Invoke-Vcf POST '/v1/hosts' $comm).id | Out-Null
(Invoke-Vcf GET '/v1/hosts?status=UNASSIGNED_USEABLE&storageType=NFS').elements | Select-Object id, fqdn
The Task you poll has status values in both upper case and title case in the reference (IN_PROGRESS and In Progress, SUCCESSFUL and Successful, plus FAILED, CANCELLED, COMPLETED_WITH_WARNING, SKIPPED, QUEUED, TIMED_OUT). Match both, as the scripts do. A failed task carries errors[] with errorCode, message, remediationMessage and referenceToken, and isRetryable tells you whether PATCH /v1/tasks/{id} will help.
11. Phase B: the NFS workload domain
Look up the inputs first: host IDs from GET /v1/hosts?status=UNASSIGNED_USEABLE&storageType=NFS, and the vLCM image from GET /v1/personalities (each element has personalityId, personalityName, version). ClusterSpec.clusterImageId is “the ID of the vSphere Lifecycle Manager Images cluster image”, required for clusters on vCenter 9.0 or later. The reference also offers hostIdForHostSeeding, an unassigned host to extract the desired image from. Save the following as w01-domain.tmpl.json:
{
"domainName": "w01",
"deployWithoutLicenseKeys": true,
"vcenterSpec": {
"name": "vcenter-w01",
"datacenterName": "w01-dc01",
"vmSize": "small",
"rootPassword": "${VCENTER_ROOT_PASSWORD}",
"networkDetailsSpec": {
"ipAddress": "198.18.10.31",
"dnsName": "vcenter-w01.lab.local",
"gateway": "198.18.10.1",
"subnetMask": "255.255.255.0"
}
},
"computeSpec": {
"clusterSpecs": [
{
"name": "w01-cl01",
"clusterImageId": "${CLUSTER_IMAGE_ID}",
"hostSpecs": [
{ "id": "${HOST_ID_1}", "hostNetworkSpec": { "vmNics": [ { "id": "vmnic0", "vdsName": "w01-cl01-vds01", "uplink": "uplink1" }, { "id": "vmnic1", "vdsName": "w01-cl01-vds01", "uplink": "uplink2" } ] } },
{ "id": "${HOST_ID_2}", "hostNetworkSpec": { "vmNics": [ { "id": "vmnic0", "vdsName": "w01-cl01-vds01", "uplink": "uplink1" }, { "id": "vmnic1", "vdsName": "w01-cl01-vds01", "uplink": "uplink2" } ] } },
{ "id": "${HOST_ID_3}", "hostNetworkSpec": { "vmNics": [ { "id": "vmnic0", "vdsName": "w01-cl01-vds01", "uplink": "uplink1" }, { "id": "vmnic1", "vdsName": "w01-cl01-vds01", "uplink": "uplink2" } ] } },
{ "id": "${HOST_ID_4}", "hostNetworkSpec": { "vmNics": [ { "id": "vmnic0", "vdsName": "w01-cl01-vds01", "uplink": "uplink1" }, { "id": "vmnic1", "vdsName": "w01-cl01-vds01", "uplink": "uplink2" } ] } }
],
"datastoreSpec": {
"nfsDatastoreSpecs": [
{
"datastoreName": "w01-nfs01",
"nasVolume": {
"serverName": ["198.18.30.50"],
"path": "<VMSTORE_EXPORT_PATH_W01>",
"readOnly": false,
"enableBindToVmknic": true
}
}
]
},
"networkSpec": {
"vdsSpecs": [
{
"name": "w01-cl01-vds01",
"mtu": 9000,
"isUsedByNsxt": true,
"portGroupSpecs": [
{ "name": "w01-cl01-vds01-pg-mgmt", "transportType": "MANAGEMENT", "teamingPolicy": "loadbalance_loadbased", "activeUplinks": ["uplink1", "uplink2"] },
{ "name": "w01-cl01-vds01-pg-vmotion", "transportType": "VMOTION", "teamingPolicy": "failover_explicit", "activeUplinks": ["uplink2"], "standByUplinks": ["uplink1"] },
{ "name": "w01-cl01-vds01-pg-nfs", "transportType": "NFS", "teamingPolicy": "failover_explicit", "activeUplinks": ["uplink1"], "standByUplinks": ["uplink2"] }
]
}
],
"nsxClusterSpec": {
"nsxTClusterSpec": {
"geneveVlanId": 50,
"ipAddressPoolSpec": {
"name": "w01-tep-pool",
"subnets": [
{ "cidr": "198.18.50.0/24", "gateway": "198.18.50.1", "ipAddressPoolRanges": [ { "start": "198.18.50.41", "end": "198.18.50.60" } ] }
]
}
}
}
}
}
]
},
"nsxTSpec": {
"nsxManagerSpecs": [
{
"name": "nsx-w01a",
"networkDetailsSpec": { "ipAddress": "198.18.10.41", "dnsName": "nsx-w01a.lab.local", "gateway": "198.18.10.1", "subnetMask": "255.255.255.0" }
}
],
"vip": "198.18.10.40",
"vipFqdn": "nsx-w01.lab.local",
"nsxManagerAdminPassword": "${NSX_ADMIN_PASSWORD}",
"formFactor": "medium"
}
}
| Field | Why it is set this way |
|---|---|
datastoreSpec.nfsDatastoreSpecs[] | An array per cluster. Only one principal storage type per cluster; do not mix with vsanDatastoreSpec or vmfsDatastoreSpec. |
nasVolume.serverName / path | The VMstore data IP and the w01 export. Same string format you used for m01. |
portGroupSpecs[transportType=NFS] | Creates the NFS port group; the vmk addresses come from the NFS network in pool np-w01. Note standByUplinks with a capital B in this API, versus standbyUplinks in the installer spec. |
hostSpecs[].id | IDs from the free pool, not FQDNs. licenseKey per host is optional with deployWithoutLicenseKeys. |
nsxTSpec.nsxManagerSpecs | One manager keeps the example short. Use three for production. |
nsxTClusterSpec.ipAddressPoolSpec | TEP pool for the cluster. nsxTSpec.ipAddressPoolSpec at the domain level is documented as deprecated; set it on the cluster. |
# Validate, create, poll, verify (PowerShell). Inputs: env vars for passwords, HOST_ID_n, CLUSTER_IMAGE_ID.
$hosts = (Invoke-Vcf GET '/v1/hosts?status=UNASSIGNED_USEABLE&storageType=NFS').elements | Sort-Object fqdn
1..4 | ForEach-Object { [Environment]::SetEnvironmentVariable("HOST_ID_$_", $hosts[$_ - 1].id) }
(Invoke-Vcf GET '/v1/personalities').elements | Format-Table personalityId, personalityName, version
$env:CLUSTER_IMAGE_ID = '<PERSONALITY_ID_FROM_LIST>'
$dom = [regex]::Replace((Get-Content ./w01-domain.tmpl.json -Raw), '\$\{([A-Z0-9_]+)\}',
{ param($m) [Environment]::GetEnvironmentVariable($m.Groups[1].Value) })
$dv = Invoke-Vcf POST '/v1/domains/validations' $dom
Wait-VcfValidation "/v1/domains/validations/$($dv.id)" | Out-Null
$t = Wait-VcfTask (Invoke-Vcf POST '/v1/domains' $dom).id 60
$d = (Invoke-Vcf GET '/v1/domains').elements | Where-Object name -eq 'w01'
$c = Invoke-Vcf GET "/v1/clusters/$($d.clusters[0].id)"
$c | Select-Object name, status, primaryDatastoreName, primaryDatastoreType
if ($c.primaryDatastoreType -ne 'NFS') { throw "w01 principal storage is $($c.primaryDatastoreType), expected NFS" }
Expected at the end: status ACTIVE, primaryDatastoreName w01-nfs01, primaryDatastoreType NFS. The Cluster.primaryDatastoreType enum distinguishes NFS from VVOL_NFS, so this check also catches a cluster that was built on the wrong storage model. GET /v1/clusters/{id}/datastores lists every datastore SDDC Manager knows on that cluster, which is the place to look if you later add supplemental VMstore exports.
12. Packet flow and where it breaks
Every validation failure in this guide is ultimately a packet that did not arrive. Figure 3 follows the two paths that matter: the API path from your workstation through SDDC Manager to vCenter and the hosts, and the NFS data path from a host’s NFS client to the VMstore data interface, with the standby path over fabric B and the four places it most often breaks.
Read it from left to right when you triage. A failure at A (MTU) lets the mount succeed and then stalls large I/O, which is why validation can pass on a 1500-byte path and the first appliance copy hangs. A failure at B (VLAN) means no ARP at all. C (export access) fails the mount immediately with a clear message in vmkernel.log. D (TCP 111) is specific to how the installer validates NFS, which probes portmapper before mounting. The ports on the control side are the ones Broadcom documents for these flows: HTTPS 443 to every appliance, and 443 plus 902 from vCenter to ESXi, which Broadcom KB 435005 calls out as required for VCF 9.0.1 deployments. The Nexus-side commands for A and B are in Troubleshooting MTU issues on Cisco switches, and the fleet-wide version of the vmkping test is Automating the jumbo frame check.
13. Error shapes and what they mean
Both appliances return the same Error object on a 4xx or 5xx: errorCode, errorType, arguments, context, message, remediationMessage, causes, nestedErrors, referenceToken, label and remediationUrl. The referenceToken is what you quote to support; it is also the string to grep for in the appliance logs. A trimmed example:
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"errorCode": "...",
"errorType": "ERROR",
"message": "Installation already exists",
"remediationMessage": "...",
"referenceToken": "Q3W8ZK",
"nestedErrors": []
}
| Status | Where you see it | What it means for you |
|---|---|---|
| 400 Bad Request | Any POST/PATCH; documented on /v1/tokens, /v1/sddcs, /v1/hosts, /v1/bundles/{id} | The body or the state is wrong. On POST /v1/sddcs it includes “Installation already exists”. Read message and nestedErrors; do not retry blindly. |
| 401 Unauthorized | Any call with a missing, expired or foreign token | Refresh with PATCH /v1/tokens/access-token/refresh; if that fails, log in again. A 401 right after login means wrong host or wrong account type (installer vs SSO). |
| 403 Forbidden | Documented on installer validation and resources-calculation | Authenticated but not allowed: the account lacks the ADMIN role, or the operation is not permitted in the current appliance mode. |
| 404 Not Found | GET by id on validations, tasks, sddcs, clusters | Wrong id, or an id from the other appliance. Validation ids do not survive across appliances. |
| 405 Not Allowed | PATCH /v1/sddcs/{id} | Documented as “Not allowed”. In practice the installation task is not in a state that can be retried. |
| 409 Conflict | PATCH /v1/bundles/{id} | A download for that bundle is already triggered. Safe to treat as success and keep polling. |
| 500 Internal Server Error | Anywhere | Server-side failure. Capture referenceToken, check the appliance logs, and retry only idempotent reads. |
14. API reference table
Checked against: VCF Installer API 9.1.2 and SDDC Manager API 9.1.2, the latest versions on developer.broadcom.com in December 2026. “Since” is the earliest VCF 9 reference in which I found the operation (9.0 unless noted); this table does not track 5.x history. All paths are relative to https://<appliance>.
| Method | Path | On | Purpose | Key fields | Since |
|---|---|---|---|---|---|
| POST | /v1/tokens | Both | Create access and refresh token | username, password → accessToken, refreshToken.id | 9.0 |
| PATCH | /v1/tokens/access-token/refresh | Both | New access token | body: refresh token id | 9.0 |
| DELETE | /v1/tokens/refresh-token | Both | Log out (invalidate refresh token) | 204 | 9.0 |
| GET | /v1/system/appliance-info | Installer | Appliance details | 9.1.2 ref (not checked in 9.0) | |
| GET / PUT | /v1/system/settings/depot | Installer | Read / set depot account | vmwareAccount, offlineAccount, depotConfiguration | 9.1.2 ref (not checked in 9.0) |
| GET | /v1/bundles | Installer | List bundles | downloadStatus | 9.1.2 ref (not checked in 9.0) |
| PATCH | /v1/bundles/{id} | Installer | Start download | bundleDownloadSpec.downloadNow; 202 Task, 409 if running | 9.1.2 ref (not checked in 9.0) |
| POST | /v1/sddcs/resources-calculation | Installer | Capacity check of a spec | requiredCapacity, availableCapacity | 9.1.1 (absent from 9.0) |
| POST | /v1/sddcs/validations | Installer | Validate spec | SddcSpec → Validation.id | 9.0 |
| GET | /v1/sddcs/validations/{id} | Installer | Validation result | executionStatus, resultStatus, validationChecks | 9.0 |
| GET | /v1/sddcs/validations/latest | Installer | Most recent validation | same as above | 9.0 |
| POST | /v1/sddcs | Installer | Deploy | SddcSpec, ?skipValidations → SddcTask | 9.0 |
| GET | /v1/sddcs/{id} | Installer | Deployment status | status, milestones, sddcSubTasks | 9.0 |
| PATCH | /v1/sddcs/{id} | Installer | Retry failed deployment | corrected SddcSpec | 9.0 |
| GET | /v1/sddcs/{id}/spec | Installer | Spec of a deployment | use to template a known-good spec | 9.0 |
| GET / POST | /v1/network-pools | SDDC Manager | List / create pool | networks[].type NFS, VMOTION | 9.0 |
| POST | /v1/hosts/validations | SDDC Manager | Validate commission spec | array of HostCommissionSpec | 9.0 |
| GET | /v1/hosts/validations/{id} | SDDC Manager | Commission validation result | resultStatus | 9.0 |
| POST | /v1/hosts | SDDC Manager | Commission hosts | storageType: NFS, networkPoolId → Task | 9.0 |
| GET | /v1/hosts | SDDC Manager | List hosts | ?status=UNASSIGNED_USEABLE&storageType=NFS | 9.0 |
| GET | /v1/personalities | SDDC Manager | vLCM images | personalityId | 9.0 |
| POST | /v1/domains/validations | SDDC Manager | Validate domain spec | DomainCreationSpec | 9.0 |
| GET | /v1/domains/validations/{id} | SDDC Manager | Domain validation result | resultStatus | 9.0 |
| POST | /v1/domains | SDDC Manager | Create workload domain | nfsDatastoreSpecs → Task | 9.0 |
| GET | /v1/domains | SDDC Manager | List domains | name, status | 9.0 |
| GET | /v1/clusters/{id} | SDDC Manager | Cluster detail | primaryDatastoreType, primaryDatastoreName | 9.0 |
| GET | /v1/clusters/{id}/datastores | SDDC Manager | Datastores on a cluster | 9.0 | |
| GET | /v1/tasks/{id} | Both | Task status | status, errors, isRetryable | 9.0 |
| PATCH | /v1/tasks/{id} | Both | Retry task | 9.0 |
Deprecated in the 9.1.2 SDDC Manager reference, do not build on them:
POST /v1/hosts/validations/commissions(usePOST /v1/hosts/validations),POST /v1/hosts/queriesandGET /v1/hosts/queries/{id}(useGET /v1/hostswith filters), thesizeandpagequery parameters (usepageSizeandpageNumber),ClusterSpec.skipThumbprintValidation, andnsxTSpec.ipAddressPoolSpecon the domain spec. The installer’sPOST /v1/bundles(upload bundle) is also marked deprecated.
15. Postman collection and newman
The collection follows the workflow: 1 Auth, 2 Discover, 3 Deploy and configure, 4 Verify, 5 Troubleshoot, 6 Logout. Each top-level folder has an A sub-folder for the VCF Installer and a B sub-folder for SDDC Manager, because the two halves run hours apart. Bearer auth is set at collection level from {{accessToken}} and overridden to {{installerToken}} on the installer folders; the login requests capture both tokens with pm.environment.set. Every poll request waits pollDelayMs and loops on itself with postman.setNextRequest until the validation or task finishes, up to pollMax times. A collection-level test prints the VCF errorCode, message, remediationMessage and referenceToken for any 4xx or 5xx.
No passwords live in the collection. The three large request bodies are environment variables (sddcSpecJson, commissionSpecJson, domainSpecJson) that you fill from the rendered templates at run time, and password, installerPassword and the tokens are environment variables of type secret with empty values.
Import and run in the Postman app
- Import
24-vmware-vcf-9-tintri-nfs-api-deploy-guide.postman_collection.jsonand…postman_environment.json(File, Import). Both files are linked from this post and the collection is printed in full below. - Select the environment VCF 9 Tintri NFS lab. Set
installerUrlandbaseUrl(the same FQDN in this design),installerPasswordandpasswordas current values only, so they never sync. - Paste the rendered spec JSON into
sddcSpecJson(and later the commission and domain bodies). Postman substitutes the variable into the raw body. - Run folder by folder with the Collection Runner: 1A, 2A, 3A, then 4 Verify A11. After bring-up: 1B, 2B, 3B, then the rest of 4 Verify, and 6 Logout. Turn on “Keep variable values” so captured ids carry between requests.
- Trust the VMCA root in Postman (Settings, Certificates, CA certificates) rather than switching off SSL verification.
newman from a shell or CI
npm install -g newman # newman 6.x
COL=24-vmware-vcf-9-tintri-nfs-api-deploy-guide.postman_collection.json
ENV=24-vmware-vcf-9-tintri-nfs-api-deploy-guide.postman_environment.json
# Phase A smoke test: auth, discovery, depot and bundle state. Safe to run any time; changes nothing.
newman run "$COL" -e "$ENV" \
--folder "1A Auth - VCF Installer" --folder "2A Discover - VCF Installer" \
--env-var "installerUrl=https://sddcm01.lab.local" \
--env-var "installerPassword=$VCF_INSTALLER_PASS" \
--ssl-extra-ca-certs ./vmca-root.pem \
--reporters cli,junit --reporter-junit-export results/phase-a-smoke.xml
# Phase A deploy: validation loop, then deployment loop (hours). Spec comes from the rendered template.
newman run "$COL" -e "$ENV" \
--folder "1A Auth - VCF Installer" --folder "3A Deploy - VCF Installer" --folder "A11 Installer - deployment result" \
--env-var "installerUrl=https://sddcm01.lab.local" --env-var "installerPassword=$VCF_INSTALLER_PASS" \
--env-var "sddcSpecJson=$SPEC" --env-var "pollDelayMs=120000" --env-var "pollMax=300" \
--ssl-extra-ca-certs ./vmca-root.pem --export-environment ./run-env.json
# Phase B verification as a scheduled health check against SDDC Manager:
newman run "$COL" -e "$ENV" \
--folder "1B Auth - SDDC Manager" --folder "4 Verify" --folder "6 Logout" \
--env-var "baseUrl=https://sddcm01.lab.local" --env-var "password=$VCF_PASS" \
--ssl-extra-ca-certs ./vmca-root.pem --bail
--folder accepts folder or request names and can repeat; requests run in collection order. In a lab with self-signed certificates you can replace --ssl-extra-ca-certs with --insecure, which skips TLS verification for every request; do not carry that into a pipeline that holds production credentials. The Verify run exits non-zero if the workload domain is not ACTIVE or its principal datastore is not NFS, which makes it a usable CI gate after any change window. The secrets passed with --env-var end up in the process list on shared runners; use your CI system’s masked variables and avoid --export-environment on runs that include passwords, or delete the exported file after.
The collection
Save as 24-vmware-vcf-9-tintri-nfs-api-deploy-guide.postman_collection.json and import into Postman:
{
"info": {
"_postman_id": "416389fe-3584-49d9-b53f-4c540995d82a",
"name": "VMware VCF 9 on Tintri NFS - VCF Installer and SDDC Manager API",
"description": "Companion to vmwareblogs.co.in post 'VMware VCF 9 on Tintri NFS principal storage, deployed by API'. Checked against VCF Installer API and SDDC Manager API 9.1.2 (developer.broadcom.com, Dec 2026). Run folders in order. Spec bodies come from environment variables sddcSpecJson, commissionSpecJson and domainSpecJson so no password is stored in the collection.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// Collection pre-request: fail fast on missing configuration.",
"if (!pm.environment.get('baseUrl') || !pm.environment.get('installerUrl')) { throw new Error('Set baseUrl and installerUrl in the environment'); }",
"const raw = pm.request.url.toString(); // still holds the {{variable}} names here",
"const isLogin = /create token/.test(pm.info.requestName);",
"const usesInstaller = raw.includes('{{installerUrl}}');",
"if (!isLogin && usesInstaller && !pm.environment.get('installerToken')) { console.warn('No installerToken yet: run 1A Auth first'); }",
"if (!isLogin && !usesInstaller && !pm.environment.get('accessToken')) { console.warn('No accessToken yet: run 1B Auth first'); }"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// Collection test: surface the VCF error body on any 4xx/5xx.",
"if (pm.response.code >= 400) {",
" let e = {}; try { e = pm.response.json(); } catch (x) {}",
" console.error(pm.info.requestName + ' -> ' + pm.response.code + ' ' + (e.errorCode || '') + ': ' + (e.message || pm.response.text()) + (e.remediationMessage ? ' | fix: ' + e.remediationMessage : '') + (e.referenceToken ? ' | ref ' + e.referenceToken : ''));",
"}",
"if (pm.response.code === 401) { console.error('401: token expired or wrong appliance. Run T6 refresh or 1A/1B Auth again.'); }"
]
}
}
],
"item": [
{
"name": "1 Auth",
"item": [
{
"name": "1A Auth - VCF Installer",
"item": [
{
"name": "A1 Installer - create token",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/tokens",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"tokens"
]
},
"description": "POST /v1/tokens on the VCF Installer appliance. Returns accessToken and refreshToken.id.",
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"{{installerUsername}}\",\n \"password\": \"{{installerPassword}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"auth": {
"type": "noauth"
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"token issued (201)\", () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
"const j = pm.response.json();",
"pm.test(\"accessToken present\", () => pm.expect(j.accessToken).to.be.a(\"string\").and.not.empty);",
"pm.environment.set(\"installerToken\", j.accessToken);",
"if (j.refreshToken && j.refreshToken.id) { pm.environment.set(\"installerRefreshToken\", j.refreshToken.id); }"
]
}
}
]
}
]
},
{
"name": "1B Auth - SDDC Manager",
"item": [
{
"name": "B1 SDDC Manager - create token",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tokens",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tokens"
]
},
"description": "POST /v1/tokens on SDDC Manager (after bring-up).",
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"{{username}}\",\n \"password\": \"{{password}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"auth": {
"type": "noauth"
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"token issued (201)\", () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
"const j = pm.response.json();",
"pm.test(\"accessToken present\", () => pm.expect(j.accessToken).to.be.a(\"string\").and.not.empty);",
"pm.environment.set(\"accessToken\", j.accessToken);",
"if (j.refreshToken && j.refreshToken.id) { pm.environment.set(\"refreshToken\", j.refreshToken.id); }"
]
}
}
]
}
]
}
]
},
{
"name": "2 Discover",
"item": [
{
"name": "2A Discover - VCF Installer",
"item": [
{
"name": "A2 Installer - appliance info",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/system/appliance-info",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"system",
"appliance-info"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"console.log(JSON.stringify(pm.response.json()));"
]
}
}
]
},
{
"name": "A3 Installer - depot settings",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/system/settings/depot",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"system",
"settings",
"depot"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const j = pm.response.json();",
"const s = (j.vmwareAccount && j.vmwareAccount.status) || (j.offlineAccount && j.offlineAccount.status);",
"console.log(\"depot status: \" + s);"
]
}
}
]
},
{
"name": "A4 Installer - bundles not yet downloaded",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/bundles",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"bundles"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const els = pm.response.json().elements || [];",
"const pending = els.filter(b => b.downloadStatus !== \"SUCCESSFUL\");",
"console.log(\"bundles not downloaded: \" + pending.map(b => b.id + \" \" + b.downloadStatus).join(\", \"));",
"if (pending.length) { pm.environment.set(\"bundleId\", pending[0].id); }",
"pm.test(\"bundle list returned\", () => pm.expect(els).to.be.an(\"array\"));"
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{installerToken}}",
"type": "string"
}
]
}
},
{
"name": "2B Discover - SDDC Manager",
"item": [
{
"name": "B2 SDDC Manager - network pools",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/network-pools",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"network-pools"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const p = (pm.response.json().elements || []).find(x => x.name === pm.environment.get(\"networkPoolName\"));",
"if (p) { pm.environment.set(\"networkPoolId\", p.id); console.log(\"pool exists: \" + p.id); }"
]
}
}
]
},
{
"name": "B3 SDDC Manager - unassigned NFS hosts",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/hosts?status=UNASSIGNED_USEABLE&storageType=NFS",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"hosts"
],
"query": [
{
"key": "status",
"value": "UNASSIGNED_USEABLE"
},
{
"key": "storageType",
"value": "NFS"
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const els = pm.response.json().elements || [];",
"console.log(\"unassigned NFS hosts: \" + els.map(h => h.fqdn).join(\", \"));",
"els.forEach((h, i) => pm.environment.set(\"hostId\" + (i + 1), h.id));"
]
}
}
]
},
{
"name": "B4 SDDC Manager - vLCM images (personalities)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/personalities",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"personalities"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"(pm.response.json().elements || []).forEach(p => console.log(p.personalityId + \" \" + p.personalityName + \" \" + p.version));"
]
}
}
]
},
{
"name": "B5 SDDC Manager - domains",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/domains",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"domains"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"(pm.response.json().elements || []).forEach(d => console.log(d.name + \" \" + d.type + \" \" + d.status));"
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
}
}
]
},
{
"name": "3 Deploy and configure",
"item": [
{
"name": "3A Deploy - VCF Installer",
"item": [
{
"name": "A5 Installer - start bundle download",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/bundles/{{bundleId}}",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"bundles",
"{{bundleId}}"
]
},
"body": {
"mode": "raw",
"raw": "{\n \"bundleDownloadSpec\": {\n \"downloadNow\": true\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"download accepted (202) or already running (409)\", () => pm.expect(pm.response.code).to.be.oneOf([202, 409]));"
]
}
}
]
},
{
"name": "A6 Installer - resources calculation",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/resources-calculation",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"resources-calculation"
]
},
"description": "VCF 9.1.x. Body comes from the sddcSpecJson environment variable.",
"body": {
"mode": "raw",
"raw": "{{sddcSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"accepted\", () => pm.expect(pm.response.code).to.be.oneOf([200, 202]));",
"console.log(JSON.stringify(pm.response.json().requiredCapacity || {}));"
]
}
}
]
},
{
"name": "A7 Installer - validate spec",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/validations",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"validations"
]
},
"body": {
"mode": "raw",
"raw": "{{sddcSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"validation accepted\", () => pm.expect(pm.response.code).to.be.oneOf([200, 202]));",
"const j = pm.response.json();",
"pm.environment.set(\"validationId\", j.id);",
"pm.test(\"validation id\", () => pm.expect(j.id).to.be.a(\"string\"));"
]
}
}
]
},
{
"name": "A8 Installer - poll validation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/validations/{{validationId}}",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"validations",
"{{validationId}}"
]
}
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// wait between polls; the sandbox keeps the request pending until the timer fires",
"const ms = Number(pm.environment.get(\"pollDelayMs\") || 30000);",
"setTimeout(() => {}, ms);"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const j = pm.response.json();",
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const n = Number(pm.environment.get(\"pollCount\") || 0) + 1;",
"pm.environment.set(\"pollCount\", n);",
"const st = j.executionStatus + \"/\" + j.resultStatus;",
"console.log(\"validation: poll \" + n + \" -> \" + st);",
"if (j.executionStatus === \"FAILED\" || j.resultStatus === \"FAILED\") {",
" pm.test(\"not failed\", () => pm.expect.fail(\"validation ended as \" + st));",
" pm.environment.unset(\"pollCount\");",
"} else if (j.executionStatus === \"COMPLETED\" && j.resultStatus !== \"FAILED\") {",
" pm.test(\"finished: \" + st, () => pm.expect(st).to.be.a(\"string\"));",
" pm.environment.unset(\"pollCount\");",
"} else if (n < Number(pm.environment.get(\"pollMax\") || 60)) {",
" postman.setNextRequest(pm.info.requestName);",
"} else {",
" pm.test(\"poll limit reached\", () => pm.expect.fail(\"still \" + st + \" after \" + n + \" polls\"));",
" pm.environment.unset(\"pollCount\");",
"}",
"(j.validationChecks || []).filter(c => c.resultStatus === \"FAILED\").forEach(c =>",
" console.log(\"FAILED: \" + c.description + \" :: \" + ((c.errorResponse || {}).message || \"\")));"
]
}
}
]
},
{
"name": "A9 Installer - deploy",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs"
]
},
"body": {
"mode": "raw",
"raw": "{{sddcSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"deployment accepted (202)\", () => pm.response.to.have.status(202));",
"const j = pm.response.json();",
"pm.environment.set(\"sddcTaskId\", j.id);",
"pm.test(\"SddcTask id\", () => pm.expect(j.id).to.be.a(\"string\"));"
]
}
}
]
},
{
"name": "A10 Installer - poll deployment",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/{{sddcTaskId}}",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"{{sddcTaskId}}"
]
}
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// wait between polls; the sandbox keeps the request pending until the timer fires",
"const ms = Number(pm.environment.get(\"pollDelayMs\") || 30000);",
"setTimeout(() => {}, ms);"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const j = pm.response.json();",
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const n = Number(pm.environment.get(\"pollCount\") || 0) + 1;",
"pm.environment.set(\"pollCount\", n);",
"const st = j.status;",
"console.log(\"deployment: poll \" + n + \" -> \" + st);",
"if (j.status === \"COMPLETED_WITH_FAILURE\" || j.status === \"ROLLBACK_SUCCESS\") {",
" pm.test(\"not failed\", () => pm.expect.fail(\"deployment ended as \" + st));",
" pm.environment.unset(\"pollCount\");",
"} else if (j.status === \"COMPLETED_WITH_SUCCESS\") {",
" pm.test(\"finished: \" + st, () => pm.expect(st).to.be.a(\"string\"));",
" pm.environment.unset(\"pollCount\");",
"} else if (n < Number(pm.environment.get(\"pollMax\") || 60)) {",
" postman.setNextRequest(pm.info.requestName);",
"} else {",
" pm.test(\"poll limit reached\", () => pm.expect.fail(\"still \" + st + \" after \" + n + \" polls\"));",
" pm.environment.unset(\"pollCount\");",
"}",
"(j.milestones || []).forEach(m => console.log(m.name + \": \" + m.status + \" \" + m.completedTasks + \"/\" + m.totalTasks));"
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{installerToken}}",
"type": "string"
}
]
}
},
{
"name": "3B Configure - SDDC Manager",
"item": [
{
"name": "B6 SDDC Manager - create network pool",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/network-pools",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"network-pools"
]
},
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"{{networkPoolName}}\",\n \"networks\": [\n {\n \"type\": \"VMOTION\",\n \"vlanId\": {{vmotionVlan}},\n \"mtu\": 9000,\n \"subnet\": \"{{vmotionSubnet}}\",\n \"mask\": \"255.255.255.0\",\n \"gateway\": \"{{vmotionGateway}}\",\n \"ipPools\": [ { \"start\": \"{{vmotionStart}}\", \"end\": \"{{vmotionEnd}}\" } ]\n },\n {\n \"type\": \"NFS\",\n \"vlanId\": {{nfsVlan}},\n \"mtu\": 9000,\n \"subnet\": \"{{nfsSubnet}}\",\n \"mask\": \"255.255.255.0\",\n \"gateway\": \"{{nfsGateway}}\",\n \"ipPools\": [ { \"start\": \"{{nfsStart}}\", \"end\": \"{{nfsEnd}}\" } ]\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"pool created\", () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
"const j = pm.response.json();",
"pm.environment.set(\"networkPoolId\", j.id);",
"pm.test(\"pool has an NFS network\", () => pm.expect(j.networks.map(n => n.type)).to.include(\"NFS\"));"
]
}
}
]
},
{
"name": "B7 SDDC Manager - validate host commission",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/hosts/validations",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"hosts",
"validations"
]
},
"body": {
"mode": "raw",
"raw": "{{commissionSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"validation accepted (202)\", () => pm.response.to.have.status(202));",
"pm.environment.set(\"hostValidationId\", pm.response.json().id);"
]
}
}
]
},
{
"name": "B8 SDDC Manager - poll host validation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/hosts/validations/{{hostValidationId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"hosts",
"validations",
"{{hostValidationId}}"
]
}
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// wait between polls; the sandbox keeps the request pending until the timer fires",
"const ms = Number(pm.environment.get(\"pollDelayMs\") || 30000);",
"setTimeout(() => {}, ms);"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const j = pm.response.json();",
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const n = Number(pm.environment.get(\"pollCount\") || 0) + 1;",
"pm.environment.set(\"pollCount\", n);",
"const st = j.executionStatus + \"/\" + j.resultStatus;",
"console.log(\"host validation: poll \" + n + \" -> \" + st);",
"if (j.executionStatus === \"FAILED\" || j.resultStatus === \"FAILED\") {",
" pm.test(\"not failed\", () => pm.expect.fail(\"host validation ended as \" + st));",
" pm.environment.unset(\"pollCount\");",
"} else if (j.executionStatus === \"COMPLETED\" && j.resultStatus !== \"FAILED\") {",
" pm.test(\"finished: \" + st, () => pm.expect(st).to.be.a(\"string\"));",
" pm.environment.unset(\"pollCount\");",
"} else if (n < Number(pm.environment.get(\"pollMax\") || 60)) {",
" postman.setNextRequest(pm.info.requestName);",
"} else {",
" pm.test(\"poll limit reached\", () => pm.expect.fail(\"still \" + st + \" after \" + n + \" polls\"));",
" pm.environment.unset(\"pollCount\");",
"}"
]
}
}
]
},
{
"name": "B9 SDDC Manager - commission hosts (NFS)",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/hosts",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"hosts"
]
},
"body": {
"mode": "raw",
"raw": "{{commissionSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"commission accepted (202)\", () => pm.response.to.have.status(202));",
"pm.environment.set(\"taskId\", pm.response.json().id);"
]
}
}
]
},
{
"name": "B10 SDDC Manager - poll commission task",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tasks/{{taskId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tasks",
"{{taskId}}"
]
}
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// wait between polls; the sandbox keeps the request pending until the timer fires",
"const ms = Number(pm.environment.get(\"pollDelayMs\") || 30000);",
"setTimeout(() => {}, ms);"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const j = pm.response.json();",
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const n = Number(pm.environment.get(\"pollCount\") || 0) + 1;",
"pm.environment.set(\"pollCount\", n);",
"const st = j.status;",
"console.log(\"commission: poll \" + n + \" -> \" + st);",
"if ([\"FAILED\",\"Failed\",\"CANCELLED\",\"Cancelled\",\"TIMED_OUT\"].includes(j.status)) {",
" pm.test(\"not failed\", () => pm.expect.fail(\"commission ended as \" + st));",
" pm.environment.unset(\"pollCount\");",
"} else if (j.status === \"SUCCESSFUL\" || j.status === \"Successful\") {",
" pm.test(\"finished: \" + st, () => pm.expect(st).to.be.a(\"string\"));",
" pm.environment.unset(\"pollCount\");",
"} else if (n < Number(pm.environment.get(\"pollMax\") || 60)) {",
" postman.setNextRequest(pm.info.requestName);",
"} else {",
" pm.test(\"poll limit reached\", () => pm.expect.fail(\"still \" + st + \" after \" + n + \" polls\"));",
" pm.environment.unset(\"pollCount\");",
"}"
]
}
}
]
},
{
"name": "B11 SDDC Manager - validate domain spec",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/domains/validations",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"domains",
"validations"
]
},
"body": {
"mode": "raw",
"raw": "{{domainSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"validation accepted\", () => pm.expect(pm.response.code).to.be.oneOf([200, 202]));",
"pm.environment.set(\"domainValidationId\", pm.response.json().id);"
]
}
}
]
},
{
"name": "B12 SDDC Manager - poll domain validation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/domains/validations/{{domainValidationId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"domains",
"validations",
"{{domainValidationId}}"
]
}
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// wait between polls; the sandbox keeps the request pending until the timer fires",
"const ms = Number(pm.environment.get(\"pollDelayMs\") || 30000);",
"setTimeout(() => {}, ms);"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const j = pm.response.json();",
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const n = Number(pm.environment.get(\"pollCount\") || 0) + 1;",
"pm.environment.set(\"pollCount\", n);",
"const st = j.executionStatus + \"/\" + j.resultStatus;",
"console.log(\"domain validation: poll \" + n + \" -> \" + st);",
"if (j.executionStatus === \"FAILED\" || j.resultStatus === \"FAILED\") {",
" pm.test(\"not failed\", () => pm.expect.fail(\"domain validation ended as \" + st));",
" pm.environment.unset(\"pollCount\");",
"} else if (j.executionStatus === \"COMPLETED\" && j.resultStatus !== \"FAILED\") {",
" pm.test(\"finished: \" + st, () => pm.expect(st).to.be.a(\"string\"));",
" pm.environment.unset(\"pollCount\");",
"} else if (n < Number(pm.environment.get(\"pollMax\") || 60)) {",
" postman.setNextRequest(pm.info.requestName);",
"} else {",
" pm.test(\"poll limit reached\", () => pm.expect.fail(\"still \" + st + \" after \" + n + \" polls\"));",
" pm.environment.unset(\"pollCount\");",
"}"
]
}
}
]
},
{
"name": "B13 SDDC Manager - create workload domain",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/domains",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"domains"
]
},
"body": {
"mode": "raw",
"raw": "{{domainSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"domain creation accepted (202)\", () => pm.response.to.have.status(202));",
"pm.environment.set(\"taskId\", pm.response.json().id);"
]
}
}
]
},
{
"name": "B14 SDDC Manager - poll domain task",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tasks/{{taskId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tasks",
"{{taskId}}"
]
}
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// wait between polls; the sandbox keeps the request pending until the timer fires",
"const ms = Number(pm.environment.get(\"pollDelayMs\") || 30000);",
"setTimeout(() => {}, ms);"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"const j = pm.response.json();",
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const n = Number(pm.environment.get(\"pollCount\") || 0) + 1;",
"pm.environment.set(\"pollCount\", n);",
"const st = j.status;",
"console.log(\"domain: poll \" + n + \" -> \" + st);",
"if ([\"FAILED\",\"Failed\",\"CANCELLED\",\"Cancelled\",\"TIMED_OUT\"].includes(j.status)) {",
" pm.test(\"not failed\", () => pm.expect.fail(\"domain ended as \" + st));",
" pm.environment.unset(\"pollCount\");",
"} else if (j.status === \"SUCCESSFUL\" || j.status === \"Successful\") {",
" pm.test(\"finished: \" + st, () => pm.expect(st).to.be.a(\"string\"));",
" pm.environment.unset(\"pollCount\");",
"} else if (n < Number(pm.environment.get(\"pollMax\") || 60)) {",
" postman.setNextRequest(pm.info.requestName);",
"} else {",
" pm.test(\"poll limit reached\", () => pm.expect.fail(\"still \" + st + \" after \" + n + \" polls\"));",
" pm.environment.unset(\"pollCount\");",
"}"
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
}
}
]
},
{
"name": "4 Verify",
"item": [
{
"name": "A11 Installer - deployment result",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/{{sddcTaskId}}",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"{{sddcTaskId}}"
]
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{installerToken}}",
"type": "string"
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"pm.test(\"management domain deployed\", () => pm.expect(pm.response.json().status).to.eql(\"COMPLETED_WITH_SUCCESS\"));"
]
}
}
]
},
{
"name": "B15 SDDC Manager - find workload domain",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/domains",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"domains"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const d = (pm.response.json().elements || []).find(x => x.name === pm.environment.get(\"domainName\"));",
"pm.test(\"domain exists\", () => pm.expect(d, \"domain \" + pm.environment.get(\"domainName\")).to.be.an(\"object\"));",
"pm.test(\"domain ACTIVE\", () => pm.expect(d.status).to.eql(\"ACTIVE\"));",
"pm.environment.set(\"domainId\", d.id);",
"if (d.clusters && d.clusters.length) { pm.environment.set(\"clusterId\", d.clusters[0].id); }"
]
}
}
]
},
{
"name": "B16 SDDC Manager - cluster principal storage",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/clusters/{{clusterId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"clusters",
"{{clusterId}}"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const c = pm.response.json();",
"pm.test(\"principal storage is NFS\", () => pm.expect(c.primaryDatastoreType).to.eql(\"NFS\"));",
"pm.test(\"principal datastore name\", () => pm.expect(c.primaryDatastoreName).to.eql(pm.environment.get(\"w01DatastoreName\")));",
"pm.test(\"cluster ACTIVE\", () => pm.expect(c.status).to.eql(\"ACTIVE\"));"
]
}
}
]
},
{
"name": "B17 SDDC Manager - cluster datastores",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/clusters/{{clusterId}}/datastores",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"clusters",
"{{clusterId}}",
"datastores"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"console.log(pm.response.text());"
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
}
},
{
"name": "5 Troubleshoot",
"item": [
{
"name": "T1 SDDC Manager - failed tasks",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tasks",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tasks"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"(pm.response.json().elements || []).filter(t => /fail/i.test(t.status)).forEach(t =>",
" console.log(t.id + \" \" + t.name + \" \" + t.status + \" retryable=\" + t.isRetryable));"
]
}
}
]
},
{
"name": "T2 SDDC Manager - task detail with errors",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tasks/{{taskId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tasks",
"{{taskId}}"
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"const t = pm.response.json();",
"(t.errors || []).forEach(e => console.log(e.errorCode + \": \" + e.message + \" | fix: \" + e.remediationMessage + \" | ref \" + e.referenceToken));",
"(t.subTasks || []).filter(s => s.status === \"FAILED\").forEach(s => console.log(\"subtask FAILED: \" + s.name));"
]
}
}
]
},
{
"name": "T3 SDDC Manager - retry failed task",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tasks/{{taskId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tasks",
"{{taskId}}"
]
},
"description": "Run on purpose only, after fixing the cause. The task must report isRetryable = true."
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"retry accepted\", () => pm.expect(pm.response.code).to.be.oneOf([200, 202]));"
]
}
}
]
},
{
"name": "T4 Installer - latest validation",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/validations/latest",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"validations",
"latest"
]
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{installerToken}}",
"type": "string"
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"status 200\", () => pm.response.to.have.status(200));",
"(pm.response.json().validationChecks || []).filter(c => c.resultStatus === \"FAILED\").forEach(c =>",
" console.log(c.description + \" :: \" + ((c.errorResponse || {}).message || \"\")));"
]
}
}
]
},
{
"name": "T5 Installer - retry deployment",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/sddcs/{{sddcTaskId}}",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"sddcs",
"{{sddcTaskId}}"
]
},
"description": "Retries a failed installation task with the corrected spec.",
"body": {
"mode": "raw",
"raw": "{{sddcSpecJson}}",
"options": {
"raw": {
"language": "json"
}
}
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{installerToken}}",
"type": "string"
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"retry accepted (202)\", () => pm.response.to.have.status(202));"
]
}
}
]
},
{
"name": "T6 SDDC Manager - refresh access token",
"request": {
"method": "PATCH",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tokens/access-token/refresh",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tokens",
"access-token",
"refresh"
]
},
"description": "Body is the refresh token id as a JSON string. Confirm the body format against your build.",
"body": {
"mode": "raw",
"raw": "\"{{refreshToken}}\"",
"options": {
"raw": {
"language": "json"
}
}
},
"auth": {
"type": "noauth"
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"refreshed (200)\", () => pm.response.to.have.status(200));",
"const t = pm.response.text().replace(/^\"|\"$/g, \"\");",
"if (t) { pm.environment.set(\"accessToken\", t); }"
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
}
},
{
"name": "6 Logout",
"item": [
{
"name": "L1 SDDC Manager - invalidate refresh token",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/v1/tokens/refresh-token",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"tokens",
"refresh-token"
]
},
"body": {
"mode": "raw",
"raw": "\"{{refreshToken}}\"",
"options": {
"raw": {
"language": "json"
}
}
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"refresh token invalidated (204)\", () => pm.expect(pm.response.code).to.be.oneOf([200, 204]));",
"pm.environment.unset(\"accessToken\");",
"pm.environment.unset(\"refreshToken\");"
]
}
}
]
},
{
"name": "L2 Installer - invalidate refresh token",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{installerUrl}}/v1/tokens/refresh-token",
"host": [
"{{installerUrl}}"
],
"path": [
"v1",
"tokens",
"refresh-token"
]
},
"body": {
"mode": "raw",
"raw": "\"{{installerRefreshToken}}\"",
"options": {
"raw": {
"language": "json"
}
}
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{installerToken}}",
"type": "string"
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"refresh token invalidated (204)\", () => pm.expect(pm.response.code).to.be.oneOf([200, 204]));",
"pm.environment.unset(\"installerToken\");",
"pm.environment.unset(\"installerRefreshToken\");"
]
}
}
]
}
]
}
]
}
Save as 24-vmware-vcf-9-tintri-nfs-api-deploy-guide.postman_environment.json:
{
"id": "0aa513ac-4572-4033-8c9a-e4bf1199ebba",
"name": "VCF 9 Tintri NFS lab",
"values": [
{
"key": "installerUrl",
"value": "https://sddcm01.lab.local",
"type": "default",
"enabled": true
},
{
"key": "baseUrl",
"value": "https://sddcm01.lab.local",
"type": "default",
"enabled": true
},
{
"key": "installerUsername",
"value": "admin@local",
"type": "default",
"enabled": true
},
{
"key": "installerPassword",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "username",
"value": "administrator@vsphere.local",
"type": "default",
"enabled": true
},
{
"key": "password",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "installerToken",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "installerRefreshToken",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "accessToken",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "refreshToken",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "sddcSpecJson",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "commissionSpecJson",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "domainSpecJson",
"value": "",
"type": "secret",
"enabled": true
},
{
"key": "networkPoolName",
"value": "np-w01",
"type": "default",
"enabled": true
},
{
"key": "vmotionVlan",
"value": "20",
"type": "default",
"enabled": true
},
{
"key": "vmotionSubnet",
"value": "198.18.20.0",
"type": "default",
"enabled": true
},
{
"key": "vmotionGateway",
"value": "198.18.20.1",
"type": "default",
"enabled": true
},
{
"key": "vmotionStart",
"value": "198.18.20.21",
"type": "default",
"enabled": true
},
{
"key": "vmotionEnd",
"value": "198.18.20.40",
"type": "default",
"enabled": true
},
{
"key": "nfsVlan",
"value": "30",
"type": "default",
"enabled": true
},
{
"key": "nfsSubnet",
"value": "198.18.30.0",
"type": "default",
"enabled": true
},
{
"key": "nfsGateway",
"value": "198.18.30.1",
"type": "default",
"enabled": true
},
{
"key": "nfsStart",
"value": "198.18.30.21",
"type": "default",
"enabled": true
},
{
"key": "nfsEnd",
"value": "198.18.30.40",
"type": "default",
"enabled": true
},
{
"key": "domainName",
"value": "w01",
"type": "default",
"enabled": true
},
{
"key": "w01DatastoreName",
"value": "w01-nfs01",
"type": "default",
"enabled": true
},
{
"key": "bundleId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "validationId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "sddcTaskId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "networkPoolId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "hostValidationId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "taskId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "domainValidationId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "domainId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "clusterId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "pollDelayMs",
"value": "30000",
"type": "default",
"enabled": true
},
{
"key": "pollMax",
"value": "120",
"type": "default",
"enabled": true
}
],
"_postman_variable_scope": "environment"
}
16. End-to-end workflow with checks
From an empty rack row to a verified NFS workload domain. Each step lists the check that proves it worked and what you should see.
- Network ready: VLANs 10, 20, 30, 40, 50 trunked through the vNICs, Fabric Interconnects and vPC pair, MTU 9216 on the fabric.
Check: On the Nexus:show interface <po> | include MTUandshow vlan id 30. Expect MTU 9216 and VLAN 30 active on the host and VMstore-facing port-channels. - VMstore data interface on VLAN 30, exports for m01 and w01 created, access allowed for 198.18.30.0/24.
Check: From any host on VLAN 30 later: the mount in step 4. On the VMstore UI the data IP shows up and the MTU matches your design. - ESXi 9 installed on all eight hosts, DNS forward and reverse records for every host and appliance, NTP reachable.
Check:nslookup esx05.lab.localand the reverse lookup return matching records. Missing PTR records are a classic validation failure. - esx01 prepared as in section 05: port group named like the NFS
portGroupKey, vmk2, MTU 9000, export mounted asm01-nfs01.
Check:vmkping -I vmk2 -d -s 8972 198.18.30.50: 3 replies.esxcli storage nfs list:m01-nfs01Accessible true, Mounted true. - Deploy the VCF Installer OVA on esx01 (on the NFS datastore or local storage), browse to it once to confirm it is up.
Check:POST /v1/tokensasadmin@local: 201 withaccessToken. - Depot configured and bundles downloaded (section 06).
Check:GET /v1/bundles: every required bundledownloadStatus=SUCCESSFUL. - Render the m01 spec from the template (section 07); on 9.1 run resources calculation.
Check:jq -e .succeeds;POST /v1/sddcs/resources-calculationreturns 202 and no capacity shortfall. - Validate (section 08).
Check:GET /v1/sddcs/validations/{id}:executionStatusCOMPLETED,resultStatusSUCCEEDED or WARNING with only warnings you have read and accept. - Deploy and poll.
Check:GET /v1/sddcs/{id}:statusCOMPLETED_WITH_SUCCESS. In vCenter m01,m01-nfs01is mounted on esx01 to esx04 and holds vCenter, NSX, SDDC Manager and VCF Operations. - Check the mount is identical everywhere.
Check: On each m01 hostesxcli storage nfs listshows the same Host and Share string. The NFS datastore health sweep does this across the fleet. - Log in to SDDC Manager, create pool
np-w01.
Check:POST /v1/network-pools: 201;GET /v1/network-poolsshows NFS and VMOTION networks. - Validate and commission esx05 to esx08 with
storageType: NFS.
Check: Host validation SUCCEEDED; commission task SUCCESSFUL;GET /v1/hosts?status=UNASSIGNED_USEABLE&storageType=NFSlists four hosts. - Render the w01 domain spec with host ids and
clusterImageId; validate.
Check:GET /v1/domains/validations/{id}: COMPLETED / SUCCEEDED. - Create the domain and poll the task.
Check:GET /v1/tasks/{id}: SUCCESSFUL. Expect this to take hours, not minutes. - Verify.
Check:GET /v1/clusters/{id}:statusACTIVE,primaryDatastoreTypeNFS,primaryDatastoreNamew01-nfs01. On a w01 host,esxcli network ip connection list | grep :2049shows the local address in 198.18.30.0/24 (the NFS vmk), not 198.18.10.0/24. - Log out and schedule the newman Verify run.
Check:DELETE /v1/tokens/refresh-token: 204. The nightly newman run reports all assertions passed.
17. Troubleshooting table
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Validation fails at “NFS Datastore Configuration”: not found on host | Export not pre-mounted on the first host, or mounted under a different name or server string | esxcli storage nfs list on esx01 | Mount it as in section 05 with the exact serverName, path and datastoreName from the spec (KB 414088) |
| Validation: “Unable to reach … on port: 111” | Portmapper blocked, wrong VLAN on the NFS vmk, or no NFS vmk on esx01 | vmkping -I vmk2 198.18.30.50; nc -z 198.18.30.50 111 from the ESXi shell | Open TCP 111 and 2049 between the NFS range and the data IP; fix the vmk VLAN (KB 414174) |
| Validation fails on 9.1 at the same step, vmkernel.log “mount request was denied” | VMstore export access does not include the NFS vmk range | vmkernel.log on the host; export settings on the VMstore | Allow the whole NFS range for both domains (KB 446573) |
| Validation fails, domainmanager log mentions MTU of the NFS spec versus vSwitch0 | Path MTU below the spec MTU somewhere | vmkping -I vmk2 -d -s 8972 fails, -s 1472 works | Set MTU end to end, or set the NFS network MTU to 1500 in the spec and keep it consistent |
Validation errors MISSING_NET_SPEC_ENTRY / MISSING_DVS_SPEC_NET_ENTRY | NFS network missing from networkSpecs or from the vDS networks | Search the spec for "NFS" | Add both (section 07) |
Validation errors NOT_ENOUGH_IPS / MISSING_INCLUSION_RANGE | No or too small includeIpAddressRanges on the NFS network | Count hosts versus addresses | At least one address per host, plus headroom for expansion |
| Validation “Failed to validate or retrieve component file” | Bundles in PENDING, binaries never downloaded | GET /v1/bundles | PATCH /v1/bundles/{id} with downloadNow, wait for SUCCESSFUL, re-validate (KB 438260) |
| Validation rejects the spec version | version not supported by this installer build | The error lists supported versions | Use one of them; do not use a build number |
POST /v1/sddcs returns 400 “Installation already exists” | A previous run exists on this installer | GET /v1/sddcs | Retry the existing one with PATCH /v1/sddcs/{id} instead of starting again |
| Deployment progress stops for about half an hour | Installer relocating itself to the NFS datastore | RelocateVM task in vCenter; write burst on the VMstore | Wait. Refresh the token if your loop idles past expiry |
| Any call returns 401 mid-run | Access token expired, or token from the other appliance | Which host and which account issued the token | PATCH /v1/tokens/access-token/refresh, else log in again |
| Commission validation fails for a host | DNS, NTP, credentials, thumbprint or the host is not in the expected state | validationChecks[].errorResponse.message | Fix the named item; supply sslThumbprint and sshThumbprint if pinning |
| Domain creation fails mounting the NFS datastore | NFS vmk not created (pool missing NFS network) or export access | Task errors[]; esxcli storage nfs list on a w01 host | Add the NFS network to the pool or allow its range on the VMstore, then PATCH /v1/tasks/{id} |
Cluster reports primaryDatastoreType other than NFS | Spec carried a different datastore spec or hosts commissioned with another storage type | GET /v1/hosts/{id}; the domain spec | Decommission and recommission with storageType: NFS; rebuild the cluster |
| NFS traffic leaves on vmk0 | enableBindToVmknic false and routing prefers management, or the NFS vmk is missing | esxcli network ip connection list | grep :2049 | Bind to the NFS vmk; check the port group exists on every host |
| newman fails with a certificate error | VMCA root not trusted by the runner | openssl s_client -connect sddcm01.lab.local:443 -showcerts | --ssl-extra-ca-certs with the VMCA root; --insecure only in a lab |
For anything past the bring-up, the layer-by-layer runbook is part 5 of the series, and the API-driven playbooks are in Troubleshooting VMware vSphere on Tintri with APIs.
18. What’s next
With both domains on VMstore exports and a newman run guarding them, the next steps are on the storage side and in day 2. The VMstore REST API guide covers per-VM stats, snapshots and QoS for the VMs VCF just deployed, and the Tintri Global Center API guide takes that across a fleet. The vSphere Automation REST API guide picks up inside the new vCenter, and the design guide turns the decisions in section 03 into a design document. For lifecycle and DR, read part 6 of the VMware, Tintri and Cisco series, and for the original design and UI build, Building VMware Cloud Foundation 9 on Tintri NFS storage. To watch NFS latency on these datastores continuously, NFS datastore latency with OpenTelemetry and correlating vSphere and VMstore latency are the places to start.
Checked against the VCF Installer API and SDDC Manager API references at version 9.1.2 on developer.broadcom.com (December 2026), Broadcom KBs 414088, 414174, 416270, 435005, 438260, 443647 and 446573, the public Tintri VMstore with VMware Best Practices Guide revision 3.1, and AWS’s published VCF 9.x NFS deployment spec. Field names drift between point releases: run validation before you trust any spec, including this one. Tintri values in this post come from the public guide; confirm them against the guide for your TxOS release. Example names and addresses only.
Running Kubernetes on this stack? Continue with VMware vSphere + Kubernetes on Tintri VMstore: the solutions architect’s design guide and VMware vSphere Kubernetes on Tintri: deploy workflow, persistent volume lifecycle and APIs.
Leave a Reply