/api/space/debuglog-management/categories
The following operations are supported on this resource:
GET /api/space/debuglog-management/categories (v1)
This API retrieves all the categories based on a passed URI context. It supports paging, sorting, and field selection.
Access Control
The following capabilities are required to access this API:
"DefaultRead"
Example Usage
GET /api/space/debuglog-management/categoriesContent Types
-
Produces content types:
application/vnd.net.juniper.space.debuglog-management.categories+xml;version=1
application/vnd.net.juniper.space.debuglog-management.categories+json;version=1 -
Sample Output XML:
<categories uri="/api/space/debuglog-management/categories size="24" ">
<category key="/api/space/debuglog-management/categories/net.juniper.provisioning"
uri="/api/space/debuglog-management/categories/net.juniper.provisioning"
href="/api/space/debuglog-management/categories/net.juniper.provisioning">
<packageName>net.juniper.provisioning</packageName>
<priority>WARN</priority>
</category>
</categories>
{"categories":
{"@uri":"/api/space/debuglog-management/categories","@size":"24",
"category":[{"@key":"/api/space/debuglog-management/categories/net.juniper.provisioning",
"@uri":"/api/space/debuglog-management/categories/net.juniper.provisioning",
"@href":"/api/space/debuglog-management/categories/net.juniper.provisioning",
"packageName":"net.juniper.provisioning",
"priority":"WARN"}
]}
}
POST /api/space/debuglog-management/categories (v1)
This API is used to add a category.
Access Control
The following capabilities are required to access this API:
"ChangeDebugLogSetting"
Example Usage
POST /api/space/debuglog-management/categoriesContent Types
-
Consumes content types:
application/vnd.net.juniper.space.debuglog-management.category+xml;version=1;charset=UTF-8
application/vnd.net.juniper.space.debuglog-management.category+json;version=1;charset=UTF-8 -
Produces content types:
application/vnd.net.juniper.space.debuglog-management.category+xml;version=1
application/vnd.net.juniper.space.debuglog-management.category+json;version=1 -
Sample Input XML:
<category>
<packageName>net.juniper.provisioning</packageName>
<priority>INFO</priority>
</category> -
Sample Output XML:
<category>
<packageName>net.juniper.provisioning</packageName>
<priority>INFO</priority>
</category> -
Sample Input JSON:
{"category":[{
"packageName":"net.juniper.provisioning",
"priority":"INFO"}] } -
Sample Output JSON:
{"category":[{
"packageName":"net.juniper.provisioning",
"priority":"INFO"}] }