Skip to content

Commit 3baaa20

Browse files
Merge pull request ovh#4652 from ovh/fix/iam-policies-urn-format
fix: iam-policies-api: urn format
2 parents 3214045 + 230d1e9 commit 3baaa20

15 files changed

+135
-135
lines changed

pages/account/customer/iam-policies-api/guide.de-de.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ slug: iam-policies-api
44
excerpt: "Find out how to give specific access rights to users from an OVHcloud account"
55
section: 'Fortgeschrittene Nutzung'
66
order: 03
7-
updated: 2023-03-01
7+
updated: 2023-05-16
88
routes:
99
canonical: 'https://docs.ovh.com/gb/en/customer/iam-policies-api/'
1010
---
1111

12-
**Last updated 1st March 2023**
12+
**Last updated 16th May 2023**
1313

1414
> [!warning]
1515
>
@@ -113,7 +113,7 @@ Items in policies are defined by URNs. These URNs are defined by the following p
113113
|**Possible values**|urn|:|v1|:|eu, ca, us|:|identity, resource, resourceGroup|:|<p>For **identity** type: account, user, group</p><p>For **resource** type: any resourceType</p>|:|Alphanumerical value|
114114
|**Account ID Example**|urn|:|v1|:|eu|:|identity|:|account|:|xx1111-ovh|
115115
|**User group Example**|urn|:|v1|:|eu|:|identity|:|group|:|xx1111-ovh/[email protected]|
116-
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|b96ffed4-3467-4129-b8be-39a3eb3a0a93|
116+
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|vps-5b48d78b.vps.ovh.net|
117117
|**Resource Group Example**|urn|:|v1|:|us|:|resourceGroup|||:|aa0713ab-ed13-4f1a-89a5-32aa0cb936d8|
118118

119119
#### Policy attributes
@@ -161,7 +161,7 @@ For example, create a policy to authorise a user named "*user1*" to do some acti
161161
},
162162
"resources": [
163163
{
164-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
164+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
165165
}
166166
]
167167
}
@@ -211,7 +211,7 @@ Check it via `GET /iam/policy`:
211211
],
212212
"resources": [
213213
{
214-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
214+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
215215
}
216216
],
217217
"permissions": {
@@ -229,7 +229,7 @@ Check it via `GET /iam/policy`:
229229
]
230230
```
231231

232-
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93***".
232+
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net***".
233233

234234
### Identities
235235

@@ -343,23 +343,23 @@ See all the resources linked to the OVHcloud account by calling:
343343
[
344344
{
345345
"id": "b96ffed4-3467-4129-b8be-39a3eb3a0a93",
346-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93",
346+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net",
347347
"name": "vps-5b48d78b.vps.ovh.net",
348348
"displayName": "vps-5b48d78b.vps.ovh.net",
349349
"type": "vps",
350350
"owner": "xx1111-ovh"
351351
},
352352
{
353353
"id": "c24ace5e-6c9c-436b-9a73-515db8df6250",
354-
"urn": "urn:v1:eu:resource:emailDomain:c24ace5e-6c9c-436b-9a73-515db8df6250",
354+
"urn": "urn:v1:eu:resource:emailDomain:acme.com",
355355
"name": "acme.com",
356356
"displayName": "acme.com",
357357
"type": "emailDomain",
358358
"owner": "xx1111-ovh"
359359
},
360360
{
361361
"id": "8d70a49b-7a8b-4ec0-ad4b-756da802d994",
362-
"urn": "urn:v1:eu:resource:cdn:8d70a49b-7a8b-4ec0-ad4b-756da802d994",
362+
"urn": "urn:v1:eu:resource:cdn:cdn-46.105.198.89-12969",
363363
"name": "cdn-46.105.198.89-12969",
364364
"displayName": "cdn-46.105.198.89-12969",
365365
"type": "cdn",

pages/account/customer/iam-policies-api/guide.en-asia.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ slug: iam-policies-api
44
excerpt: "Find out how to give specific access rights to users from an OVHcloud account"
55
section: 'Advanced use'
66
order: 03
7-
updated: 2023-03-01
7+
updated: 2023-05-16
88
---
99

10-
**Last updated 1st March 2023**
10+
**Last updated 16th May 2023**
1111

1212
> [!warning]
1313
>
@@ -111,7 +111,7 @@ Items in policies are defined by URNs. These URNs are defined by the following p
111111
|**Possible values**|urn|:|v1|:|eu, ca, us|:|identity, resource, resourceGroup|:|<p>For **identity** type: account, user, group</p><p>For **resource** type: any resourceType</p>|:|Alphanumerical value|
112112
|**Account ID Example**|urn|:|v1|:|eu|:|identity|:|account|:|xx1111-ovh|
113113
|**User group Example**|urn|:|v1|:|eu|:|identity|:|group|:|xx1111-ovh/[email protected]|
114-
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|b96ffed4-3467-4129-b8be-39a3eb3a0a93|
114+
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|vps-5b48d78b.vps.ovh.net|
115115
|**Resource Group Example**|urn|:|v1|:|us|:|resourceGroup|||:|aa0713ab-ed13-4f1a-89a5-32aa0cb936d8|
116116

117117
#### Policy attributes
@@ -159,7 +159,7 @@ For example, create a policy to authorise a user named "*user1*" to do some acti
159159
},
160160
"resources": [
161161
{
162-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
162+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
163163
}
164164
]
165165
}
@@ -209,7 +209,7 @@ Check it via `GET /iam/policy`:
209209
],
210210
"resources": [
211211
{
212-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
212+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
213213
}
214214
],
215215
"permissions": {
@@ -227,7 +227,7 @@ Check it via `GET /iam/policy`:
227227
]
228228
```
229229

230-
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93***".
230+
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net***".
231231

232232
### Identities
233233

@@ -341,23 +341,23 @@ See all the resources linked to the OVHcloud account by calling:
341341
[
342342
{
343343
"id": "b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net",
345345
"name": "vps-5b48d78b.vps.ovh.net",
346346
"displayName": "vps-5b48d78b.vps.ovh.net",
347347
"type": "vps",
348348
"owner": "xx1111-ovh"
349349
},
350350
{
351351
"id": "c24ace5e-6c9c-436b-9a73-515db8df6250",
352-
"urn": "urn:v1:eu:resource:emailDomain:c24ace5e-6c9c-436b-9a73-515db8df6250",
352+
"urn": "urn:v1:eu:resource:emailDomain:acme.com",
353353
"name": "acme.com",
354354
"displayName": "acme.com",
355355
"type": "emailDomain",
356356
"owner": "xx1111-ovh"
357357
},
358358
{
359359
"id": "8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360-
"urn": "urn:v1:eu:resource:cdn:8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360+
"urn": "urn:v1:eu:resource:cdn:cdn-46.105.198.89-12969",
361361
"name": "cdn-46.105.198.89-12969",
362362
"displayName": "cdn-46.105.198.89-12969",
363363
"type": "cdn",

pages/account/customer/iam-policies-api/guide.en-au.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ slug: iam-policies-api
44
excerpt: "Find out how to give specific access rights to users from an OVHcloud account"
55
section: 'Advanced use'
66
order: 03
7-
updated: 2023-03-01
7+
updated: 2023-05-16
88
---
99

10-
**Last updated 1st March 2023**
10+
**Last updated 16th May 2023**
1111

1212
> [!warning]
1313
>
@@ -111,7 +111,7 @@ Items in policies are defined by URNs. These URNs are defined by the following p
111111
|**Possible values**|urn|:|v1|:|eu, ca, us|:|identity, resource, resourceGroup|:|<p>For **identity** type: account, user, group</p><p>For **resource** type: any resourceType</p>|:|Alphanumerical value|
112112
|**Account ID Example**|urn|:|v1|:|eu|:|identity|:|account|:|xx1111-ovh|
113113
|**User group Example**|urn|:|v1|:|eu|:|identity|:|group|:|xx1111-ovh/[email protected]|
114-
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|b96ffed4-3467-4129-b8be-39a3eb3a0a93|
114+
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|vps-5b48d78b.vps.ovh.net|
115115
|**Resource Group Example**|urn|:|v1|:|us|:|resourceGroup|||:|aa0713ab-ed13-4f1a-89a5-32aa0cb936d8|
116116

117117
#### Policy attributes
@@ -159,7 +159,7 @@ For example, create a policy to authorise a user named "*user1*" to do some acti
159159
},
160160
"resources": [
161161
{
162-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
162+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
163163
}
164164
]
165165
}
@@ -209,7 +209,7 @@ Check it via `GET /iam/policy`:
209209
],
210210
"resources": [
211211
{
212-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
212+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
213213
}
214214
],
215215
"permissions": {
@@ -227,7 +227,7 @@ Check it via `GET /iam/policy`:
227227
]
228228
```
229229

230-
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93***".
230+
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net***".
231231

232232
### Identities
233233

@@ -341,23 +341,23 @@ See all the resources linked to the OVHcloud account by calling:
341341
[
342342
{
343343
"id": "b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net",
345345
"name": "vps-5b48d78b.vps.ovh.net",
346346
"displayName": "vps-5b48d78b.vps.ovh.net",
347347
"type": "vps",
348348
"owner": "xx1111-ovh"
349349
},
350350
{
351351
"id": "c24ace5e-6c9c-436b-9a73-515db8df6250",
352-
"urn": "urn:v1:eu:resource:emailDomain:c24ace5e-6c9c-436b-9a73-515db8df6250",
352+
"urn": "urn:v1:eu:resource:emailDomain:acme.com",
353353
"name": "acme.com",
354354
"displayName": "acme.com",
355355
"type": "emailDomain",
356356
"owner": "xx1111-ovh"
357357
},
358358
{
359359
"id": "8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360-
"urn": "urn:v1:eu:resource:cdn:8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360+
"urn": "urn:v1:eu:resource:cdn:cdn-46.105.198.89-12969",
361361
"name": "cdn-46.105.198.89-12969",
362362
"displayName": "cdn-46.105.198.89-12969",
363363
"type": "cdn",

pages/account/customer/iam-policies-api/guide.en-ca.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ slug: iam-policies-api
44
excerpt: "Find out how to give specific access rights to users from an OVHcloud account"
55
section: 'Advanced use'
66
order: 03
7-
updated: 2023-03-01
7+
updated: 2023-05-16
88
---
99

10-
**Last updated 1st March 2023**
10+
**Last updated 16th May 2023**
1111

1212
> [!warning]
1313
>
@@ -111,7 +111,7 @@ Items in policies are defined by URNs. These URNs are defined by the following p
111111
|**Possible values**|urn|:|v1|:|eu, ca, us|:|identity, resource, resourceGroup|:|<p>For **identity** type: account, user, group</p><p>For **resource** type: any resourceType</p>|:|Alphanumerical value|
112112
|**Account ID Example**|urn|:|v1|:|eu|:|identity|:|account|:|xx1111-ovh|
113113
|**User group Example**|urn|:|v1|:|eu|:|identity|:|group|:|xx1111-ovh/[email protected]|
114-
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|b96ffed4-3467-4129-b8be-39a3eb3a0a93|
114+
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|vps-5b48d78b.vps.ovh.net|
115115
|**Resource Group Example**|urn|:|v1|:|us|:|resourceGroup|||:|aa0713ab-ed13-4f1a-89a5-32aa0cb936d8|
116116

117117
#### Policy attributes
@@ -159,7 +159,7 @@ For example, create a policy to authorise a user named "*user1*" to do some acti
159159
},
160160
"resources": [
161161
{
162-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
162+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
163163
}
164164
]
165165
}
@@ -209,7 +209,7 @@ Check it via `GET /iam/policy`:
209209
],
210210
"resources": [
211211
{
212-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
212+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
213213
}
214214
],
215215
"permissions": {
@@ -227,7 +227,7 @@ Check it via `GET /iam/policy`:
227227
]
228228
```
229229

230-
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93***".
230+
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net***".
231231

232232
### Identities
233233

@@ -341,23 +341,23 @@ See all the resources linked to the OVHcloud account by calling:
341341
[
342342
{
343343
"id": "b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net",
345345
"name": "vps-5b48d78b.vps.ovh.net",
346346
"displayName": "vps-5b48d78b.vps.ovh.net",
347347
"type": "vps",
348348
"owner": "xx1111-ovh"
349349
},
350350
{
351351
"id": "c24ace5e-6c9c-436b-9a73-515db8df6250",
352-
"urn": "urn:v1:eu:resource:emailDomain:c24ace5e-6c9c-436b-9a73-515db8df6250",
352+
"urn": "urn:v1:eu:resource:emailDomain:acme.com",
353353
"name": "acme.com",
354354
"displayName": "acme.com",
355355
"type": "emailDomain",
356356
"owner": "xx1111-ovh"
357357
},
358358
{
359359
"id": "8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360-
"urn": "urn:v1:eu:resource:cdn:8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360+
"urn": "urn:v1:eu:resource:cdn:cdn-46.105.198.89-12969",
361361
"name": "cdn-46.105.198.89-12969",
362362
"displayName": "cdn-46.105.198.89-12969",
363363
"type": "cdn",

pages/account/customer/iam-policies-api/guide.en-gb.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ slug: iam-policies-api
44
excerpt: "Find out how to give specific access rights to users from an OVHcloud account"
55
section: 'Advanced use'
66
order: 03
7-
updated: 2023-03-01
7+
updated: 2023-05-16
88
---
99

10-
**Last updated 1st March 2023**
10+
**Last updated 16th May 2023**
1111

1212
> [!warning]
1313
>
@@ -111,7 +111,7 @@ Items in policies are defined by URNs. These URNs are defined by the following p
111111
|**Possible values**|urn|:|v1|:|eu, ca, us|:|identity, resource, resourceGroup|:|<p>For **identity** type: account, user, group</p><p>For **resource** type: any resourceType</p>|:|Alphanumerical value|
112112
|**Account ID Example**|urn|:|v1|:|eu|:|identity|:|account|:|xx1111-ovh|
113113
|**User group Example**|urn|:|v1|:|eu|:|identity|:|group|:|xx1111-ovh/[email protected]|
114-
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|b96ffed4-3467-4129-b8be-39a3eb3a0a93|
114+
|**VPS Example**|urn|:|v1|:|ca|:|resource|:|vps|:|vps-5b48d78b.vps.ovh.net|
115115
|**Resource Group Example**|urn|:|v1|:|us|:|resourceGroup|||:|aa0713ab-ed13-4f1a-89a5-32aa0cb936d8|
116116

117117
#### Policy attributes
@@ -159,7 +159,7 @@ For example, create a policy to authorise a user named "*user1*" to do some acti
159159
},
160160
"resources": [
161161
{
162-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
162+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
163163
}
164164
]
165165
}
@@ -209,7 +209,7 @@ Check it via `GET /iam/policy`:
209209
],
210210
"resources": [
211211
{
212-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93"
212+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net"
213213
}
214214
],
215215
"permissions": {
@@ -227,7 +227,7 @@ Check it via `GET /iam/policy`:
227227
]
228228
```
229229

230-
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93***".
230+
The policy has been created successfully. Now, "***user1***" can **carry out reboots and create snapshots** on the VPS "***urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net***".
231231

232232
### Identities
233233

@@ -341,23 +341,23 @@ See all the resources linked to the OVHcloud account by calling:
341341
[
342342
{
343343
"id": "b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344-
"urn": "urn:v1:eu:resource:vps:b96ffed4-3467-4129-b8be-39a3eb3a0a93",
344+
"urn": "urn:v1:eu:resource:vps:vps-5b48d78b.vps.ovh.net",
345345
"name": "vps-5b48d78b.vps.ovh.net",
346346
"displayName": "vps-5b48d78b.vps.ovh.net",
347347
"type": "vps",
348348
"owner": "xx1111-ovh"
349349
},
350350
{
351351
"id": "c24ace5e-6c9c-436b-9a73-515db8df6250",
352-
"urn": "urn:v1:eu:resource:emailDomain:c24ace5e-6c9c-436b-9a73-515db8df6250",
352+
"urn": "urn:v1:eu:resource:emailDomain:acme.com",
353353
"name": "acme.com",
354354
"displayName": "acme.com",
355355
"type": "emailDomain",
356356
"owner": "xx1111-ovh"
357357
},
358358
{
359359
"id": "8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360-
"urn": "urn:v1:eu:resource:cdn:8d70a49b-7a8b-4ec0-ad4b-756da802d994",
360+
"urn": "urn:v1:eu:resource:cdn:cdn-46.105.198.89-12969",
361361
"name": "cdn-46.105.198.89-12969",
362362
"displayName": "cdn-46.105.198.89-12969",
363363
"type": "cdn",

0 commit comments

Comments
 (0)