Cherry Servers

#What Are Server Tags?

Server tags are a way to mark your cloud infrastructure resources in any organizational pattern of your choice, which helps you better organize, control and monitor your cloud resources.

Cherry Servers users can utilize the API to tag their servers with metadata that effectively marks them with individual labels for more effective organization. This can prove especially useful in a cloud environment in which you need to integrate services from different vendors into a single system.

As an example, You can mark your testing servers with “environment=stage tag”, or you could mark your database node with “type=db tag”.

#How to Use Server Tags

Currently, server tagging can only be performed through Cherry Servers API. For information about getting started with Cherry Servers API, please visit our dedicated API docs.

#CherryGO Library

You can use CherryGO libraryset your preferred tags when deploying new servers, or to modify tags for existing servers. You can access CherryGO library on GitHub:

https://github.com/cherryservers/cherrygo

#CherryCTL Tool

The easiest way to assign and modify server tags is through our CherryCTL tool.

An example command using CherryCTL to add server tags would be as follows:

cherryctl add server -s tags-test.test.com  -i 'Ubuntu 16.04 64bit' -l 92 -p 79813 -g EU-East-1 --tags "env=dev,name=super server 1"

or

cherryctl update server -s 215337 --tags "env=prod,name=super server 6"

You can check currently active server tags by using the command below, where “215323” is replaced by the ID of your deployed server:

cherryctl list server -s 215323
OutputServer ID Name Hostname Image Price IP address Power State Tags
215323 Smart16 tags-test.test.com Ubuntu 16.04 64bit 0.121 46.166.161.29 on active {"env":"dev","name":"super server"}

The latest version of CherryCTL can be downloaded from our repository: https://downloads.cherryservers.com/other/cherryctl/

CherryCTL documentation can also be found on GitHub: https://github.com/cherryservers/cherryctl

#Terraform Module

Cherry Servers’ Terraform module also supports tag directives. An example of setting server tags through Terraform can be seen below.

Outputresource "cherryservers_server" "super-server992" {
  project_id   = cherryservers_project.DreamProject99.id
  region       = "EU-East-1"
  hostname     = "virtual991.turbo.com"
  image        = "Ubuntu 16.04 64bit"
  plan_id      = "59"
  ssh_keys_ids = ["95"]

  tags = {
    Name        = "Application Server 2"
    Environment = "development"
  }
}

The Terraform module will be able to react to set up server tags when making required infrastructure changes.

The latest version of the Cherry Servers Terraform module can be found in our repository: https://downloads.cherryservers.com/other/terraform/

You may also choose to compile the Cherry Servers Terraform Module from GitHub: https://github.com/cherryservers/terraform-provider-cherryservers

Was this article helpful?
Thanks for the feedback!
No results found for ""
Recent Searches
Navigate
Go
ESC
Exit
We use cookies to ensure seamless user experience for our website. Required cookies - technical, functional and analytical - are set automatically. Please accept the use of targeted cookies to ensure the best marketing experience for your user journey. You may revoke your consent at any time through our Cookie Policy.
build: 920a9a1ae.1622