Which two GET API requests are used to retrieve just the server profile with the string "WEST15" in the name and the correct body for the API request to update the name?

A server profile with the string "WEST15" in its name must have the string "WEST15" changed to "LXT14". For example, server profile "VMHOST-WEST15-01" would need to be changed to "VMHOST-LXT14-01".
Using the Cisco Intersight REST API in a Python script, which two GET API requests are used to retrieve just the server profile with the string "WEST15" in the name and the correct body for the API request to update the name? Assume the variable "sp_name" contains the name of the retrieved server profile. (Choose two.)
A. GET https://intersight.com/api/v1/server/Profiles?$select=Name&$filter=contains(Name, ‘WEST15’)
B. GET https://intersight.com/api/v1/server/Profiles?$select=Name&$filter=Name in(‘WEST15’)
C. BODY = { "Name": sp_name.format(‘WEST15’, ‘LXT14’) }
D. GET https://intersight.com/api/v1/server/Profiles?$select=Name&$filter=startswith(Name, ‘WEST15’)E. BODY = { "Name": sp_name.replace(‘WEST15′,’LXT14’) }

cisco-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.