4.7. 显示操作描述
您可以使用 read-operation-description 操作来显示资源的特定操作的描述。这也包括参数描述和所需的参数。
:read-operation-description(name=OPERATION_NAME)
以下示例提供了系统属性的 add 操作的描述和参数信息。
/system-property=SYSTEM_PROPERTY:read-operation-description(name=add)
{
"outcome" => "success",
"result" => {
"operation-name" => "add",
"description" => "Adds a system property or updates an existing one.",
"request-properties" => {"value" => {
"type" => STRING,
"description" => "The value of the system property.",
"expressions-allowed" => true,
"required" => false,
"nillable" => true,
"min-length" => 0L,
"max-length" => 2147483647L
}},
"reply-properties" => {},
"read-only" => false,
"runtime-only" => false
}
}