300-635 · Question #33
Refer to the exhibit. Cisco Intersight has an NTP server policy called My_NTP_Policy configured that contains a single NTP server pool entry "pool.ntp.org". Which Cisco Intersight API call adds an add
The correct answer is B. HTTP PATCH Method URL: https://intersight.com/api/v1/ntp/Policies/{My_NTP_Policy MOID} Bodytext: { "NtpServers":[ "pool.ntp.org", "10.20.0.1" ]. Option B is correct because modifying an existing resource requires the HTTP PATCH method targeting the specific policy via its MOID (Managed Object ID) in the URL, and the body must include the full array of desired NTP servers - both the existing pool.ntp.org and the new 10.20.
Question
Options
- AHTTP POST Method URL: https://intersight.com/api/v1/ntp/Policies/ Bodytext: { "NtpServers": "10.20.0.1" }
- BHTTP PATCH Method URL: https://intersight.com/api/v1/ntp/Policies/{My_NTP_Policy MOID} Bodytext: { "NtpServers":[ "pool.ntp.org", "10.20.0.1" ]
- CHTTP PUT Method URL: https://intersight.com/api/v1/ntp/Policies/ Bodytext: { "NtpServers":[ "10.20.0.1" }
- DHTTP PATCH Method URL: https://intersight.com/api/v1/ntp/Policies/{My_NTP_Policy MOID} Bodytext: { "NtpServers": "10.20.0.1" }
How the community answered
(26 responses)- A4% (1)
- B81% (21)
- C12% (3)
- D4% (1)
Explanation
Option B is correct because modifying an existing resource requires the HTTP PATCH method targeting the specific policy via its MOID (Managed Object ID) in the URL, and the body must include the full array of desired NTP servers - both the existing pool.ntp.org and the new 10.20.0.1 - since the NtpServers field is replaced entirely, not appended.
Option A fails on two counts: POST creates new resources rather than updating existing ones, and it omits the MOID needed to target the specific policy. Option C uses PUT (full resource replacement) without a MOID, so Intersight wouldn't know which policy to update, and it also drops pool.ntp.org entirely. Option D uses the correct PATCH method and MOID URL but passes NtpServers as a plain string instead of an array, and omits the existing server - so pool.ntp.org would be lost.
Memory tip: Think "PATCH the full array to the MOID" - PATCH = partial update, but NTP server lists are replaced, so always include every server you want to keep, and always target the specific object with its MOID.
Topics
Community Discussion
No community discussion yet for this question.