Skip to main content

Get VM Image Tags

GET 

/api/v32.03/vms/labels

x-prisma-cloud-target-env: {"permission":"monitorHosts","saas":true,"self-hosted":true}
x-public: true

Returns an array of strings containing all AWS tags of the scanned VM images.

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

    offset integer

    Offsets the result to a specific report count. Offset starts from 0.

    limit integer

    Limit is the amount to fix.

    sort string

    Sorts the result using a key.

    reverse boolean

    Sorts the result in reverse order.

    id string[]

    Filters the result based on VM IDs.

    name string[]

    Filters the result based on image names.

    credential string[]

    Filters the result based on cloud credentials.

    distro string[]

    Filters the result based on OS distribution names.

    release string[]

    Filters the result based on release versions.

    imageType string[]

    Filters the result based on cloud image types. Example: Use marketplace, managed, or gallery for Microsoft Azure.

    complianceIDs int[]

    Filters the result based on compliance IDs.

    complianceRuleName string

    Filters the result based on applied compliance rule name.

    normalizedSeverity boolean

    Retrieves the result in the normalized form of low, medium, high, and critical based on vulnerability's severity level. Default is false.

    issueType string

    Possible values: [vulnerabilities,compliance,]

    Filters results by issue type.

Responses

Schema
  • Array [
  • string

  • ]
Loading...