nerdexam
HP

HPE7-A08 · Question #236

You have run a script to configure a new VLAN on a CX switch, but are receiving a '401 - Unauthorized' HTTP response code. What do you need to do to resolve the issue?

The correct answer is A. Send a POST request to the /rest/v1/login resource. A 401 Unauthorized response indicates that the REST API request is not authenticated. Sending a login request to the switch’s REST API login resource establishes an authenticated session so subsequent configuration requests, such as creating a VLAN, are accepted.

Manage and Monitor HPE Aruba Networking CX Switches

Question

You have run a script to configure a new VLAN on a CX switch, but are receiving a '401 - Unauthorized' HTTP response code. What do you need to do to resolve the issue?

Options

  • ASend a POST request to the /rest/v1/login resource.
  • BCorrect syntax errors contained in the data payload.
  • CSpecify the /system/bridge/vlan URI in the request.
  • DEnable the switch REST API in read/write mode.

How the community answered

(24 responses)
  • A
    79% (19)
  • B
    4% (1)
  • C
    4% (1)
  • D
    13% (3)

Explanation

A 401 Unauthorized response indicates that the REST API request is not authenticated. Sending a login request to the switch’s REST API login resource establishes an authenticated session so subsequent configuration requests, such as creating a VLAN, are accepted.

Topics

#REST API#HTTP 401#authentication#login resource

Community Discussion

No community discussion yet for this question.

Full HPE7-A08 Practice