Skip to content

Commit

Permalink
Fix Azure Secrets API example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Kalafut committed Aug 28, 2018
1 parent 8667143 commit c9a4fdf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions website/source/api/secret/azure/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ for more information about roles.

### Parameters

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

```json
{
"azure_roles": [
"azure_roles": "[
{
"role_name": "Contributor",
"scope": "/subscriptions/<uuid>/resourceGroup/Website"
\"role_name\": \"Contributor\",
\"scope\": \"/subscriptions/<uuid>/resourceGroup/Website\"
},
{
"role_id": "/subscriptions/<uuid>/providers/Microsoft.Authorization/roleDefinitions/<uuid>",
"scope": "/subscriptions/<uuid>"
\"role_id\": \"/subscriptions/<uuid>/providers/Microsoft.Authorization/roleDefinitions/<uuid>\",
\"scope\": \"/subscriptions/<uuid>\"
}
],
]",
"ttl": 3600,
"max_ttl": "24h"
}
Expand Down

0 comments on commit c9a4fdf

Please sign in to comment.