Assign Multiple Tags to Multiple Assets

Assigns one or more tags to multiple images or containers.

POST/csapi/v1.3/tag/assign/bulk

Input ParametersInput Parameters

Parameter Mandatory/Optional Data Type Description
entityUUID Mandatory string Specify the UUID of the asset.
tagsToAdd Mandatory string Specify details of the tags to be assigned to an asset.
tagUuid  Mandatory string Specify the UUID of the tag to be assigned.
isCascadeToContainer
 
Mandatory boolean

Specify whether to apply an image tag to the container spawned using that image.
Valid values: "true" or "false"

  • true = The image tag gets applied to the container spawned using that image.
  • false = The image tag doesn’t get applied to the container spawned using that image.
subscriptionId Optional string Specify the Subscription ID of the user.
entityType Mandatory string Specify the type of entity to which you want to assign a tag.
Valid values: 'IMAGE' or 'CONTAINER'
moduleCode   Optional string Specify Qualys module code.
Valid value: "CS"

Sample: Assign multiple tags to multiple containersSample: Assign multiple tags to multiple containers

API Request

curl -X 'POST'
'<qualys_base_url>/csapi/v1.3/tag/assign/bulk'
-H 'accept: application/json'
-H Authorization: Bearer <Token>
-H 'Content-Type: application/json'
-d "{
"entityUUIDs": [
"138bc6cd-e2b5-347d-bb7d-80884236b1ac",
"9e80fb7c-162d-3e50-a343-b132dab205fd"
],
"tagsToAdd": [
{
"tagUuid": "059d4a45-34df-43af-b0a4-003a5306142c",
"isCascadeToContainer": false
},
{
"tagUuid": "2f6ee932-26eb-4da6-b053-554016bc8feb",
"isCascadeToContainer": false
}
],
"subscriptionId": "44****9",
"entityType": "CONTAINER",
"moduleCode": "CS"
}"

Response

{
"assignmentJobId": "b0114da4-c8d7-461a-b952-94f21390208c",
"cascadeJobUuids": []
}