Get Tags
GET/api/v30.00/tags
x-prisma-cloud-target-env: {"permission":"collections","saas":true,"self-hosted":true}
x-public: true
Retrieves a list of tags.
cURL Request
Refer to the following example cURL command that retrieves a list of tags:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
"https://<CONSOLE>/api/v<VERSION>/tags"
A successful response returns a list of defined tags.
Request
Responses
- 200
- default
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
color common.Color
Color is a hexadecimal representation of color code value
description string
Description is the tag description.
name string
Name is the tag name.
vulns object[]
Vulns are the tagged vulnerabilities.
checkBaseLayer boolean
CheckBaseLayer Indicates whether to also apply the tag for images that has one of the resources as a base layer. Field applies only for images.
comment string
Comment is the tag comment.
id string
ID is the vulnerability ID.
packageName string
PackageName is the package name.
resourceType vuln.TagType
Possible values: [image,host,function,codeRepo,
]
TagType represents the resource type of the tag
resources string[]
Resources is a list of resources the tag is attached on.
[
{
"color": "string",
"description": "string",
"name": "string",
"vulns": [
{
"checkBaseLayer": true,
"comment": "string",
"id": "string",
"packageName": "string",
"resourceType": [
"image",
"host",
"function",
"codeRepo",
""
],
"resources": [
"string"
]
}
]
}
]
Loading...