close

Filter

loading table of contents...

Content Server Manual / Version 2110

Table Of Contents

3.13.3.1 Approve

With the approve tool you can approve resources.

usage: cm approve -u <user> <other options>  [ -l <limit> ]
          [ <id1>... | -I <id1>... | -U <uuid1>... |
            -t <path1>... | -cq <query1>... ]

available options:

 -c,--contents <contents>     ids of contents to place approve.
                              Ids are represented as
                              'coremedia:///cap/content/1234'
 -cq,--contentquery <query>   query/queries to select contents
 -d,--domain <domain name>    domain for login (default=<builtin>)
 -I,--id <id>                 id(s) to select content objects
 -l,--limit <limit>           limits the number of content objects
                              to select, negative for unlimited
                              which is also the default
 -p,--password <password>     password for login
 -t,--path <path>             path(s) to select content objects
 -u,--user <user name>        user for login (required)
 -U,--uuid <uuid>             UUID(s) to select contents
 -url <ior url>               url to connect to
 -v,--versions <versions>     ids of versions whose properties to
                              approve.
                              Ids are represented as
                              'coremedia:///cap/version/1234/56'
 -V,--verbose                 enables verbose output

The options have the following meaning:

Parameter Description
-c Ids of resources to be approved. Ids have the following format: coremeda:///cap/content/1234.
-v Ids of content item versions to be approved. Ids have the following format: coremeda:///cap/version/1234/56. 56 must be replaced by the version number you want to approve.
-cq <query> Content Selection Content Query to locate contents. Parameter can be used multiple times. Results will be linked by OR.
-I <id> Content Selection Select content objects via explicit id. This is an alternative if you want to mix explicit ids with for example content queries. Parameter can be used multiple times. Results will be linked by OR.
-U <UUID> Content Selection The UUID of a content to be approved. Parameter can be used multiple times. Results will be linked by OR.
-t <path> Content Selection The path of a resource to be approved. Parameter can be used multiple times. Results will be linked by OR.
<ids> Content Selection IDs to be approved. If mixing with other content selection parameters, it is recommended to explicitly use the parameter -I Parameter can be used multiple times. Results will be linked by OR.
-l <limit> Content Selection Limit the number of selected contents. Default is unlimited.

Table 3.41. Options of approve


Note

Note

For information about the UAPI query syntax see Section 5.7, “Query Service” in Unified API Developer Manual.

If no options are used or if you specify the resources via content selection parameters, approve approves the resources eagerly:

  • If the resource is checked out, approve checks it in first.

  • The latest version is approved.

  • The place is approved.

If you set the -c flag, only the places of the resources are approved. If you set the -v flag, only the specified versions are approved.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.