vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.26k stars 896 forks source link

govc: add storage.policy.create zonal option #3475

Closed dougm closed 1 week ago

dougm commented 1 week ago

New '-z' flag enables Zonal topology for multi-zone Supervisor

Uses the sub profile as created by the H5 UI, see for example:

govc storage.policy.info -json wcp-zonal | jq .policies[].profile.constraints.subProfiles

[
  {
    "name": "Consumption domain",
    "capability": [
      {
        "id": {
          "namespace": "com.vmware.storage.consumptiondomain",
          "id": "StorageTopology"
        },
        "constraint": [
          {
            "propertyInstance": [
              {
                "id": "StorageTopologyType",
                "value": "Zonal"
              }
            ]
          }
        ]
      }
    ]
  }
]