docs: add binding-rule selector escape example on Windows PS (#16273)

This commit is contained in:
James Rasell
2023-03-17 14:13:35 +00:00
committed by GitHub
parent 282e3bcfcc
commit 57a3cbe264

View File

@@ -66,7 +66,8 @@ Create Index = 14
Modify Index = 14
```
Create a new ACL Binding Rule where the selector needs to be escaped:
Create a new ACL Binding Rule where the selector needs to be escaped on UNIX
machines:
```shell-session
$ nomad acl binding-rule create \
@@ -86,3 +87,25 @@ Modify Time = 2022-12-20 11:15:22.582568 +0000 UTC
Create Index = 14
Modify Index = 14
```
Create a new ACL Binding Rule where the selector needs to be escaped on Windows
machines via PowerShell:
```shell-session
$ nomad.exe acl binding-rule create \
-description "example binding rule" \
-auth-method "auth0" \
-bind-type "role" \
-bind-name "eng-ro" \
-selector="`"project-developer`"
ID = 698fdad6-dcb3-79dd-dc72-b43374057dea
Description = example binding rule
Auth Method = auth0
Selector = "\"project-developer\" in list.roles"
Bind Type = role
Bind Name = eng-ro
Create Time = 2022-12-20 11:15:22.582568 +0000 UTC
Modify Time = 2022-12-20 11:15:22.582568 +0000 UTC
Create Index = 14
Modify Index = 14
```