You are writing a Python script to interact with the Cisco Firepower Management Center (FMC) API. You need to authenticate to obtain an authentication token. Which HTTP method and endpoint must your script utilize to initiate this process?
Trap 1: PUT /api/fmc_platform/v1/auth/generatetoken
PUT is used for updating existing resources.
Trap 2: GET /api/fmc_platform/v1/auth/generatetoken
GET is used for retrieving resources, not for authenticating.
Trap 3: POST /api/fmc_platform/v1/auth/login
This is not the correct endpoint path for FMC authentication.
- A
PUT /api/fmc_platform/v1/auth/generatetoken
Why wrong: PUT is used for updating existing resources.
- B
POST /api/fmc_platform/v1/auth/generatetoken
POST is the correct method for authentication requests.
- C
GET /api/fmc_platform/v1/auth/generatetoken
Why wrong: GET is used for retrieving resources, not for authenticating.
- D
POST /api/fmc_platform/v1/auth/login
Why wrong: This is not the correct endpoint path for FMC authentication.