Refer to the exhibit. An engineer must authorize a REST API call. The API password is "Cisco123!". Which Bash command must be placed in the code to authorize the call?
In the provided Python code, the API_PASSWORD is retrieved from the environment variable API_PASSWORD. To set this environment variable in a Bash shell, the correct command to use is export. This command sets the environment variable for the current shell session and any child processes.
Bash Command: export API_PASSWORD=Cisco123!
This command ensures that the environment variable API_PASSWORD is set to "Cisco123!" and can be accessed by the Python script.
References:
Bash export Command
Cisco DevNet Associate Certification Guide
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit