|
Parameter | Presence | Type | Default | Description | |
---|---|---|---|---|---|
name | M | string | Arbitrary name assigned to the rule. | ||
module-name | O | union | * | Name of the module associated with this rule. This leaf matches if it has the value '*' or if the object being accessed is defined in the module with the specified module name. | |
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. | ||
context | O | union | * | This leaf matches if it has the value '*' or if its value identifies the agent that is requesting access, e.g. 'netconf' for NETCONF, 'cli' for CLI, or 'webui' for Web UI. |
RESTCONF API: GET Example |
---|
curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/restconf/data/sonusOrca:oam/localAuth/rule-list={name}/rule={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}/rule={name} |