Represents an entity accessible through Splunk's REST API.

package Splunk

 Methods

Deletes this entity.

delete() 

Exceptions

\Splunk_IOException

Gets an array that contains the properties of this entity.

getContent() : array

Returns

arrayThe properties of this entity.

Gets the name of this entity.

getName() : string

Returns

stringThe name of this entity. This name can be used to lookup this entity from its collection.

Gets the non-wildcarded namespace in which this entity resides.

getNamespace() : \Splunk_Namespace

Returns

\Splunk_NamespaceThe non-wildcarded namespace in which this entity resides.

Gets a value that indicates whether the specified entity property exists.

offsetExists(string $key) : string

Parameters

$key

string

The name of an entity property.

Returns

stringWhether the specified entity property exists.

Gets the value of the specified entity property.

offsetGet(string $key) : string

Parameters

$key

string

The name of an entity property.

Returns

stringThe value of the specified entity property.

Refreshes this entity's properties from the Splunk server.

refresh() : \Splunk_Entity

Exceptions

\Splunk_IOException

Returns

\Splunk_EntityThis entity.

Sends an HTTP DELETE request relative to this endpoint.

sendDelete(string $relativePath, array $args) : \Splunk_HttpResponse
Inherited
see \Splunk_Http::delete()
inherited_from \Splunk_Endpoint::sendDelete()

Parameters

$relativePath

string

relative URL path.

$args

array

(optional) query parameters, merged with {
namespace: (optional) namespace to use, or NULL to use the context's default namespace.
}

Exceptions

\Splunk_IOException

Returns

\Splunk_HttpResponse

Sends an HTTP GET request relative to this endpoint.

sendGet(string $relativePath, array $args) : \Splunk_HttpResponse
Inherited
see \Splunk_Http::get()
inherited_from \Splunk_Endpoint::sendGet()

Parameters

$relativePath

string

relative URL path.

$args

array

(optional) query parameters, merged with {
namespace: (optional) namespace to use, or NULL to use the context's default namespace.
}

Exceptions

\Splunk_IOException

Returns

\Splunk_HttpResponse

Sends an HTTP POST request relative to this endpoint.

sendPost(string $relativePath, array $args) : \Splunk_HttpResponse
Inherited
see \Splunk_Http::post()
inherited_from \Splunk_Endpoint::sendPost()

Parameters

$relativePath

string

relative URL path.

$args

array

(optional) form parameters to send in the request body, merged with {
namespace: (optional) namespace to use, or NULL to use the context's default namespace.
}

Exceptions

\Splunk_IOException

Returns

\Splunk_HttpResponse

Updates this entity's properties.

update(array $args) : \Splunk_Entity

Note that the "name" property cannot be updated.

Parameters

$args

array

Dictionary of properties that will be changed, along with their new values.

Exceptions

\Splunk_IOException

Returns

\Splunk_EntityThis entity.

Returns the <entry> element inside the root element.

extractEntryFromRootXmlElement($xml) 

Parameters

$xml

Fetches this entity's Atom feed from the Splunk server.

fetch($fetchArgs) 

Parameters

$fetchArgs

Exceptions

\Splunk_IOException

Gets the namespace in which this entity resides.

getSearchNamespace() : \Splunk_Namespace | NULL

Returns

\Splunk_NamespaceNULLThe namespace in which this endpoint resides, or NULL to use the context's default namespace. Possibly a non-exact namespace.

Gets the title of this entity in the REST API.

getTitle() : string

Returns

stringThe title of this entity in the REST API.

Returns a value that indicates whether the entity has been loaded.

isLoaded() 

Loads this resource if not already done.

validate($fetchArgs) : \Splunk_Entity

Returns self.

Parameters

$fetchArgs

Exceptions

\Splunk_IOException

Returns

\Splunk_EntityThis entity.

Loads this resource.

load($fetchArgs) 

Parameters

$fetchArgs

Exceptions

\Splunk_IOException

Parses the entry's contents.

parseContentsFromEntry() 

Sends a simple request relative to this endpoint.

sendSimpleRequest($method, $relativePath, $args) 
Inherited
inherited_from \Splunk_Endpoint::sendSimpleRequest()

Parameters

$method

$relativePath

$args

 Properties

 

$path 
Inherited
inherited_from \Splunk_Endpoint::$$path
 

$service 
Inherited
inherited_from \Splunk_Endpoint::$$service
 

$content 
 

$entry 
 

$loaded 
 

$namespace