/policyengine/v1/tags: GET

Retrieves tag definitions.

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin Data user Collection Admin Collection user Admin Service user
Χ Χ

Synopsis of the request URL

$ curl -H "Authorization: Bearer <token>" -k
https://<spectrum_discover_host>:443/policyengine/v1/tags

Supported request types and response formats

Supported request types:
  • GET
Note: When a request type is not specified, curl defaults to a GET operation.
Supported response formats:
  • JSON

Examples

The following response is returned:

[
  {
    "tag": "project",
    "type": "Open",
    "value": "[]"
  },
  {
    "tag": "chargeBack",
    "type": "Restricted",
    "value": "[\"dept1\",\"dept2\",\"dept3\"]"
  },
  {
    "tag": "classification",
    "type": "Restricted",
    "value": "[\"public\",\"confidential\",\"internal\",\"restricted\",\"other\"]"
  },
  {
    "tag": "demotag",
    "type": "Open",
    "value": "[]"
  },
  {
    "tag": "instrument",
    "type": "Restricted",
    "value": "[\"spectrometer\",\"microscopeA\",\"microscopeB\"]"
  }
]