Skip to main content

path

Creates, updates, deletes, gets or lists a path resource.

Overview

Namepath
TypeResource
Idsumologic.content.path

Fields

The following fields are returned by SELECT queries:

Full path of the content item.

NameDatatypeDescription
pathstringPath of the content item. (example: /Library/Users/user@test.com/SampleFolder)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getPathByIdselectcontentId, regionGet full path of a content item with the given identifier.
getItemByPathselectpath, regionGet a content item corresponding to the given path.

Path is specified in the required query parameter path. The path should be URL encoded. For example, to get "Acme Corp" folder of a user "user@sumo.com" you can use the following curl command:
bash<br /> curl https://api.sumologic.com/api/v2/content/path?path=/Library/Users/user%40sumo.com/Acme%20Corp<br />


The absolute path to a content item should be specified to get the item. The content library has "Library" folder at the root level. For items in "Personal" folder, the base path is "/Library/Users/user@sumo.com" where "user@sumo.com" is the email address of the user. For example if a user with email address wile@acme.com has Rockets folder inside Personal folder, the path of Rockets folder will be /Library/Users/wile@acme.com/Rockets.

For items in "Admin Recommended" folder, the base path is "/Library/Admin Recommended". For example, given a folder Acme in Admin Recommended folder, the path will be /Library/Admin Recommended/Acme.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
contentIdstringIdentifier of the content item to get the path.
pathstringPath of the content item to retrieve. (example: /Library/Users/user@sumo.com/SampleFolder)
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)

SELECT examples

Get full path of a content item with the given identifier.

SELECT
path
FROM sumologic.content.path
WHERE contentId = '{{ contentId }}' -- required
AND region = '{{ region }}' -- required
;