Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP SQL Anywhere, on-demand edition 1.0 SP 6 » Task syntax

ApplyTag task

Applies a tag to a list of objects.

Syntax 1 (SQL)
CALL DBCloud.ApplyTag ( tag=tag, target_object_list=target_object_list )
Syntax 2 (Cloud Command utility)
dbcloudcmd run ApplyTag tag target_object_list
  • tag

    The tag to apply. Accepts a search query that identifies one tag, for example a tag name or ID. (Required)

  • target_object_list

    A semicolon-delimited list of database, server, and host names, IDs, or a search query that returns these object types. (Required)

Required privileges



This task applies an existing tag to specified list of objects.


Run the following task to apply the tag smalldbserver to all cloud servers with at least one database that is smaller than ten megabytes in size:

dbcloudcmd run ApplyTag smalldbserver "type:Server and database_copy:(file_size < 10000000)"

Run the following task to apply the tag mytag to the tenant database mydatabase and the cloud server my-server#3:

dbcloudcmd run ApplyTag tag=mytag target_object_list="(type:Database and name:mydatabase) or 
(type:Server and name: [my-server#3])"

Run the following task to apply the tag MyTag to the database CompanyA:

dbcloudcmd run ApplyTag MyTag "name:CompanyA and type:database"