Skip to content

Commit 795b564

Browse files
committed
docs: Update various API reference links
Signed-off-by: Doug MacEachern <[email protected]>
1 parent 053de4a commit 795b564

File tree

14 files changed

+24
-25
lines changed

14 files changed

+24
-25
lines changed

cli/vm/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (cmd *create) Description() string {
195195
return `Create VM.
196196
197197
For a list of possible '-g' IDs, use 'govc vm.option.info' or see:
198-
https://code.vmware.com/apis/358/vsphere/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
198+
https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
199199
200200
Examples:
201201
govc vm.create -on=false vm-name

examples/datastores/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func main() {
3535
defer v.Destroy(ctx)
3636

3737
// Retrieve summary property for all datastores
38-
// Reference: http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/vim.Datastore.html
38+
// Reference: https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.Datastore.html
3939
var dss []mo.Datastore
4040
err = v.Retrieve(ctx, []string{"Datastore"}, []string{"summary"}, &dss)
4141
if err != nil {

examples/hosts/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func main() {
3636
defer v.Destroy(ctx)
3737

3838
// Retrieve summary property for all hosts
39-
// Reference: http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/vim.HostSystem.html
39+
// Reference: https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.HostSystem.html
4040
var hss []mo.HostSystem
4141
err = v.Retrieve(ctx, []string{"HostSystem"}, []string{"summary"}, &hss)
4242
if err != nil {

examples/networks/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626

2727
defer v.Destroy(ctx)
2828

29-
// Reference: http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/vim.Network.html
29+
// Reference: https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.Network.html
3030
var networks []mo.Network
3131
err = v.Retrieve(ctx, []string{"Network"}, nil, &networks)
3232
if err != nil {

examples/virtualmachines/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func main() {
3232
defer v.Destroy(ctx)
3333

3434
// Retrieve summary property for all machines
35-
// Reference: http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/vim.VirtualMachine.html
35+
// Reference: https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.VirtualMachine.html
3636
var vms []mo.VirtualMachine
3737
err = v.Retrieve(ctx, []string{"VirtualMachine"}, []string{"summary"}, &vms)
3838
if err != nil {

govc/USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6846,7 +6846,7 @@ Usage: govc vm.create [OPTIONS] NAME
68466846
Create VM.
68476847
68486848
For a list of possible '-g' IDs, use 'govc vm.option.info' or see:
6849-
https://code.vmware.com/apis/358/vsphere/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
6849+
https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
68506850
68516851
Examples:
68526852
govc vm.create -on=false vm-name

list/lister.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func ToElement(r mo.Reference, prefix string) Element {
3030

3131
// Comments about types to be expected in folders copied from the
3232
// documentation of the Folder managed object:
33-
// http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/vim.Folder.html
33+
// https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.Folder.html
3434
switch m := r.(type) {
3535
case mo.Folder:
3636
name = m.Name

object/distributed_virtual_portgroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (p DistributedVirtualPortgroup) EthernetCardBackingInfo(ctx context.Context
3838
return nil, err
3939
}
4040

41-
// From the docs at https://code.vmware.com/apis/196/vsphere/doc/vim.dvs.DistributedVirtualPortgroup.ConfigInfo.html:
41+
// From the docs at https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.dvs.DistributedVirtualPortgroup.ConfigInfo.html:
4242
// "This property should always be set unless the user's setting does not have System.Read privilege on the object referred to by this property."
4343
// Note that "the object" refers to the Switch, not the PortGroup.
4444
if dvp.Config.DistributedVirtualSwitch == nil {

property/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var ErrConcurrentCollector = fmt.Errorf(
2727
// Collector models the PropertyCollector managed object.
2828
//
2929
// For more information, see:
30-
// http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvmodl.query.PropertyCollector.html
30+
// https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vmodl.query.PropertyCollector.html
3131
type Collector struct {
3232
mu sync.Mutex
3333
roundTripper soap.RoundTripper

simulator/virtual_machine.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,11 +1147,10 @@ func (vm *VirtualMachine) create(ctx *Context, spec *types.VirtualMachineConfigS
11471147

11481148
var vmwOUI = net.HardwareAddr([]byte{0x0, 0xc, 0x29})
11491149

1150-
// From http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vsphere.networking.doc%2FGUID-DC7478FF-DC44-4625-9AD7-38208C56A552.html
1151-
// "The host generates generateMAC addresses that consists of the VMware OUI 00:0C:29 and the last three octets in hexadecimal
1152-
//
1153-
// format of the virtual machine UUID. The virtual machine UUID is based on a hash calculated by using the UUID of the
1154-
// ESXi physical machine and the path to the configuration file (.vmx) of the virtual machine."
1150+
// From https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/mac-addresses/mac-address-generation-on-esxi-hosts.html
1151+
// > The host generates generateMAC addresses that consists of the VMware OUI 00:0C:29 and the last three octets in hexadecimal
1152+
// > format of the virtual machine UUID. The virtual machine UUID is based on a hash calculated by using the UUID of the
1153+
// > ESXi physical machine and the path to the configuration file (.vmx) of the virtual machine.
11551154
func (vm *VirtualMachine) generateMAC(unit int32) string {
11561155
id := []byte(vm.Config.Uuid)
11571156

0 commit comments

Comments
 (0)