Get VM Image Tags
GET/api/v33.01/vms/labels
x-prisma-cloud-target-env: {"permission":"monitorHosts"}
Returns an array of strings containing all AWS tags of the scanned VM images.
Note: The query parameters issueType
is not supported for this API endpoint.
cURL Request
Refer to the following example cURL command:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
"https://<CONSOLE>/api/v<VERSION>/vms/labels"
cURL Response
Refer to the following example response:
[
"gcp:vmscan",
"with_pulled_images:true",
"test-linux-key-2:test-linux-value-2",
"test-linux-key-1:test-linux-value-1",
"Name:user-test-b"
]
Request
Query Parameters
Offsets the result to a specific report count. Offset starts from 0.
Limit is the amount to fix.
Sorts the result using a key.
Sorts the result in reverse order.
Filters the result based on VM IDs.
Filters the result based on image names.
Filters the result based on cloud credentials.
Filters the result based on OS distribution names.
Filters the result based on release versions.
Filters the result based on cloud image types. Example: Use marketplace, managed, or gallery for Microsoft Azure.
Filters the result based on compliance IDs.
Filters the result based on applied compliance rule name.
Retrieves the result in the normalized form of low, medium, high, and critical based on vulnerability's severity level. Default is false.
Possible values: [vulnerabilities,compliance,
]
Filters results by issue type.
Responses
- 200
- default
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
string
[
"string"
]