Implementing and Operating Cisco Data Center Core Technologies (DCCOR) — Question 492
An engineer is using REST API calls to configure the Cisco APIC. Which data structure must be used within a POST message to receive a login token?
Answer options
- A. {"aaaUser":{"attributes":{"name":"apiuser","pwd":"cisco123"}}}
- B. <aaaUser><name="apiuser"/><pwd="cisco123"/></aaaUser>
- C. {aaaUser:{attributes:{name:apiuser,pwd:cisco123}}}
- D. <aaaUser><name>apiuser</name><pwd>cisco123</pwd></aaaUser>
Correct answer: A
Explanation
Option A is correct as it uses the proper JSON format required by the REST API for authentication, ensuring the API can parse the data correctly. Options B and D utilize XML syntax, which is not applicable for the REST API calls in this context. Option C lacks the necessary quotation marks for strings in JSON, making it invalid.