How to assign custom tags on Veeam Backup for AWS workers


Userlevel 5
Badge

Hi All,

 

In this article I am going to show how to configure custom AWS tags on Veeam Backup for AWS (VBAWS) workers. This is really helpful if you need to use tags for billing purposes for example.

This procedure is only possible, at least until the moment I am writing this post, through restAPI.

 

In Veeam for AWS we use by default the port 11005 for the restAPI, so you need to make sure you open this port on the security group that is associated with the VBAWS instance.

 

Since you have the port open, the first step is to access Swagger, the restAPI tool built-in the VBAWS appliance.

Open your browser and type:

https://<hostname or IP of your appliance>:11005/swagger/index.html

 

Expand the Method TOKEN

 

Expand POST /api/v1/token and click on Try it Out.

From the Grant_type drop-down menu, select Password, type the same credentials used to log into the appliance in the fields Username and Password.

 

All other fields can remain blank and click Execute.

 

Wait for the response from the server. A successfully completed operation returns the 200 response code. In the response body, it returns an access token.

 

Save the access token without the “ “ for further use.

 

Now we will authorize your access in Swagger using the saved token. Scroll all the way up and find the Authorize button.

 

 

In the popup window type bearer and paste the token we saved before and click Authorize:

You will see the Authorized information and you can click close

 

Now that we are authenticated we will be able to assign tags to workers.

Scroll all the way down and find the Workers method:

 

Expand the Workers method and scroll to the last API request: PUT /api/v1/workers/customTags

 

Click on Try it Out

 

Edit the KEY and the VALUE you want your tags to be and click on Execute

In my example I set the key as “Test Key” and Value “Test Value”

 

The response 200 means confirm it is OK:

 

Now, all workers deployed will have the custom tags you configured:

 

In case you need to assign more than one tag to the workers this should be the JSON syntax:

{
"tags": [
{
"key": "string",
"value": "string"
},
{
"key": "string",
"value": "string"
}
]
}

 

You can find more information about the Swagger authorization in the User Guide here.

And here, you can find the restAPI Reference User Guide for custom worker tags.


5 comments

Userlevel 7
Badge +10

This is awesome @barellag  → I was just discussing how important tags are for the AWS environment for use with Veeam Backup for AWS.

Userlevel 5
Badge

This is awesome @barellag  → I was just discussing how important tags are for the AWS environment for use with Veeam Backup for AWS.

Thank you @Rick Vanover!

Your feedback is really appreciated!

Tags are indeed a great contributor in AWS management.

Userlevel 7
Badge +20

Yes, tags are my go-to for Veeam backups!  Makes things so much easier as long as teams remember to tag their VMs.  😋

Hi guys, is it possible to assign the tags to the workers instance and to the volume of this workers?

Userlevel 5
Badge

Buenas tardes, es posible asignar el tags a la instancia workers y al volumen de este workers? 

Buenas!

Unfortunately no, the EBS volumes are not tagged with this option, only the worker VM.

Comment