GET/zstack/v1/pci-device/pci-device-offerings GET/zstack/v1/pci-device/pci-device-offerings/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/pci-device/pci-device-offerings
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/pci-device/pci-device-offerings/f0d1dc75b5323546aa5c6bda3733019c
Queryable Fields
Run the CLI command tool, enter QueryPciDeviceOffering and press Tab to view all queryable fields and cross-resource names.
Response Example
{
"inventories": [
{}
]
}
| Name | Type | Description | Starting Version |
|---|
| success | boolean | | 0.6 |
| error | ErrorCode | Error code. If not null, the operation failed. This field is null when the operation succeeds. See error | 2.1 |
| inventories | List | See inventories | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| code | String | Error code, a globally unique identifier of the error, e.g. SYS.1000, HOST.1001 | 2.1 |
| description | String | Brief description of the error | 2.1 |
| details | String | Detailed error information | 2.1 |
| elaboration | String | Reserved field, defaults to null | 2.1 |
| opaque | LinkedHashMap | Reserved field, defaults to null | 2.1 |
| cause | ErrorCode | Root cause, the source error that caused the current error, null if no original error | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| uuid | String | UUID of the resource, uniquely identifies the resource | 2.1 |
| name | String | Resource name | 2.1 |
| description | String | Resource description | 2.1 |
| vendorId | String | Vendor ID | 2.1 |
| deviceId | String | Device ID | 2.1 |
| subvendorId | String | Sub-vendor ID | 2.1 |
| subdeviceId | String | Sub-device ID | 2.1 |
| ramSize | String | GPU memory capacity | 3.5.0 |
| createDate | Timestamp | Create date | 2.1 |
| lastOpDate | Timestamp | Last update date | 2.1 |
| type | PciDeviceOfferingType | See type | 2.1 |
| attachedInstanceOfferings | List | See attachedInstanceOfferings | 2.1 |
| matchedPciDevices | List | See matchedPciDevices | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| GPU_Video | PciDeviceOfferingType | GPU video | 2.1 |
| GPU_Audio | PciDeviceOfferingType | GPU audio | 2.1 |
| Generic | PciDeviceOfferingType | Generic device | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| id | long | | 2.1 |
| instanceOfferingUuid | String | Compute offering UUID | 2.1 |
| pciDeviceOfferingUuid | String | | 2.1 |
| pciDeviceCount | Integer | | 2.1 |
| metadata | PciDeviceMetaData | See metadata | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| metaData | String | | 2.1 |
| metaDataEntries | List | See metaDataEntries | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| key | String | | 2.1 |
| value | String | | 2.1 |
| op | PciDeviceMetaDataOperator | See op | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| Equal | PciDeviceMetaDataOperator | Equal | 2.1 |
| Unequal | PciDeviceMetaDataOperator | Unequal | 2.1 |
| Name | Type | Description | Starting Version |
|---|
| pciDeviceUuid | String | | 2.1 |
| pciDeviceOfferingUuid | String | | 2.1 |
Java SDK
QueryPciDeviceOfferingAction action = new QueryPciDeviceOfferingAction();
action.conditions = asList();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryPciDeviceOfferingAction.Result res = action.call();
Python SDK
QueryPciDeviceOfferingAction action = QueryPciDeviceOfferingAction()
action.conditions = []
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryPciDeviceOfferingAction.Result res = action.call()