300-170 · Question #63
Which two HTTP methods are supported by the Cisco Nexus REST API? (Choose two )
The correct answer is B. POST C. DELETE. The Cisco Nexus REST API supports standard HTTP methods for interacting with resources, specifically including POST for creating or submitting data and DELETE for removing resources.
Question
Which two HTTP methods are supported by the Cisco Nexus REST API? (Choose two )
Options
- APUT
- BPOST
- CDELETE
- DUPDATE
- ECONNECT
How the community answered
(54 responses)- A2% (1)
- B94% (51)
- D4% (2)
Why each option
The Cisco Nexus REST API supports standard HTTP methods for interacting with resources, specifically including POST for creating or submitting data and DELETE for removing resources.
While PUT is a standard HTTP method often supported for updating resources, the question specifically asks for two methods, and POST and DELETE are core functionalities.
The Cisco Nexus REST API supports the POST method, which is commonly used to create new resources or submit data to a specified resource, such as sending configuration commands or creating new objects.
The Cisco Nexus REST API also supports the DELETE method, which is used to remove a specified resource from the system, like deleting a VLAN or an interface configuration.
UPDATE is not a standard HTTP method; typical methods for modifying resources are PUT or PATCH.
CONNECT is an HTTP method primarily used for establishing a tunnel, typically for proxies, and is not generally used for direct resource manipulation in a REST API context.
Concept tested: Cisco Nexus REST API HTTP methods
Source: https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/programmability/guide/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide_7x_chapter_01000.html
Topics
Community Discussion
No community discussion yet for this question.