DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.47k stars 536 forks source link

Getting the apiKey of a team using the api #1273

Open dormine opened 2 years ago

dormine commented 2 years ago

When I use GET api/v1/team/{uuid} I get :

{
  "uuid": "string",
  "name": "string",
  "permissions": [
    {
      "name": "BOM_UPLOAD",
      "description": "Allows the ability to upload CycloneDX and SPDX Bill of Materials (BOM)"
    },
    {
      "name": "POLICY_VIOLATION_ANALYSIS",
      "description": "Provides the ability to make analysis decisions on policy violations"
    },
    {
      "name": "PORTFOLIO_MANAGEMENT",
      "description": "Allows the creation, modification, and deletion of data in the portfolio"
    },
    {
      "name": "VIEW_PORTFOLIO",
      "description": "Provides the ability to view the portfolio of projects, components, and licenses"
    },
    {
      "name": "VULNERABILITY_ANALYSIS",
      "description": "Provides the ability to make analysis decisions on vulnerabilities"
    }
  ]
}

Without the API Keys assigned to the team. How can I get it ?

esnible commented 11 months ago

GET api/v1/team/{uuid} does not include the API keys, but GET api/v1/team includes all API keys for all teams.

Both APIs are documented by /api/swagger.json to return a #/definitions/Team. The API keys do not appear when an individual team is retrieved.