Question 1 / 3
--:--
Question 1

Which REST API request is used to list all the Webex Room Kit devices within a large organization so that a new custom In-Room Control can be deployed on all the devices?

var request = require("request");

var options = { method: 'GET',

    url: 'https://api.ciscospark.com/v1/devices',

    qs: { product: 'Roomkit' },

    headers:

     { 'Content Type': 'application/json',

       Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};


request(options, function(error, reponse, body) {

    if (error) throw new Error(error);

    console.log(body);

});

var request = require("request");

var options = { method: 'GET',

    url: 'https://api.ciscospark.com/v1/devices',

    qs: { product: 'Roomkit', placeID: 'Yzb60gRx3kBq5iB2w' },

    headers:

     { 'Content Type': 'application/json',

       Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};


request(options, function(error, reponse, body) {

    if (error) throw new Error(error);

    console.log(body);

});

var request = require("request");

var options = { method: 'GET',

    url: 'https://api.ciscospark.com/v1/devices/Yzb60gRx3kBq5iB2w',

    qs: { deviceName: 'Roomkit' },

    headers:

     { 'Content Type': 'application/json',

       Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};


request(options, function(error, reponse, body) {

    if (error) throw new Error(error);

    console.log(body);

});

var request = require("request");

var options = { method: 'GET',

    url: 'https://api.ciscospark.com/v1/devices',

    qs: { upgradeChannel: 'Roomkit' },

    headers:

     { 'Content Type': 'application/json',

       Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};


request(options, function(error, reponse, body) {

    if (error) throw new Error(error);

    console.log(body);

});

Correct Answer
Correct Answer:
You're on the free plan. Get Full Exam Access Unlock all questions, detailed explanations and more.
Get Premium →