https://developer.cisco.com/docs/dna-center/#!device-provisioning/device-provisioning-guide
The question is poorly worded, I guess it asks how to provision (discover & add) a device into DNAC. According to this doc, it is indeed using GET + serial .
Absoult. This is correct.
There is no specific attribute called "name" for used in a POST requests (to add a device). For adding a device with POST you would typically include other attributes such as the device's hostname, IP address, platform, serial number, credentials and other relevant information.
Example for that:
POST /dna/intent/api/v1/network-device
Content-Type: application/json
Authorization: Bearer <access_token>
{
"hostname": "example-device",
"platformId": "C9300-48U",
"serialNumber": "ABC123",
"managementIpAddress": "192.168.1.10",
"credentials": {
"cli": {
"username": "admin",
"password": "password123"
}
}
}
In my logic, adding a device can only be a POST method. I do not see "name" as a correct attribute, but at least the method is the right one.
Check the diagram for device provisioning:
https://developer.cisco.com/docs/dna-center/device-provisioning/#goal
Add Device to Site with POST.
https://developer.cisco.com/docs/dna-center/device-onboarding/#onboarding-pnp-api
response = requests.post
Would have to vote C here for the following reason:
The GET API call is primarily used for RETRIEVAL of information from a server or specified resource. When you send a GET request to a server, for example, you are asking it to PROVIDE you with data.
Whereas, with the POST API call, this is primarily used for ADDING or CREATING a resource on the server/device.
The "name", in this particular instance, can refer to the hostname of the device.
Would have to vote C here for the following reason:
The GET API call is primarily used for RETRIEVAL of information from a server or specified resource. When you send a GET request to a server, for example, you are asking it to PROVIDE you with data.
Whereas, with the POST API call, this is primarily used for the ADDING or CREATING a new resource on the server.
The "name", in this instance, can refer to the hostname of the device.
C is correct . To onboard/add a device use POST and device attributes name is one of them and of course serial... https://developer.cisco.com/docs/dna-center/#!device-onboarding/onboarding-pnp-api
GET /dna/intent/api/v1/network-device/serial-number/{serial_number}
https://developer.cisco.com/docs/dna-center/#!device-provisioning/endpoints-and-methods-used
The answer from a logic perspective seems to be C, but from this URL, specifically from the diagram, you can see that the answer is A:
https://developer.cisco.com/docs/dna-center/#!device-provisioning/goal
The question is about method AND required attribute. The option C would be right if the attribute would be "site_id".
What do you people think?
o add a device into Cisco DNA Center with the native API, you can use the POST method with the /dna/intent/api/v1/network-device endpoint. The required attributes that must be included in the request body are:
hostname: The hostname of the device
ipAddress: The IP address of the device
siteId: The ID of the site where the device is located
type: The type of the device (e.g. switch, router, wireless access point)
serialNumber: The serial number of the device
To add a device into Cisco DNA Center with the native API, you can use the POST method with the /dna/intent/api/v1/network-device endpoint. The required attributes that must be included in the request body are:
hostname: The hostname of the device
ipAddress: The IP address of the device
siteId: The ID of the site where the device is located
type: The type of the device (e.g. switch, router, wireless access point)
serialNumber: The serial number of the device
I checked Cisco documentation, it's C:
To add a device into Cisco DNA Center with the native API, the API method used is POST which creates a new resource. One of the required attribute to add a device is the "name" attribute, which is used to specify the name of the device being added. The device name should be unique and it's used to identify the device within the Cisco DNA Center platform.
A GET request is used to retrieve information from a resource. "SerialNumber" and "userSudiSerialNos" are attributes used to identify a device but they are not required to add a device into Cisco DNA Center, they are needed to retrieve a specific device information. "lastSyncTime" is an attribute used to indicate when the device last synced with Cisco DNA Center, it's not required to add a device. "pid" is an attribute used to identify a device's product ID, and it's not required to add a device.
C.
To add a device into Cisco DNA Center with the native API, the API method used is POST which creates a new resource. One of the required attribute to add a device is the "name" attribute, which is used to specify the name of the device being added. The device name should be unique and it's used to identify the device within the Cisco DNA Center platform.
A GET request is used to retrieve information from a resource. "SerialNumber" and "userSudiSerialNos" are attributes used to identify a device but they are not required to add a device into Cisco DNA Center, they are needed to retrieve a specific device information. "lastSyncTime" is an attribute used to indicate when the device last synced with Cisco DNA Center, it's not required to add a device. "pid" is an attribute used to identify a device's product ID, and it's not required to add a device.
For me it's C
Create (Créer) : POST (Publier)
Update (Mettre à jour) : PUT (Mettre)
Action CRUD : Verbe HTTP associé
Read (Lire) : GET (Obtenir)
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.350-701 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
PiX2
Highly Voted 2 years, 2 months agoMPoels
1 year, 2 months agoNian
2 months agoPremium_Pils
Most Recent 8 months, 3 weeks agoTthurston1
1 year agoTthurston1
1 year agoCCNPWILL
1 year, 6 months ago[Removed]
1 year, 7 months agofdl543
1 year, 9 months agocyberwhizzy0
1 year, 10 months agojku2cya
1 year, 10 months agoDWizard
1 year, 10 months agojku2cya
1 year, 10 months agotramollaaaa
2 years, 1 month agotramollaaaa
2 years, 1 month agoTotosos1
2 years, 1 month agocyberwhizzy0
1 year, 10 months agoTuxzinator
2 years, 2 months agoAnonymous983475
2 years, 3 months agosull3y
2 years, 3 months agoNet4dd
2 years, 3 months agoSPARNABUS
2 years, 4 months ago