QuestionQ356

Understanding and Using APIs

Question Image

Refer to the exhibit. A network engineer needs to automate a workflow that retrieves device volume data from Endpoint xAPI-enabled devices. The engineer prepares a Python script to send the request by including an access token and device ID. However, the request returns a status code of 401. Which action resolves the issue?

  • A Access token must be changed with a valid one.
  • B Network connectivity between client and API must be fixed.
  • C Internal server problems that relate to code must be fixed.
  • D API endpoint must be restarted to serve again.
Explanation

A Webex xAPI status request requires a valid Bearer access token. A 401 Unauthorized response means the authentication credential is missing, incorrect, altered, or expired; a valid replacement access token is required. The token also needs the spark:xapi_statuses scope to query device status, although a scope or authorization failure is generally returned as 403.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!