Configuring content types

Content types section is located at the libraries content-types level.

To add a new content type list, use the following command:

Admin@nodename# create libraries content-types <parameter>

Specify the following parameters:

Parameter

Description

name

Content type list name.

description

List description.

type

List type:

  • local: local

  • updatable: if the list is updatable, specify URL address for downloading updates (url). List update frequency is set by the schedule parameter in the crontab format.

Crontab format: (minutes: 0-59) (hours: 0-23) (days of the month: 1-31) (month: 1-12) (days of the week: 0-6; where 0 is Sunday). You can set each field as follows:

  • An asterisk (*) denotes the entire range (from the first number to the last).

  • A dash (-) denotes a number range. For example, "5-7" means 5, 6, and 7.

  • Lists: comma-separated numbers or ranges. For example, "1,5,10,11" or "1-11,19-23".

  • An asterisk or range spacing: used for spacing out values in ranges. The increment is given after a slash. Examples: "2-10/2" means "2,4,6,8,10" while "*/2" in the "hours" field means "every two hours".

mime

Content types to add to the list. A list of content types and their descriptions can be found at this link: https://www.iana.org/assignments/media-types/media-types.xhtml.

To edit the list, use the following command:

Admin@nodename# set libraries content-types <content-types-list-name> <parameter>

The parameters available to update are listed in the table above.

To delete a content type list, use the following command:

Admin@nodename# delete libraries content-types <content-types-list-name>

To delete individual content types from the list, use the following command:

Admin@nodename# delete libraries content-types <content-types-list-name> mime [ <mime-type> ... ]

To display information about the content type lists, use the following commands:

Admin@nodename# show libraries content-types Admin@nodename# show libraries content-types <content-types-list-name>

To display content types included in a list, use the following command:

Admin@nodename# show libraries content-types <content-types-list-name> mime