Zimbra CLI Commands: Calendar Resources

In this article we are going to see how to manage Calendar Resources with CLI Commands using zmprov. As usual, for every command, we will show you the extendend and short form along with the syntax to be used.

Remember that all commands are intended to be executed logging in as Zimbra user, with the command: su - zimbra

Create Calendar Resource:

To create a Calendar Resource you need to use CreateCalendarResource (ccr) with the following syntax:

zmprov CreateCalendarResource {samplename@yourdomain} [attr1 value1 [attr2 value2...]]

Delete Calendar Resource:

To delete a Calendar Resource you need to use DeleteCalendarResource (dcr) with the following syntax:

zmprov DeleteCalendarResource {samplename@yourdomain|id}

Get Calendar Resource:

To get a Calendar Resource you need to use GetCalendarResource (gcr) with the following syntax:

zmprov GetCalendarResource {samplename@yourdomain|id}

Get All Calendar Resources:

To get all Calendar Resources you need to use GetAllCalendarResource (gacr) with the following syntax:

zmprov GetAllCalendarResource [-v] {yourdomain}

The -v attribute, stands for verbose. Verbose mode dumps full exception stack trace

Modify Calendar Resource:

To modify a Calendar Resource you need to use ModifyCalendarResource (mcr) with the following syntax:

zmprov ModifyCalendarResource {samplename@yourdomain|id} [attr1 value1 [attr2 value2...]]

Rename Calendar Resource:

To rename a Calendar Resource you need to use RenameCalendarResource (rcr) with the following syntax:

zmprov RenameCalendarResource {samplename@yourdomain|id} {newsamplename@yourdomain}

Search Calendar Resources:

To search Calendar Resources you need to use SearchCalendarResources (scr) with the following syntax:

zmprov SearchCalendarResources [-v] {yourdomain} [attr]

Technical writer at Zextras. Linux and technology enthusiast. He describes himself as an atypical and polyhedric IT expert, thanks to a creative and open minded attitude, and to the experience gained over time as an IT technician, system engineer and developer.

Post your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Mail Backup: An important practice
Disaster Recovery Scenario