Add a New Collection
Creates a new collection. You must specify a value for mandatory resources such as 'name', 'images', and 'labels' in the collection.
For 'name': Valid characters are 'A-Z', 'a-z', '0-9', '_', '-', and ':'. For 'image': If you don't have a specific value, you can initialize with a wildcard ''. For 'label': If you don't have a specific value, you can initialize with a wildcard ''.
Values for the mandatory resources are required for initialization. If you don't initialize mandatory resources and try to use the collection, you'll get an empty resource error.
To invoke this endpoint in the Console UI:
- Navigate to Manage > Collections and Tags > Collections.
- Add a collection using + Add collection.
- Click the Save button.
Refer to the following example cURL command that creates a new collection named
my-collection, specifies a HEX color value of #AD3C21, and captures all container images named
$ curl 'https://<CONSOLE>:8083/api/v<VERSION>/collections' \
-X POST \
-u <USER> \
-H 'Content-Type: application/json' \
Note: No response is returned upon successful execution. You must verify the collection in the Console UI.
List of account IDs.
List of application IDs.
List of Kubernetes cluster names.
List of code repositories.
Color is a hexadecimal representation of color code value
List of containers.
List of functions.
List of hosts.
List of images.
List of labels.
Datetime when the collection was last modified.
Collection name. Must be unique.
List of Kubernetes namespaces.
User who created or last modified the collection.
Indicates whether this collection originates from Prisma Cloud.
Indicates whether this collection was created by the system (i.e., a non user) (true) or a real user (false).