VSphereVM [infrastructure.cluster.x-k8s.io/v1beta1]

VSphereVM 是底层 provider 资源,用于表示在 vCenter 中、为 VSphereMachine 提供支撑的虚拟机。它由 provider controller 创建,而不是由最终用户创建。运维人员在排查克隆、IP 分配或电源状态问题时,会直接检查它。

描述
VSphereVM is the Schema for the vspherevms API.
类型
object

规格

属性类型描述
apiVersionstring

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kindstring

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

VSphereVMSpec defines the desired state of VSphereVM.

statusobject

VSphereVMStatus defines the observed state of VSphereVM.

.spec

描述
VSphereVMSpec defines the desired state of VSphereVM.
类型
object
必填
networktemplate
属性类型描述
additionalDisksGiBarray

AdditionalDisksGiB holds the sizes of additional disks of the virtual machine, in GiB Defaults to the eponymous property value in the template from which the virtual machine is cloned.

biosUUIDstring

BiosUUID is the VM's BIOS UUID that is assigned at runtime after the VM has been created. This field is required at runtime for other controllers that read this CRD as unstructured data.

bootstrapRefobject

BootstrapRef is a reference to a bootstrap provider-specific resource that holds configuration details. This field is optional in case no bootstrap data is required to create a VM.

cloneModestring

CloneMode specifies the type of clone operation. The LinkedClone mode is only supported for templates that have at least one snapshot. If the template has no snapshots, then CloneMode defaults to FullClone. When LinkedClone mode is enabled the DiskGiB field is ignored as it is not possible to expand disks of linked clones. Defaults to LinkedClone, but fails gracefully to FullClone if the source of the clone operation has no snapshots.

customVMXKeysobject

CustomVMXKeys is a dictionary of advanced VMX options that can be set on VM Defaults to empty map

dataDisksarray

DataDisks are additional disks to add to the VM that are not part of the VM's OVA template.

datacenterstring

Datacenter is the name, inventory path, managed object reference or the managed object ID of the datacenter in which the virtual machine is created/located. Defaults to * which selects the default datacenter.

datastorestring

Datastore is the name, inventory path, managed object reference or the managed object ID of the datastore in which the virtual machine is created/located.

diskGiBinteger

DiskGiB is the size of a virtual machine's disk, in GiB. Defaults to the eponymous property value in the template from which the virtual machine is cloned.

folderstring

Folder is the name, inventory path, managed object reference or the managed object ID of the folder in which the virtual machine is created/located.

guestSoftPowerOffTimeoutstring

GuestSoftPowerOffTimeout sets the wait timeout for shutdown in the VM guest. The VM will be powered off forcibly after the timeout if the VM is still up and running when the PowerOffMode is set to trySoft.

This parameter only applies when the PowerOffMode is set to trySoft.

If omitted, the timeout defaults to 5 minutes.

hardwareVersionstring

HardwareVersion is the hardware version of the virtual machine. Defaults to the eponymous property value in the template from which the virtual machine is cloned. Check the compatibility with the ESXi version before setting the value.

memoryMiBinteger

MemoryMiB is the size of a virtual machine's memory, in MiB. Defaults to the eponymous property value in the template from which the virtual machine is cloned.

networkobject

Network is the network configuration for this machine's VM.

numCPUsinteger

NumCPUs is the number of virtual processors in a virtual machine. Defaults to the eponymous property value in the template from which the virtual machine is cloned.

numCoresPerSocketinteger

NumCoresPerSocket is the number of cores per socket in a virtual machine. Defaults to the eponymous property value in the template from which the virtual machine is cloned.

osstring

OS is the Operating System of the virtual machine Defaults to Linux

pciDevicesarray

PciDevices is the list of pci devices used by the virtual machine.

powerOffModestring

PowerOffMode describes the desired behavior when powering off a VM.

There are three supported power off modes: hard, soft, and trySoft. The first mode, hard, is the equivalent of a physical system's power cord being ripped from the wall. The soft mode requires the VM's guest to have VM Tools installed and attempts to gracefully shut down the VM. Its variant, trySoft, first attempts a graceful shutdown, and if that fails or the VM is not in a powered off state after reaching the GuestSoftPowerOffTimeout, the VM is halted.

If omitted, the mode defaults to hard.

resourcePoolstring

ResourcePool is the name, inventory path, managed object reference or the managed object ID in which the virtual machine is created/located.

serverstring

Server is the IP address or FQDN of the vSphere server on which the virtual machine is created/located.

snapshotstring

Snapshot is the name of the snapshot from which to create a linked clone. This field is ignored if LinkedClone is not enabled. Defaults to the source's current snapshot.

storagePolicyNamestring

StoragePolicyName of the storage policy to use with this Virtual Machine

tagIDsarray

TagIDs is an optional set of tags to add to an instance. Specified tagIDs must use URN-notation instead of display names.

templatestring

Template is the name, inventory path, managed object reference or the managed object ID of the template used to clone the virtual machine.

thumbprintstring

Thumbprint is the colon-separated SHA-1 checksum of the given vCenter server's host certificate When this is set to empty, this VirtualMachine would be created without TLS certificate validation of the communication between Cluster API Provider vSphere and the VMware vCenter server.

.spec.additionalDisksGiB

描述
AdditionalDisksGiB holds the sizes of additional disks of the virtual machine, in GiB Defaults to the eponymous property value in the template from which the virtual machine is cloned.
类型
array

.spec.additionalDisksGiB[]

类型
integer

.spec.bootstrapRef

描述
BootstrapRef is a reference to a bootstrap provider-specific resource that holds configuration details. This field is optional in case no bootstrap data is required to create a VM.
类型
object
属性类型描述
apiVersionstring

API version of the referent.

fieldPathstring

If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.

kindstring

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

namestring

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

namespacestring

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

resourceVersionstring

Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

uidstring

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

.spec.customVMXKeys

描述
CustomVMXKeys is a dictionary of advanced VMX options that can be set on VM Defaults to empty map
类型
object

.spec.dataDisks

描述
DataDisks are additional disks to add to the VM that are not part of the VM's OVA template.
类型
array

.spec.dataDisks[]

描述
VSphereDisk is an additional disk to add to the VM that is not part of the VM OVA template.
类型
object
必填
namesizeGiB
属性类型描述
namestring

Name is used to identify the disk definition. Name is required and needs to be unique so that it can be used to clearly identify purpose of the disk.

provisioningModestring

ProvisioningMode specifies the provisioning type to be used by this vSphere data disk. If not set, the setting will be provided by the default storage policy.

sizeGiBinteger

SizeGiB is the size of the disk in GiB.

.spec.network

描述
Network is the network configuration for this machine's VM.
类型
object
必填
devices
属性类型描述
devicesarray

Devices is the list of network devices used by the virtual machine.

preferredAPIServerCidrstring

PreferredAPIServerCIDR is the preferred CIDR for the Kubernetes API server endpoint on this machine

Deprecated: This field is going to be removed in a future release.

routesarray

Routes is a list of optional, static routes applied to the virtual machine.

.spec.network.devices

描述
Devices is the list of network devices used by the virtual machine.
类型
array

.spec.network.devices[]

描述
NetworkDeviceSpec defines the network configuration for a virtual machine's network device.
类型
object
必填
networkName
属性类型描述
addressesFromPoolsarray

AddressesFromPools is a list of IPAddressPools that should be assigned to IPAddressClaims. The machine's cloud-init metadata will be populated with IPAddresses fulfilled by an IPAM provider.

deviceNamestring

DeviceName may be used to explicitly assign a name to the network device as it exists in the guest operating system.

dhcp4boolean

DHCP4 is a flag that indicates whether or not to use DHCP for IPv4 on this device. If true then IPAddrs should not contain any IPv4 addresses.

dhcp4Overridesobject

DHCP4Overrides allows for the control over several DHCP behaviors. Overrides will only be applied when the corresponding DHCP flag is set. Only configured values will be sent, omitted values will default to distribution defaults. Dependent on support in the network stack for your distribution. For more information see the netplan reference (https://netplan.io/reference#dhcp-overrides)

dhcp6boolean

DHCP6 is a flag that indicates whether or not to use DHCP for IPv6 on this device. If true then IPAddrs should not contain any IPv6 addresses.

dhcp6Overridesobject

DHCP6Overrides allows for the control over several DHCP behaviors. Overrides will only be applied when the corresponding DHCP flag is set. Only configured values will be sent, omitted values will default to distribution defaults. Dependent on support in the network stack for your distribution. For more information see the netplan reference (https://netplan.io/reference#dhcp-overrides)

gateway4string

Gateway4 is the IPv4 gateway used by this device. Required when DHCP4 is false.

gateway6string

Gateway6 is the IPv6 gateway used by this device. Required when DHCP6 is false.

ipAddrsarray

IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign to this device. IP addresses must also specify the segment length in CIDR notation. Required when DHCP4, DHCP6 and SkipIPAllocation are false.

macAddrstring

MACAddr is the MAC address used by this device. It is generally a good idea to omit this field and allow a MAC address to be generated. Please note that this value must use the VMware OUI to work with the in-tree vSphere cloud provider.

mtuinteger

MTU is the device’s Maximum Transmission Unit size in bytes.

nameserversarray

Nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers. Please note that Linux allows only three nameservers (https://linux.die.net/man/5/resolv.conf).

networkNamestring

NetworkName is the name, managed object reference or the managed object ID of the vSphere network to which the device will be connected.

routesarray

Routes is a list of optional, static routes applied to the device.

searchDomainsarray

SearchDomains is a list of search domains used when resolving IP addresses with DNS.

skipIPAllocationboolean

SkipIPAllocation allows the device to not have IP address or DHCP configured. This is suitable for devices for which IP allocation is handled externally, eg. using Multus CNI. If true, CAPV will not verify IP address allocation.

.spec.network.devices[].addressesFromPools

描述
AddressesFromPools is a list of IPAddressPools that should be assigned to IPAddressClaims. The machine's cloud-init metadata will be populated with IPAddresses fulfilled by an IPAM provider.
类型
array

.spec.network.devices[].addressesFromPools[]

描述
TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
类型
object
必填
kindname
属性类型描述
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

.spec.network.devices[].dhcp4Overrides

描述
DHCP4Overrides allows for the control over several DHCP behaviors. Overrides will only be applied when the corresponding DHCP flag is set. Only configured values will be sent, omitted values will default to distribution defaults. Dependent on support in the network stack for your distribution. For more information see the netplan reference (https://netplan.io/reference#dhcp-overrides)
类型
object
属性类型描述
hostnamestring

Hostname is the name which will be sent to the DHCP server instead of the machine's hostname.

routeMetricinteger

RouteMetric is used to prioritize routes for devices. A lower metric for an interface will have a higher priority.

sendHostnameboolean

SendHostname when true, the hostname of the machine will be sent to the DHCP server.

useDNSboolean

UseDNS when true, the DNS servers in the DHCP server will be used and take precedence.

useDomainsstring

UseDomains can take the values true, false, or route. When true, the domain name from the DHCP server will be used as the DNS search domain for this device. When route, the domain name from the DHCP response will be used for routing DNS only, not for searching.

useHostnameboolean

UseHostname when true, the hostname from the DHCP server will be set as the transient hostname of the machine.

useMTUboolean

UseMTU when true, the MTU from the DHCP server will be set as the MTU of the device.

useNTPboolean

UseNTP when true, the NTP servers from the DHCP server will be used by systemd-timesyncd and take precedence.

useRoutesstring

UseRoutes can take the values true, false, or route. When true, the routes from the DHCP server will be installed in the routing table.

.spec.network.devices[].dhcp6Overrides

描述
DHCP6Overrides allows for the control over several DHCP behaviors. Overrides will only be applied when the corresponding DHCP flag is set. Only configured values will be sent, omitted values will default to distribution defaults. Dependent on support in the network stack for your distribution. For more information see the netplan reference (https://netplan.io/reference#dhcp-overrides)
类型
object
属性类型描述
hostnamestring

Hostname is the name which will be sent to the DHCP server instead of the machine's hostname.

routeMetricinteger

RouteMetric is used to prioritize routes for devices. A lower metric for an interface will have a higher priority.

sendHostnameboolean

SendHostname when true, the hostname of the machine will be sent to the DHCP server.

useDNSboolean

UseDNS when true, the DNS servers in the DHCP server will be used and take precedence.

useDomainsstring

UseDomains can take the values true, false, or route. When true, the domain name from the DHCP server will be used as the DNS search domain for this device. When route, the domain name from the DHCP response will be used for routing DNS only, not for searching.

useHostnameboolean

UseHostname when true, the hostname from the DHCP server will be set as the transient hostname of the machine.

useMTUboolean

UseMTU when true, the MTU from the DHCP server will be set as the MTU of the device.

useNTPboolean

UseNTP when true, the NTP servers from the DHCP server will be used by systemd-timesyncd and take precedence.

useRoutesstring

UseRoutes can take the values true, false, or route. When true, the routes from the DHCP server will be installed in the routing table.

.spec.network.devices[].ipAddrs

描述
IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign to this device. IP addresses must also specify the segment length in CIDR notation. Required when DHCP4, DHCP6 and SkipIPAllocation are false.
类型
array

.spec.network.devices[].ipAddrs[]

类型
string

.spec.network.devices[].nameservers

描述
Nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers. Please note that Linux allows only three nameservers (https://linux.die.net/man/5/resolv.conf).
类型
array

.spec.network.devices[].nameservers[]

类型
string

.spec.network.devices[].routes

描述
Routes is a list of optional, static routes applied to the device.
类型
array

.spec.network.devices[].routes[]

描述
NetworkRouteSpec defines a static network route.
类型
object
必填
metrictovia
属性类型描述
metricinteger

Metric is the weight/priority of the route.

tostring

To is an IPv4 or IPv6 address.

viastring

Via is an IPv4 or IPv6 address.

.spec.network.devices[].searchDomains

描述
SearchDomains is a list of search domains used when resolving IP addresses with DNS.
类型
array

.spec.network.devices[].searchDomains[]

类型
string

.spec.network.routes

描述
Routes is a list of optional, static routes applied to the virtual machine.
类型
array

.spec.network.routes[]

描述
NetworkRouteSpec defines a static network route.
类型
object
必填
metrictovia
属性类型描述
metricinteger

Metric is the weight/priority of the route.

tostring

To is an IPv4 or IPv6 address.

viastring

Via is an IPv4 or IPv6 address.

.spec.pciDevices

描述
PciDevices is the list of pci devices used by the virtual machine.
类型
array

.spec.pciDevices[]

描述
PCIDeviceSpec defines virtual machine's PCI configuration.
类型
object
属性类型描述
customLabelstring

CustomLabel is the hardware label of a virtual machine's PCI device. Defaults to the eponymous property value in the template from which the virtual machine is cloned.

deviceIdinteger

DeviceID is the device ID of a virtual machine's PCI, in integer. Defaults to the eponymous property value in the template from which the virtual machine is cloned. Mutually exclusive with VGPUProfile as VGPUProfile and DeviceID + VendorID are two independent ways to define PCI devices.

vGPUProfilestring

VGPUProfile is the profile name of a virtual machine's vGPU, in string. Defaults to the eponymous property value in the template from which the virtual machine is cloned. Mutually exclusive with DeviceID and VendorID as VGPUProfile and DeviceID + VendorID are two independent ways to define PCI devices.

vendorIdinteger

VendorId is the vendor ID of a virtual machine's PCI, in integer. Defaults to the eponymous property value in the template from which the virtual machine is cloned. Mutually exclusive with VGPUProfile as VGPUProfile and DeviceID + VendorID are two independent ways to define PCI devices.

.spec.tagIDs

描述
TagIDs is an optional set of tags to add to an instance. Specified tagIDs must use URN-notation instead of display names.
类型
array

.spec.tagIDs[]

类型
string

.status

描述
VSphereVMStatus defines the observed state of VSphereVM.
类型
object
属性类型描述
addressesarray

Addresses is a list of the VM's IP addresses. This field is required at runtime for other controllers that read this CRD as unstructured data.

cloneModestring

CloneMode is the type of clone operation used to clone this VM. Since LinkedClone is the default but fails gracefully if the source of the clone has no snapshots, this field may be used to determine the actual type of clone operation used to create this VM.

conditionsarray

Conditions defines current service state of the VSphereVM.

failureMessagestring

FailureMessage will be set in the event that there is a terminal problem reconciling the vspherevm and will contain a more verbose string suitable for logging and human consumption.

This field should not be set for transitive errors that a controller faces that are expected to be fixed automatically over time (like service outages), but instead indicate that something is fundamentally wrong with the vm.

Any transient errors that occur during the reconciliation of vspherevms can be added as events to the vspherevm object and/or logged in the controller's output.

failureReasonstring

FailureReason will be set in the event that there is a terminal problem reconciling the vspherevm and will contain a succinct value suitable for vm interpretation.

This field should not be set for transitive errors that a controller faces that are expected to be fixed automatically over time (like service outages), but instead indicate that something is fundamentally wrong with the vm.

Any transient errors that occur during the reconciliation of vspherevms can be added as events to the vspherevm object and/or logged in the controller's output.

hoststring

Host describes the hostname or IP address of the infrastructure host that the VSphereVM is residing on.

moduleUUIDstring

ModuleUUID is the unique identifier for the vCenter cluster module construct which is used to configure anti-affinity. Objects with the same ModuleUUID will be anti-affined, meaning that the vCenter DRS will best effort schedule the VMs on separate hosts.

networkarray

Network returns the network status for each of the machine's configured network interfaces.

readyboolean

Ready is true when the provider resource is ready. This field is required at runtime for other controllers that read this CRD as unstructured data.

retryAfterstring

RetryAfter tracks the time we can retry queueing a task

snapshotstring

Snapshot is the name of the snapshot from which the VM was cloned if LinkedClone is enabled.

taskRefstring

TaskRef is a managed object reference to a Task related to the machine. This value is set automatically at runtime and should not be set or modified by users.

v1beta2object

v1beta2 groups all the fields that will be added or modified in VSphereVM's status with the V1Beta2 version.

vmRefstring

VMRef is the VM's Managed Object Reference on vSphere. It can be used by consumers to programatically get this VM representation on vSphere in case of the need to retrieve informations. This field is set once the machine is created and should not be changed

.status.addresses

描述
Addresses is a list of the VM's IP addresses. This field is required at runtime for other controllers that read this CRD as unstructured data.
类型
array

.status.addresses[]

类型
string

.status.conditions

描述
Conditions defines current service state of the VSphereVM.
类型
array

.status.conditions[]

描述
Condition defines an observation of a Cluster API resource operational state.
类型
object
必填
lastTransitionTimestatustype
属性类型描述
lastTransitionTimestring

lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.

messagestring

message is a human readable message indicating details about the transition. This field may be empty.

reasonstring

reason is the reason for the condition's last transition in CamelCase. The specific API may choose whether or not this field is considered a guaranteed API. This field may be empty.

severitystring

severity provides an explicit classification of Reason code, so the users or machines can immediately understand the current situation and act accordingly. The Severity field MUST be set only when Status=False.

statusstring

status of the condition, one of True, False, Unknown.

typestring

type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important.

.status.network

描述
Network returns the network status for each of the machine's configured network interfaces.
类型
array

.status.network[]

描述
NetworkStatus provides information about one of a VM's networks.
类型
object
必填
macAddr
属性类型描述
connectedboolean

Connected is a flag that indicates whether this network is currently connected to the VM.

ipAddrsarray

IPAddrs is one or more IP addresses reported by vm-tools.

macAddrstring

MACAddr is the MAC address of the network device.

networkNamestring

NetworkName is the name of the network.

.status.network[].ipAddrs

描述
IPAddrs is one or more IP addresses reported by vm-tools.
类型
array

.status.network[].ipAddrs[]

类型
string

.status.v1beta2

描述
v1beta2 groups all the fields that will be added or modified in VSphereVM's status with the V1Beta2 version.
类型
object
属性类型描述
conditionsarray

conditions represents the observations of a VSphereVM's current state. Known condition types are Ready, VirtualMachineProvisioned, VCenterAvailable and IPAddressClaimsFulfilled, GuestSoftPowerOffSucceeded, PCIDevicesDetached and Paused.

.status.v1beta2.conditions

描述
conditions represents the observations of a VSphereVM's current state. Known condition types are Ready, VirtualMachineProvisioned, VCenterAvailable and IPAddressClaimsFulfilled, GuestSoftPowerOffSucceeded, PCIDevicesDetached and Paused.
类型
array

.status.v1beta2.conditions[]

描述
Condition contains details for one aspect of the current state of this API Resource.
类型
object
必填
lastTransitionTimemessagereasonstatustype
属性类型描述
lastTransitionTimestring

lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.

messagestring

message is a human readable message indicating details about the transition. This may be an empty string.

observedGenerationinteger

observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.

reasonstring

reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.

statusstring

status of the condition, one of True, False, Unknown.

typestring

type of condition in CamelCase or in foo.example.com/CamelCase.

API 端点

可用的 API 端点如下:

  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms
    • DELETE: delete collection of VSphereVM
    • GET: list objects of kind VSphereVM
    • POST: create a new VSphereVM
  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}
    • DELETE: delete the specified VSphereVM
    • GET: read the specified VSphereVM
    • PATCH: partially update the specified VSphereVM
    • PUT: replace the specified VSphereVM
  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}/status
    • GET: read status of the specified VSphereVM
    • PATCH: partially update status of the specified VSphereVM
    • PUT: replace status of the specified VSphereVM

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms

HTTP 方法
DELETE
描述
delete collection of VSphereVM
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind VSphereVM
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVMList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new VSphereVM
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyVSphereVM schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
201 - CreatedVSphereVM schema
202 - AcceptedVSphereVM schema
401 - UnauthorizedEmpty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}

HTTP 方法
DELETE
描述
delete the specified VSphereVM
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified VSphereVM
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified VSphereVM
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified VSphereVM
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyVSphereVM schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
201 - CreatedVSphereVM schema
401 - UnauthorizedEmpty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}/status

HTTP 方法
GET
描述
read status of the specified VSphereVM
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified VSphereVM
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified VSphereVM
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyVSphereVM schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKVSphereVM schema
201 - CreatedVSphereVM schema
401 - UnauthorizedEmpty