Skip to content

Commit a889c7c

Browse files
authored
Merge pull request #8391 from ovh/dev/gbarideau/iam-tag-manager
New guide for Tag Management
2 parents 57bcb30 + 22ccb33 commit a889c7c

File tree

8 files changed

+252
-0
lines changed

8 files changed

+252
-0
lines changed

pages/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,7 @@
20952095
+ [How to use IAM policies using the OVHcloud API](account_and_service_management/account_information/iam-policies-api)
20962096
+ [How to use IAM policies using the OVHcloud Control Panel](account_and_service_management/account_information/iam-policy-ui)
20972097
+ [List of permission groups managed by OVHcloud](account_and_service_management/account_information/iam-permission-groups)
2098+
+ [How to manage tags on resources](manage_and_operate/iam/iam-tag-manager)
20982099
+ [How to create an IAM policy to allow a user to log to the OVHcloud Control Panel](account_and_service_management/account_information/iam-control-panel-access)
20992100
+ [How to use IAM policies with vSphere](hosted_private_cloud/hosted_private_cloud_powered_by_vmware/use_iam_with_vSphere)
21002101
+ [Authenticate on Openstack API with service account](manage_and_operate/iam/authenticate-api-openstack-with-service-account)
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
title: "How to manage tags on resources"
3+
excerpt: "Find out how to manage and use tags on your OVHcloud resources"
4+
updated: 2025-09-15
5+
---
6+
7+
## Objective
8+
9+
In this guide, you will learn how to assign and manage tags on your OVHcloud products and how to use them in IAM policies.
10+
11+
## Requirements
12+
13+
- An [OVHcloud customer account](/pages/account_and_service_management/account_information/ovhcloud-account-creation).
14+
15+
## Instructions
16+
17+
### Managing Tags via the Control Panel
18+
19+
You can manage your OVHcloud product tags either through the general tag management interface or through dedicated interfaces within the products.
20+
21+
Tags are metadata in the form of key-value pairs added to OVHcloud resources, which can be used in IAM policies or for resource categorization.
22+
23+
#### Tag Manager
24+
25+
**Tag Manager** is the interface that allows you to manage your tags across all your OVHcloud products in a transverse manner.
26+
27+
To access it, go to the `Identity, Security & Operations`{.action} menu, then click `Tag Management`{.action} under the `Identity and Access Management` section.
28+
29+
The page displays all the tags currently placed on your resources.
30+
31+
![Tag Manager](images/tag-manager-01.png){.thumbnail}
32+
33+
For each tag, the dashboard shows the number of resources associated with this tag and the type of tag.
34+
35+
There are three types of tags:
36+
37+
- Custom: Created and managed by you.
38+
- Predefined: Created by OVHcloud, you are responsible for assigning this type of tag to your resources.
39+
- System: Created and automatically assigned by OVHcloud to your resources (cannot be deleted).
40+
41+
Unassigned predefined tags and system tags do not appear by default and must be displayed via the `Quick filters`{.action} button.
42+
43+
By clicking on the tag, you can access the tag details with the list of concerned resources.
44+
45+
![Tag Manager](images/tag-manager-02.png){.thumbnail}
46+
47+
It is then possible to assign this tag to other resources via the `Assign tag`{.action} button. The list of all resources in the account is then displayed, allowing multiple selections.
48+
49+
A filter field is present on the right to facilitate searching for resources.
50+
51+
On the contrary, by selecting resources in the tag details, it is possible to remove the tag from them via the `Unassign Tag`{.action} button.
52+
53+
#### Product dashboard
54+
55+
For some OVHcloud products, an interface has been added to manage tags directly from the resource management dashboard.
56+
57+
![Tag Manager](images/baremetal-tag-01.png){.thumbnail}
58+
59+
The tag management interface allows you to add or remove tags from the resource.
60+
61+
![Tag Manager](images/baremetal-tag-02.png){.thumbnail}
62+
63+
It is possible to either select one or more tags from the list of predefined tags or enter your own tags by typing the keys and values directly into the fields.
64+
65+
### Managing Tags via API
66+
67+
Tag management is centralized in a single API for all OVHcloud products:
68+
69+
| **Method** | **Path** | **Description** |
70+
| :--------: | :-----------------------------------: | :--------------------------: |
71+
| POST | /iam/resource/{resourceURN}/tag | Add a tag to a resource |
72+
| DEL | /iam/resource/{resourceURN}/tag/{key} | Remove a tag from a resource |
73+
74+
The tag must be specified in the following format:
75+
76+
```json
77+
{
78+
"key": "environment",
79+
"value": "production"
80+
}
81+
```
82+
83+
### Using Tags in IAM Policies
84+
85+
Tags can be used as conditions in IAM policies using the `resource.Tag(tag_key)` condition.
86+
87+
For example, the following policy grants rights to all VPS with the tag `Environment:Production`:
88+
89+
```json
90+
{
91+
"conditions": {
92+
"conditions": [
93+
{
94+
"operator": "MATCH",
95+
"values": {
96+
"resource.Tag(Environment)": "Production"
97+
}
98+
}
99+
],
100+
"operator": "AND"
101+
},
102+
"description": "Give access to VPS with tag Environment:Production",
103+
"identities": [
104+
"urn:v1:eu:identity:group:aa1-ovh/devs"
105+
],
106+
"name": "vps-production",
107+
"permissions": {
108+
"allow": [
109+
{
110+
"action": "vps:apiovh:*"
111+
}
112+
]
113+
},
114+
"resources": [
115+
{
116+
"urn": "urn:v1:eu:resource:vps:*"
117+
}
118+
]
119+
}
120+
```
121+
122+
## Go further
123+
124+
Join our [community of users](/links/community).
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
title: "Comment utiliser les tags sur vos ressources"
3+
excerpt: "Découvrez comment gérer et utiliser les tags sur vos ressources OVHcloud"
4+
updated: 2025-09-15
5+
---
6+
7+
## Objectif
8+
9+
Dans ce guide, vous apprendrez à affecter et gérer des tags sur vos produits OVHcloud et comment les utiliser dans les politiques IAM.
10+
11+
## Prérequis
12+
13+
- Disposer d'un [compte client OVHcloud](/pages/account_and_service_management/account_information/ovhcloud-account-creation).
14+
15+
## En pratique
16+
17+
### Gérer les tags via l'espace client
18+
19+
Il est possible de gérer les tags de vos produits OVHcloud soit a travers l'interface générale de gestion des tag, soit à travers les interfaces dédiées dans les produits.
20+
21+
Les tags sont des métadonnées sous forme de clé/valeur ajoutées aux ressources OVHcloud, qui peuvent être utilisées dans les politiques IAM ou la catégorisation des ressources.
22+
23+
#### Tag Manager
24+
25+
**Tag Manager** est l'interface qui vous permet de gérer vos tags sur l'ensemble de vos produits OVHcloud.
26+
27+
Pour y accéder, rendez-vous dans le menu `Identité, Sécurité & Opérations`{.action} puis cliquez sur `Tag Management`{.action} sous la section `Gestion des identités et des accès`.
28+
29+
Vous retrouverez sur cette page l'ensemble des tags actuellement placés sur vos ressources.
30+
31+
![Tag Manager](images/tag-manager-01.png){.thumbnail}
32+
33+
Pour chaque tag, le tableau de bord indique le nombre de ressources associées ainsi que le type de tag.
34+
35+
Il existe 3 types de tags :
36+
37+
- Custom : Créé et géré par vos soins.
38+
- Prédéfini : Créé par OVHcloud, il vous appartient d'assigner ce type de tag à vos ressources.
39+
- Système : Créé et assigné automatiquement par OVHcloud à vos ressources (les tags de ce type ne peuvent pas être supprimés).
40+
41+
Les tags prédéfinis non assignés et les tags système ne n'apparaissent pas par défaut et doivent être affichés via le bouton `Filtres rapides`{.action}.
42+
43+
En cliquant sur un tag, on accède aux détails du tag avec la liste des ressources concernées.
44+
45+
![Tag Manager](images/tag-manager-02.png){.thumbnail}
46+
47+
Il est ensuite possible d'assigner ce tag à d'autres ressources via le bouton `Assigner le tags`{.action}. La liste de l'ensemble des ressources du compte s'affiche alors, permettant plusieurs sélections.
48+
49+
Un champ de filtre est présent à droite pour faciliter la recherche dans les ressources.
50+
51+
A l'inverse, en sélectionnant les ressources dans les détails du tag, il est possible de supprimer le tag de celles-ci via le bouton `Désassigner le tag`{.action}.
52+
53+
#### Tableau de bord du produit
54+
55+
Pour certains produits OVHcloud, une interface a été ajoutée pour gérer les tags directement depuis le tableau de bord de gestion des ressources.
56+
57+
![Tag Manager](images/baremetal-tag-01.png){.thumbnail}
58+
59+
L'interface de gestion de tags permet d'ajouter ou retirer des tags sur la ressource.
60+
61+
![Tag Manager](images/baremetal-tag-02.png){.thumbnail}
62+
63+
Il est possible de sélectionner un ou plusieurs tags dans la liste des tags prédéfinis ou d'entrer vos propres tags en saisissant directement les clés et les valeurs dans les champs.
64+
65+
### Gestion des tags via l'API
66+
67+
La gestion des tags est centralisée dans une API unique pour tous les produits OVHcloud :
68+
69+
| **Méthode** | **Chemin** | **Description** |
70+
| :---------: | :-----------------------------------: | :------------------------------------: |
71+
| POST | /iam/resource/{resourceURN}/tag | Ajout d'un tag sur une ressource |
72+
| DEL | /iam/resource/{resourceURN}/tag/{key} | Suppression d'un tag sur une ressource |
73+
74+
Le tag doit être indiqué sous cette forme :
75+
76+
```json
77+
{
78+
"key": "environment",
79+
"value": "production"
80+
}
81+
```
82+
83+
### Utilisation dans les politiques IAM
84+
85+
Les tags peuvent être utilisés comme conditions dans les politiques IAM grâce à la condition `resource.Tag(tag_key)`.
86+
87+
Par exemple, la politique suivante accorde des droits à tous les VPS portant le tag `Environment:Production` :
88+
89+
```json
90+
{
91+
"conditions": {
92+
"conditions": [
93+
{
94+
"operator": "MATCH",
95+
"values": {
96+
"resource.Tag(Environment)": "Production"
97+
}
98+
}
99+
],
100+
"operator": "AND"
101+
},
102+
"description": "Give access to VPS with tag Environment:Production",
103+
"identities": [
104+
"urn:v1:eu:identity:group:aa1-ovh/devs"
105+
],
106+
"name": "vps-production",
107+
"permissions": {
108+
"allow": [
109+
{
110+
"action": "vps:apiovh:*"
111+
}
112+
]
113+
},
114+
"resources": [
115+
{
116+
"urn": "urn:v1:eu:resource:vps:*"
117+
}
118+
]
119+
}
120+
```
121+
122+
## Aller plus loin
123+
124+
Échangez avec notre [communauté d'utilisateurs](/links/community).
6.37 KB
Loading
7.16 KB
Loading
80 KB
Loading
29.4 KB
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id: 6c541404-ca56-4a83-960b-33523bcf66d2
2+
full_slug: iam-tag-manager
3+
reference_category: manage-operate-iam

0 commit comments

Comments
 (0)