Question 291 · 385 in bank

Refer to the exhibit. An Intersight API is being used to query RackUnit resources that have a tag keyword set to `Site`. What is the expected output of this command?
Show answer
Answer: A
Explanation
A is correct The $filter query option allows clients to retrieve a subset of resources based on some expression. It supports multiple operators to filter managed objects: eq, ne, gt, ge, lt, le, and, or, not, and in operators, as well as a set of string functions (contains, endswith, and so on). Here are a few examples: GET /api/v1/compute/RackUnits?$filter=Name eq 'WZP211704KM' GET /api/v1/compute/RackUnits?$filter=Model ne 'UCSC-C240-M5SN' GET /api/v1/RackUnits?$filter=NumCpuCores ge 6 and AvailableMemory gt 65000 GET /api/v1/RackUnits?$filter=not(Model eq 'HX220C-M5SX' or Model eq 'HX220C-M5S') GET /api/v1/RackUnits?$filter=Model in ('HX220C-M5SX', 'UCSC-C240-M5SN') GET /api/v1/RackUnits?$filter=contains(Model,'C240') GET /api/v1/RackUnits?$filter=endswith(Model,'M5') GET /api/v1/aaa/AuditRecords?$filter=CreateTime gt 2020-06-20T08:00:0.000Z
Source: Adapted from community discussion — Teringzooi




