350-701 · Question #413
Refer to the exhibit. What is the function of the Python script code snippet for the Cisco ASA REST API?
The correct answer is A. adds a global rule into policies. The Python script code snippet for the Cisco ASA REST API is designed to add a new global access rule to the firewall's policy configuration.
Question
Refer to the exhibit. What is the function of the Python script code snippet for the Cisco ASA REST API?
Exhibit
Options
- Aadds a global rule into policies
- Bchanges the hostname of the Cisco ASA
- Cdeletes a global rule from policies
- Dobtains the saved configuration of the Cisco ASA firewall
How the community answered
(33 responses)- A82% (27)
- B6% (2)
- C9% (3)
- D3% (1)
Why each option
The Python script code snippet for the Cisco ASA REST API is designed to add a new global access rule to the firewall's policy configuration.
The Python script likely sends an HTTP POST request to a Cisco ASA REST API endpoint specifically designated for managing access policies. A POST request, when directed to a resource collection such as a list of global rules, is typically used to create and implement a new configuration object, thereby adding a new global access rule to the firewall's policy set.
Changing the hostname would typically involve a PUT or PATCH request to a system-level configuration endpoint, not a policy-specific one.
Deleting a rule would involve an HTTP DELETE request targeting a specific rule's resource URL.
Obtaining configuration would involve an HTTP GET request to retrieve data, not to modify or add configuration.
Concept tested: Cisco ASA REST API policy management
Source: https://developer.cisco.com/docs/asa/#!firepower-device-manager-rest-api/firepower-device-manager-rest-api-overview
Topics
Community Discussion
No community discussion yet for this question.
