Page tree

Contents

About Tags

The Cloud Services Portal provides tags that you use to identify and group objects in your address spaces. A tag is a label that consists of a key and associated value(s) that you define when you create the tag. Tags are useful when you want to categorize objects by specific purposes, such as by location, so you can easily identify them based on the tags you assign to them.

When you create an object, such as an on-prem host, you can define the tag key and associated value(s) for the object, so you can easily locate the object in the future. For example, you can create a tag key called "Location" with a value of "London, UK" when you create an on-prem host, so you can specify its location. You can then use the same "Location = London, UK" tag for other objects that share the same attribute. This is useful when you want to identify all the on-prem hosts and networks that are in London, UK. All you need to do is filter or search using the tag key = "Location" and the value = "London, UK" after you have assigned the tag to the relevant objects.

Best Practices for Using Tags

The following are best practices for using tags: 

  • You can create multiple tags for various purposes and assign them to objects that you want to group, so you can define and track them in a systematic way. Infoblox recommends that you devise a set of tags that meets the needs and requirements for specific purposes. Using a consistent set of tag keys makes managing your objects more effective.
  • Tags are not automatically assigned to any objects. When you create an object, you can define a tag or tags for the object. Once you create a tag, the key and value are stored in the system, and you can assign the same tag to other objects, if applicable.
  • In situations where you need to modify the tag key or tag value(s) for a specific object, you essentially introduce a new tag (if it does not already exist) to the system. The original tag key and value(s) still exist, and your modifications do not affect the objects to which you have assigned the original tag.
  • When you remove a tag from an object, you are removing the association of the tag from the object. You are not deleting the tag from the system.
  • When you revoke a tag from the system, the tag will automatically be removed from the associated objects.

Creating Global Tags

You can create global tags that can be used for objects across the board in your system. When you explicitly create a tag, you can define the tag type as Free-form or Restricted, depending on its usage. A free-from tag can contain any value(s), but you can still apply a regular expression to restrict the value(s) a free-form tag would accept. When you create a restricted tag, you must define a specific value or a set of values that the restricted tag would accept. 

To create a global tag, complete the following:

  1. From the Cloud Services Portal, click Administration -> Tags.
  2. Click Add Tag, and complete the following:
    • Key: Enter the name of the tag. This is also the key with which you associate the tag value(s).
    • Type: From the drop-down menu, select one of the following:
      • Free-form: A free-form tag can contain any values. You can restrict a free-form tag to accept a specific type of values by defining a regular expression and specifying a value or a set of values based on the regular expression.
      • Restricted: When you select this, the tag is limited to a specific value or a set of values that you define in the VALUES section.
    • Regex: This is applicable only when you create a free-form tag. Depending on the restrictions you want to apply to this tag, enter the regular expression to restrict the values this tag would accept. For example, if you only allow numbers for this tag, you can enter [0-9]* to define "numbers only" for the tag. When you apply this tag to objects, you can enter only numbers for the values.

    • Regex Description: Enter the information about the regular expression (if any) you have defined for the tag.

    • VALUE(S): When you create a restricted tag, you must add a value or a set of values that the tag would accept. Click Add and enter the value in the VALUE field. For a set of values, click Add again for each value you want to add.

Applying Tags to Objects

In an editor where configuring tags is applicable, complete the following:

  1. In the Tags section, click Add and complete the following:
    • KEY: Enter the name of the tag you want to apply to this object. When you start typing, the Cloud Services Portal displays existing tags that match the letters you enter. You can select the tag you want to use from the list of available tags. If none of the existing tags are applicable, you can complete your entry and a free-form tag is created implicitly. The Cloud Services Portal displays New next to the new tag.
    • VALUE: Enter a value for the tag.
  2. Click Save & Close.

Note

When you implicitly add a new tag, the key and value are stored in the system, and you can assign the same tag to other objects. Any time you change the name or value of an existing tag, you are introducing a new tag, and the Cloud Services Portal displays New next to the tag when you create it.

Viewing Tags

All tags created explicitly or implicitly are listed in the Administration -> Tags page of the Cloud Services Portal. When you add a new tag while creating a new object, the tag will automatically be added to the database and appear on this page.

To view all the tags in the system, complete the following:

  1. From the Cloud Services Portal, click Administration -> Tags.
  2. The Cloud Services Portal displays the following for each tag:
    • KEY: The name of the tag.
    • STATUS: The current status of this tag. This can be Active or Revoked, in which Active means the tag is active and effective, and Revoked means the tag is deactivated and is no longer in effect. A revoked tag is automatically removed from the object to which it was previously assigned.
    • REGEX: The regular expression defines the restriction you set for the free-form tag.
    • REGEX DESCRIPTION: Information about the regular expression you defined for the tag.

    • VALUE(S): This field displays the value(s) you specified for the restricted tag, or the value(s) that have been used for the free-form tag that contains a regular expression.

Revoking Tags

You might need to deactivate a tag when it is no longer valid based on your business requirements. To deactivate a tag, select the respective check box for the tag, and then click Revoke.

Note

When you revoke a specific tag, it will be automatically removed from the object or objects to which the tag was previously assigned.



  • No labels

This page has no comments.