All URIs are relative to https://sms/apis/smd/hsm/v2
Method | HTTP request | Description |
---|---|---|
DoHWInvByLocationDelete | Delete /Inventory/Hardware/{xname} | DELETE HWInventoryByLocation entry with ID (location) {xname} |
DoHWInvByLocationDeleteAll | Delete /Inventory/Hardware | Delete all HWInventoryByLocation entries |
DoHWInvByLocationGet | Get /Inventory/Hardware/{xname} | Retrieve HWInventoryByLocation entry at {xname} |
DoHWInvByLocationGetAll | Get /Inventory/Hardware | Retrieve all HWInventoryByLocation entries in array |
DoHWInvByLocationPost | Post /Inventory/Hardware | Create/Update hardware inventory entries |
Response100 DoHWInvByLocationDelete(ctx, xname) DELETE HWInventoryByLocation entry with ID (location) {xname}
Delete HWInventoryByLocation entry for a specific xname.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xname | string | Locational xname of HWInventoryByLocation record to delete. |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response100 DoHWInvByLocationDeleteAll(ctx, ) Delete all HWInventoryByLocation entries
Delete all entries in the HWInventoryByLocation collection. Note that this does not delete any associated HWInventoryByFRU entries.
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HwInventory100HwInventoryByLocation DoHWInvByLocationGet(ctx, xname) Retrieve HWInventoryByLocation entry at {xname}
Retrieve HWInventoryByLocation entries for a specific xname.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xname | string | Locational xname of hardware inventory record to return. |
HwInventory100HwInventoryByLocation
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]HwInventory100HwInventoryByLocation DoHWInvByLocationGetAll(ctx, optional) Retrieve all HWInventoryByLocation entries in array
Retrieve all HWInventoryByLocation entries. Note that all entries are displayed as a flat array. For most purposes, you will want to use /Inventory/Hardware/Query.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *HWInventoryByLocationApiDoHWInvByLocationGetAllOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a HWInventoryByLocationApiDoHWInvByLocationGetAllOpts struct
Name | Type | Description | Notes |
---|---|---|---|
id | optional.String | Filter the results based on xname ID(s). Can be specified multiple times for selecting entries with multiple specific xnames. | |
type_ | optional.String | Filter the results based on HMS type like Node, NodeEnclosure, NodeBMC etc. Can be specified multiple times for selecting entries of multiple types. | |
manufacturer | optional.String | Retrieve HWInventoryByLocation entries with the given Manufacturer. | |
partnumber | optional.String | Retrieve HWInventoryByLocation entries with the given part number. | |
serialnumber | optional.String | Retrieve HWInventoryByLocation entries with the given serial number. | |
fruid | optional.String | Retrieve HWInventoryByLocation entries with the given FRU ID. |
[]HwInventory100HwInventoryByLocation
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response100 DoHWInvByLocationPost(ctx, body) Create/Update hardware inventory entries
Create/Update hardware inventory entries
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | InventoryHardwareBody |
No authorization required
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]