Skip to content

Commit c9a4fdf

Browse files
author
Jim Kalafut
committed
Fix Azure Secrets API example
1 parent 8667143 commit c9a4fdf

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

website/source/api/secret/azure/index.html.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ for more information about roles.
122122

123123
### Parameters
124124

125-
- `azure_roles` (`array: <required>`) - List of Azure roles to be assigned to the generated service
126-
principal. See [roles docs][roles] for details on role definition.
125+
- `azure_roles` (`string: <required>`) - List of Azure roles to be assigned to the generated service
126+
principal. The array must be in JSON format, properly escaped as a string. See [roles docs][roles]
127+
for details on role definition.
127128
- `ttl` (`string: ""`) – Specifies the default TTL for service principals generated using this role.
128129
Accepts time suffixed strings ("1h") or an integer number of seconds. Defaults to the system/engine default TTL time.
129130
- `max_ttl` (`string: ""`) – Specifies the maximum TTL for service principals generated using this role. Accepts time
@@ -133,16 +134,16 @@ for more information about roles.
133134

134135
```json
135136
{
136-
"azure_roles": [
137+
"azure_roles": "[
137138
{
138-
"role_name": "Contributor",
139-
"scope": "/subscriptions/<uuid>/resourceGroup/Website"
139+
\"role_name\": \"Contributor\",
140+
\"scope\": \"/subscriptions/<uuid>/resourceGroup/Website\"
140141
},
141142
{
142-
"role_id": "/subscriptions/<uuid>/providers/Microsoft.Authorization/roleDefinitions/<uuid>",
143-
"scope": "/subscriptions/<uuid>"
143+
\"role_id\": \"/subscriptions/<uuid>/providers/Microsoft.Authorization/roleDefinitions/<uuid>\",
144+
\"scope\": \"/subscriptions/<uuid>\"
144145
}
145-
],
146+
]",
146147
"ttl": 3600,
147148
"max_ttl": "24h"
148149
}

0 commit comments

Comments
 (0)