|
Parameter | Presence | Type | Default | Description | |
---|---|---|---|---|---|
name | M | string | Arbitrary name assigned to the rule. | ||
context | O | union | * | This leaf matches if it has the value '*' or if its value identifies the agent that is requesting access, i.e. 'cli' for CLI or 'webui' for Web UI. | |
command | O | string | * | Space-separated tokens representing the command. Refer to the Tail-f AAA documentation for further details. | |
access-operations | O | union | * | Access operations associated with this rule. This leaf matches if it has the value '*' or if the bit corresponding to the requested operation is set. | |
action | M | enumeration | The access control action associated with the rule. If a rule is determined to match a particular request, then this object is used to determine whether to permit or deny the request. | ||
comment | O | string | A textual description of the access rule. |
RESTCONF API: GET Example |
---|
curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/restconf/data/sonusOrca:oam/localAuth/rule-list={name}/cmdrule={name} |
RESTCONF API: POST Example |
---|
curl -kisu 'admin:secret' -X POST -H 'Content-Type: application/yang-data+xml' https://{SBX-SERVER}/restconf/data/sonusOrca:oam/localAuth/rule-list={name} --data ' |
RESTCONF API: DELETE Example |
---|
curl -kisu 'admin:secret' -X DELETE https://{SBX-SERVER}/restconf/data/sonusOrca:oam/localAuth/rule-list={name}/cmdrule={name} |