MachineInventory [elemental.cattle.io/v1beta1]

MachineInventory 是物理主机的长期身份对象。它由 elemental-register 在主机启动 seed ISO 后创建,并会在重新 provision 过程中持续保留——BaremetalMachine 仅在一个 Kubernetes 节点的生命周期内借用它。由 Inventory 拥有的 managed data volumes 也会在该临时 Machine 被删除后继续保留。

裸金属 provider 及其主机侧 observer 使用该资源的以下部分:

  • metadata.name — 必须出现在 MachineInventoryPool.spec.machineInventories[].name 条目中,主机才可被分配。
  • spec.observedNetwork — 仅 Alauda fork 可用的字段,在注册期间采集;provider 会在每次重新 provision 时将其回放为 cloud-init network-config v2,因此主机会以与首次编目时相同的网卡 / bond / VLAN / IP 布局重新启动。
  • spec.storage — 可选的、由 operator 编写的期望状态,最多支持 32 个由 Inventory 拥有的数据卷。它通过稳定 ID 选择设备,定义 AdoptInitializeIfBlank、XFS 或 ext4、挂载路径、所需行为以及重试 nonce。
  • status.observedStorage — 由 elemental-storage-observer.service 报告的客观设备、标识、签名、文件系统、挂载、multipath 健康状态以及 observation watermark。
  • status.storage — provider 拥有的生命周期状态和用于 Prepare、Activate、Deactivate 和 Release 的 journal,包括已应用的 volume 标识以及 StoragePrepared / StorageActive conditions。

provider 还会写入 metadata.annotationsbaremetal.alauda.io/owner-* 和 storage plan-claim 元数据),更新 status.plan / status.conditions,并通过该 Inventory 的默认 plan Secret 对 storage-preparereprovisioncleanstorage-release 工作进行串行化处理。

InitializeIfBlank 在其目标为空时具有破坏性。准入需要一个与当前 Inventory UID、规范化 storage hash 以及单调递增计数器绑定的 approval,并且还需要对虚拟 machineinventories/storageinitialize subresource 的 update 授权。请使用匹配的 storagectl 二进制文件创建原子 patch;不要手动计算或编辑该 approval。

有关设备选择规则、生命周期语义、兼容性边界以及完整示例,请参见 在裸金属主机上管理数据磁盘

类型
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
statusobject

.spec

类型
object
属性类型描述
ipAddressClaimsobject

IPAddressClaims is a map of IPAddressClaim associated to this machine. The map key is the ipAddressPool.name.

ipAddressPoolsobject

IPAddressPools is a list of IPAddressPool associated to this machine.

machineHashstring

MachineHash the hash of the identifier used by the host to identify to the operator. This is used when the host authenticates without TPM. Both the authentication method and the identifier used to derive the hash depend upon the MachineRegistration spec.config.elemental.registration.auth value.

networkobject

NetworkConfig is the final NetworkConfig.

observedNetworkobject

ObservedNetwork is a live-ISO-side snapshot of the host's actual network configuration uploaded by elemental-register during initial registration (Alauda fork). It is informational only and is intentionally kept separate from Network (the target/template network). Consumers such as baremetal providers can read this to know what the host looked like before install-time network reconfiguration.

storageobject

Storage is the explicit desired state for Inventory-owned data volumes. Devices omitted from this list remain unmanaged.

tpmHashstring

TPMHash the hash of the TPM EK public key. This is used if you are using TPM2 to identifiy nodes. You can obtain the TPM by running rancherd get-tpm-hash on the node. Or nodes can report their TPM hash by using the MachineRegister.

.spec.ipAddressClaims

描述
IPAddressClaims is a map of IPAddressClaim associated to this machine. The map key is the ipAddressPool.name.
类型
object

.spec.ipAddressPools

描述
IPAddressPools is a list of IPAddressPool associated to this machine.
类型
object

.spec.network

描述
NetworkConfig is the final NetworkConfig.
类型
object
属性类型描述
config

Config contains the network config template (nmc, nmstate, or nmconnections formats)

configuratorstring

Configurator

ipAddressesobject

IPAddresses contains a map of claimed IPAddresses

.spec.network.ipAddresses

描述
IPAddresses contains a map of claimed IPAddresses
类型
object

.spec.observedNetwork

描述
ObservedNetwork is a live-ISO-side snapshot of the host's actual network configuration uploaded by elemental-register during initial registration (Alauda fork). It is informational only and is intentionally kept separate from Network (the target/template network). Consumers such as baremetal providers can read this to know what the host looked like before install-time network reconfiguration.
类型
object
属性类型描述
dnsServersarray

DNSServers observed (typically from /etc/resolv.conf).

interfacesarray

Interfaces observed on the host.

routesarray

Routes observed in the host's routing table.

searchDomainsarray

SearchDomains observed.

.spec.observedNetwork.dnsServers

描述
DNSServers observed (typically from /etc/resolv.conf).
类型
array

.spec.observedNetwork.dnsServers[]

类型
string

.spec.observedNetwork.interfaces

描述
Interfaces observed on the host.
类型
array

.spec.observedNetwork.interfaces[]

描述
ObservedInterface describes a single network interface on the host.
类型
object
必填
name
属性类型描述
addressesarray

Addresses assigned to the interface, in CIDR form (e.g. 10.0.0.5/24, fe80::1/64). Both IPv4 and IPv6 may appear.

macstring

MAC is the hardware address.

mtuinteger

MTU in bytes.

namestring

Name is the OS-level interface name (e.g. eth0, ens3).

.spec.observedNetwork.interfaces[].addresses

描述
Addresses assigned to the interface, in CIDR form (e.g. 10.0.0.5/24, fe80::1/64). Both IPv4 and IPv6 may appear.
类型
array

.spec.observedNetwork.interfaces[].addresses[]

类型
string

.spec.observedNetwork.routes

描述
Routes observed in the host's routing table.
类型
array

.spec.observedNetwork.routes[]

描述
ObservedRoute describes a single routing table entry.
类型
object
必填
destination
属性类型描述
destinationstring

Destination CIDR, or the literal string "default" for the default route.

gatewaystring

Gateway is the next-hop IP, if any.

interfacestring

Interface is the outgoing device name, if any.

metricinteger

Metric of the route.

.spec.observedNetwork.searchDomains

描述
SearchDomains observed.
类型
array

.spec.observedNetwork.searchDomains[]

类型
string

.spec.storage

描述
Storage is the explicit desired state for Inventory-owned data volumes. Devices omitted from this list remain unmanaged.
类型
object
属性类型描述
retryNonceinteger

RetryNonce is a monotonic operator-controlled retry counter. It is not part of the normalized storage content hash.

volumesarray

Volumes are the only block devices the platform may manage.

.spec.storage.volumes

描述
Volumes are the only block devices the platform may manage.
类型
array

.spec.storage.volumes[]

描述
MachineInventoryStorageVolume declares one filesystem and its business mount point on this Inventory.
类型
object
必填
filesystemmountnamesource
属性类型描述
filesystemobject

StorageVolumeFilesystem declares filesystem adoption/initialization intent.

mountobject

StorageVolumeMount declares the business mount path and readiness policy.

namestring

Name is the stable logical identity inside this Inventory.

sourceobject

StorageVolumeSource selects one observer-reported logical block device.

.spec.storage.volumes[].filesystem

描述
StorageVolumeFilesystem declares filesystem adoption/initialization intent.
类型
object
必填
policytype
属性类型描述
expectedUUIDstring

ExpectedUUID is mandatory for Adopt and forbidden for a new blank initialization.

policystring

StorageFilesystemPolicy declares whether an existing filesystem is adopted or an entirely blank logical device may be initialized.

typestring

StorageFilesystemType is a supported ordinary single-host filesystem.

.spec.storage.volumes[].mount

描述
StorageVolumeMount declares the business mount path and readiness policy.
类型
object
必填
path
属性类型描述
optionsarray

Options contains individual, admission-whitelisted mount options.

pathstring

Path is a normalized absolute path accepted by provider admission.

requiredboolean

Required defaults to true. Optional volumes are still prepared and activated; only Machine readiness is relaxed.

.spec.storage.volumes[].mount.options

描述
Options contains individual, admission-whitelisted mount options.
类型
array

.spec.storage.volumes[].mount.options[]

类型
string

.spec.storage.volumes[].source

描述
StorageVolumeSource selects one observer-reported logical block device.
类型
object
必填
deviceID
属性类型描述
deviceIDstring

DeviceID must exactly reference status.observedStorage.devices[].id. Dynamic kernel paths such as /dev/sdb are not accepted.

minimumSizeinteger|string

MinimumSize is a non-destructive capacity assertion.

multipathobject

Multipath is valid only for a wwid: aggregate map.

.spec.storage.volumes[].source.multipath

描述
Multipath is valid only for a wwid: aggregate map.
类型
object
属性类型描述
minimumActivePathsinteger

MinimumActivePaths defaults to one.

.status

类型
object
属性类型描述
conditionsarray

Conditions describe the state of the machine inventory object.

observedStorageobject

ObservedStorage is objective host state written only by the authenticated periodic observer channel.

planobject

PlanStatus reflect the status of the plan owned by the machine inventory object.

storageobject

Storage is desired-state convergence written only by the baremetal provider Inventory Storage Reconciler.

.status.conditions

描述
Conditions describe the state of the machine inventory object.
类型
array

.status.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.

.status.observedStorage

描述
ObservedStorage is objective host state written only by the authenticated periodic observer channel.
类型
object
属性类型描述
bootIDstring

BootID is the host's current Linux boot ID.

devicesarray

Devices contains facts for all discovered logical block devices.

observedAtstring

ObservedAt is set by the operator when it accepts the report.

reportEpochinteger

ReportEpoch is allocated by the operator for an observer session.

sequenceinteger

Sequence strictly increases within ReportEpoch.

.status.observedStorage.devices

描述
Devices contains facts for all discovered logical block devices.
类型
array

.status.observedStorage.devices[]

描述
ObservedStorageDevice describes one logical block device and its topology.
类型
object
必填
idkindsystemRole
属性类型描述
consumersarray

Consumers contains descendant block devices layered on this logical device (for example partitions, dm-crypt, LVM or RAID). These are objective topology facts; provider policy decides whether they make the device ineligible for management.

filesystemobject

ObservedStorageFilesystem describes an existing filesystem.

healthobject

ObservedStorageMultipathHealth reports aggregate path health.

idstring

ID is the canonical management identity (wwn:, nvme-eui:, nvme-nguid:, serial:, partuuid:, or wwid:).

kindstring

ObservedStorageDeviceKind identifies the logical object represented by a report record.

memberIDsarray

MemberIDs lists Multipath member-path diagnostic identities. Members are never valid desired device IDs.

modelstring
mountsarray
parentIDstring

ParentID links a partition to its direct parent disk.

partitionTableTypestring
pathstring

Path is diagnostic only and must never be persisted as desired identity.

readOnlyboolean
removableboolean
rotationalboolean
serialstring
signaturesarray
sizeBytesinteger
stablePathsarray

StablePaths are current udev aliases for diagnostics/resolution.

startBytesinteger

StartBytes is populated for partitions.

systemEvidencearray
systemRolestring

ObservedStorageSystemRole is an objective system-disk classification. Unknown is intentionally fail-closed in provider policy.

transportstring

Transport and identity evidence are informational and support safe serial fallback classification.

wwnstring

.status.observedStorage.devices[].consumers

描述
Consumers contains descendant block devices layered on this logical device (for example partitions, dm-crypt, LVM or RAID). These are objective topology facts; provider policy decides whether they make the device ineligible for management.
类型
array

.status.observedStorage.devices[].consumers[]

描述
ObservedStorageConsumer describes one descendant block consumer. Path is diagnostic only; Type and FilesystemType are the kernel/util-linux facts.
类型
object
必填
pathtype
属性类型描述
filesystemTypestring
mountsarray
pathstring
typestring

.status.observedStorage.devices[].consumers[].mounts

类型
array

.status.observedStorage.devices[].consumers[].mounts[]

类型
string

.status.observedStorage.devices[].filesystem

描述
ObservedStorageFilesystem describes an existing filesystem.
类型
object
必填
type
属性类型描述
typestring
uuidstring

.status.observedStorage.devices[].health

描述
ObservedStorageMultipathHealth reports aggregate path health.
类型
object
属性类型描述
activePathsinteger
totalPathsinteger

.status.observedStorage.devices[].memberIDs

描述
MemberIDs lists Multipath member-path diagnostic identities. Members are never valid desired device IDs.
类型
array

.status.observedStorage.devices[].memberIDs[]

类型
string

.status.observedStorage.devices[].mounts

类型
array

.status.observedStorage.devices[].mounts[]

描述
ObservedStorageMount describes a current mount of this exact logical device.
类型
object
必填
path
属性类型描述
optionsarray
pathstring

.status.observedStorage.devices[].mounts[].options

类型
array

.status.observedStorage.devices[].mounts[].options[]

类型
string

.status.observedStorage.devices[].signatures

类型
array

.status.observedStorage.devices[].signatures[]

描述
ObservedStorageSignature is one wipefs/lsblk signature fact.
类型
object
必填
typevalue
属性类型描述
typestring
valuestring

.status.observedStorage.devices[].stablePaths

描述
StablePaths are current udev aliases for diagnostics/resolution.
类型
array

.status.observedStorage.devices[].stablePaths[]

类型
string

.status.observedStorage.devices[].systemEvidence

类型
array

.status.observedStorage.devices[].systemEvidence[]

类型
string

.status.plan

描述
PlanStatus reflect the status of the plan owned by the machine inventory object.
类型
object
属性类型描述
checksumstring

Checksum checksum of the created plan.

secretRefobject

PlanSecretRef a reference to the created plan secret.

statestring

State reflect state of the plan that belongs to the machine inventory.

.status.plan.secretRef

描述
PlanSecretRef a reference to the created plan secret.
类型
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

.status.storage

描述
Storage is desired-state convergence written only by the baremetal provider Inventory Storage Reconciler.
类型
object
属性类型描述
appliedSpecHashstring
appliedVolumesarray
conditionsarray
hashVersionstring
lastConsumedInitializationApprovalCounterinteger
lastConsumedInitializationApprovalHashstring
lastConsumedRetryNonceinteger
operationobject

StorageOperationStatus is the durable controller journal projection for a logical operation and its current execution attempt.

pendingSpecHashstring
phasestring

StorageLifecyclePhase is the Inventory-wide managed-storage phase.

.status.storage.appliedVolumes

类型
array

.status.storage.appliedVolumes[]

描述
ManagedStorageVolumeStatus is a complete cleanup-capable snapshot of one managed volume, not merely a diagnostic summary.
类型
object
必填
deviceIDeffectiveRequiredfilesystemPolicyfilesystemTypemountPathnamerequired
属性类型描述
activeboolean
deviceIDstring
effectiveRequiredboolean
expectedFilesystemUUIDstring
filesystemPolicystring

StorageFilesystemPolicy declares whether an existing filesystem is adopted or an entirely blank logical device may be initialized.

filesystemTypestring

StorageFilesystemType is a supported ordinary single-host filesystem.

filesystemUUIDstring
lastOperationIDstring
lastTransitionTimestring
messagestring
minimumActivePathsinteger
minimumSizeBytesinteger
mountOptionsarray
mountPathstring
mutationStatestring

StorageMutationState records whether durable host state may have changed.

namestring
phasestring
reasonstring
requiredboolean
resolvedPathstring

.status.storage.appliedVolumes[].mountOptions

类型
array

.status.storage.appliedVolumes[].mountOptions[]

类型
string

.status.storage.conditions

类型
array

.status.storage.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.

.status.storage.operation

描述
StorageOperationStatus is the durable controller journal projection for a logical operation and its current execution attempt.
类型
object
必填
attemptIDmutationStateoperationIDphaseplanOwnerKindplanOwnerUIDretryNoncestartedAttargetSpecHashtypeupdatedAt
属性类型描述
attemptIDstring
initializationApprovalCounterinteger
initializationApprovalHashstring
mutationStatestring

StorageMutationState records whether durable host state may have changed.

observationBootIDstring

ObservationBootID is the host boot ID captured before a Machine-owned lifecycle operation. Activate uses it to prove that reprovision crossed a boot before accepting a later mounted observation. It is a fact, not an ordering key.

observationReportEpochinteger

ObservationReportEpoch and ObservationSequence capture the host report seen when the operation was claimed. The controller waits for a strictly newer accepted report before writing a host plan.

observationSequenceinteger
operationIDstring
phasestring

StorageOperationPhase is the controller-side state of an operation.

planChecksumstring
planOwnerKindstring
planOwnerUIDstring
retryNonceinteger
startedAtstring
targetSpecHashstring
typestring

StorageOperationType identifies one logical convergence operation.

updatedAtstring
volumesarray

.status.storage.operation.volumes

类型
array

.status.storage.operation.volumes[]

描述
ManagedStorageVolumeStatus is a complete cleanup-capable snapshot of one managed volume, not merely a diagnostic summary.
类型
object
必填
deviceIDeffectiveRequiredfilesystemPolicyfilesystemTypemountPathnamerequired
属性类型描述
activeboolean
deviceIDstring
effectiveRequiredboolean
expectedFilesystemUUIDstring
filesystemPolicystring

StorageFilesystemPolicy declares whether an existing filesystem is adopted or an entirely blank logical device may be initialized.

filesystemTypestring

StorageFilesystemType is a supported ordinary single-host filesystem.

filesystemUUIDstring
lastOperationIDstring
lastTransitionTimestring
messagestring
minimumActivePathsinteger
minimumSizeBytesinteger
mountOptionsarray
mountPathstring
mutationStatestring

StorageMutationState records whether durable host state may have changed.

namestring
phasestring
reasonstring
requiredboolean
resolvedPathstring

.status.storage.operation.volumes[].mountOptions

类型
array

.status.storage.operation.volumes[].mountOptions[]

类型
string

API 端点

可用的 API 端点如下:

  • /apis/elemental.cattle.io/v1beta1/namespaces/{namespace}/machineinventories
    • DELETE: delete collection of MachineInventory
    • GET: list objects of kind MachineInventory
    • POST: create a new MachineInventory
  • /apis/elemental.cattle.io/v1beta1/namespaces/{namespace}/machineinventories/{name}
    • DELETE: delete the specified MachineInventory
    • GET: read the specified MachineInventory
    • PATCH: partially update the specified MachineInventory
    • PUT: replace the specified MachineInventory
  • /apis/elemental.cattle.io/v1beta1/namespaces/{namespace}/machineinventories/{name}/status
    • GET: read status of the specified MachineInventory
    • PATCH: partially update status of the specified MachineInventory
    • PUT: replace status of the specified MachineInventory

/apis/elemental.cattle.io/v1beta1/namespaces/{namespace}/machineinventories

HTTP 方法
DELETE
描述
delete collection of MachineInventory
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind MachineInventory
HTTP 响应
HTTP 状态码响应体
200 - OKMachineInventoryList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new MachineInventory
查询参数
参数类型描述
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.
请求体参数
参数类型描述
bodyMachineInventory schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKMachineInventory schema
201 - CreatedMachineInventory schema
202 - AcceptedMachineInventory schema
401 - UnauthorizedEmpty

/apis/elemental.cattle.io/v1beta1/namespaces/{namespace}/machineinventories/{name}

HTTP 方法
DELETE
描述
delete the specified MachineInventory
查询参数
参数类型描述
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 MachineInventory
HTTP 响应
HTTP 状态码响应体
200 - OKMachineInventory schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified MachineInventory
查询参数
参数类型描述
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 - OKMachineInventory schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified MachineInventory
查询参数
参数类型描述
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.
请求体参数
参数类型描述
bodyMachineInventory schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKMachineInventory schema
201 - CreatedMachineInventory schema
401 - UnauthorizedEmpty

/apis/elemental.cattle.io/v1beta1/namespaces/{namespace}/machineinventories/{name}/status

HTTP 方法
GET
描述
read status of the specified MachineInventory
HTTP 响应
HTTP 状态码响应体
200 - OKMachineInventory schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified MachineInventory
查询参数
参数类型描述
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 - OKMachineInventory schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified MachineInventory
查询参数
参数类型描述
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.
请求体参数
参数类型描述
bodyMachineInventory schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKMachineInventory schema
201 - CreatedMachineInventory schema
401 - UnauthorizedEmpty