File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
website/source/api/secret/azure Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments