Skip to main content

Get VM Image Names

GET 

/api/v33.02/vms/names

x-prisma-cloud-target-env: {"permission":"monitorHosts"}

Returns an array of strings containing VM image names.

Note: The query parameters issueType is not supported for this API endpoint.

cURL Request

Refer to the following example cURL command:

$ curl -k \
-X GET \
-u <USER> \
-H 'Content-Type: application/json' \
"https://<CONSOLE>/api/v<VERSION>/vms/names"

cURL Response

Refer to the following example response:

[
"new-auto-images-cen7-dock",
"ubuntu-pro-2004-focal-v20210720",
"user-encrypted2",
"ubuntu-20.04-lts:1.0.0",
"user-test-b",
"user-ubuntu-image-scan1",
"Canonical:0001-com-ubuntu-server-focal:20_04-lts:20.04.202110260",
"ubuntu-20.04-lts"
]

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...